move nor drivers to src/flash/nor
[fw/openocd] / src / jtag / ep93xx.c
index bf723c13c93fd3b0ebe9759701faea99ee5cec8d..c679b2164344f7c9ce5334a9049c6e01a3add4be 100644 (file)
@@ -47,13 +47,13 @@ static void ep93xx_write(int tck, int tms, int tdi);
 static void ep93xx_reset(int trst, int srst);
 
 static int ep93xx_speed(int speed);
-static int ep93xx_register_commands(struct command_context_s *cmd_ctx);
+static int ep93xx_register_commands(struct command_context *cmd_ctx);
 static int ep93xx_init(void);
 static int ep93xx_quit(void);
 
 struct timespec ep93xx_zzzz;
 
-jtag_interface_t ep93xx_interface =
+struct jtag_interface ep93xx_interface =
 {
        .name = "ep93xx",
 
@@ -65,7 +65,7 @@ jtag_interface_t ep93xx_interface =
        .quit = ep93xx_quit,
 };
 
-static bitbang_interface_t ep93xx_bitbang =
+static struct bitbang_interface ep93xx_bitbang =
 {
        .read = ep93xx_read,
        .write = ep93xx_write,
@@ -122,7 +122,7 @@ static int ep93xx_speed(int speed)
        return ERROR_OK;
 }
 
-static int ep93xx_register_commands(struct command_context_s *cmd_ctx)
+static int ep93xx_register_commands(struct command_context *cmd_ctx)
 {
 
        return ERROR_OK;
@@ -131,7 +131,7 @@ static int ep93xx_register_commands(struct command_context_s *cmd_ctx)
 static int set_gonk_mode(void)
 {
        void *syscon;
-       u32 devicecfg;
+       uint32_t devicecfg;
 
        syscon = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
                        MAP_SHARED, dev_mem_fd, 0x80930000);