diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-21 10:20:56 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-21 10:20:56 -0800 |
commit | b58239e4c03c440ac89b36c9de917224a8439332 (patch) | |
tree | 94dfd738bf559e019826f7b981f53536be5588ef /src/jtag/usbprog.c | |
parent | c46c2d77e63264a9f0187a477b77032d0ce6fcfa (diff) |
jtag: remove useless forward declarations
Removes some more useless forward declarations from a few JTAG drivers.
Moves interface and bit-bang structure defitions below their callbacks.
Diffstat (limited to 'src/jtag/usbprog.c')
-rw-r--r-- | src/jtag/usbprog.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c index 10dfe061..e8c0eadf 100644 --- a/src/jtag/usbprog.c +++ b/src/jtag/usbprog.c @@ -49,28 +49,12 @@ #define TCK_BIT 2 #define TMS_BIT 1 -static int usbprog_execute_queue(void); -static int usbprog_speed(int speed); -static int usbprog_register_commands(struct command_context *cmd_ctx); -static int usbprog_init(void); -static int usbprog_quit(void); - static void usbprog_end_state(tap_state_t state); static void usbprog_state_move(void); static void usbprog_path_move(struct pathmove_command *cmd); static void usbprog_runtest(int num_cycles); static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size); -struct jtag_interface usbprog_interface = -{ - .name = "usbprog", - .execute_queue = usbprog_execute_queue, - .speed = usbprog_speed, - .register_commands = usbprog_register_commands, - .init = usbprog_init, - .quit = usbprog_quit -}; - #define UNKOWN_COMMAND 0x00 #define PORT_DIRECTION 0x01 #define PORT_SET 0x02 @@ -120,11 +104,6 @@ static int usbprog_speed(int speed) return ERROR_OK; } -static int usbprog_register_commands(struct command_context *cmd_ctx) -{ - return ERROR_OK; -} - static int usbprog_execute_queue(void) { struct jtag_command *cmd = jtag_command_queue; /* currently processed command */ @@ -688,3 +667,11 @@ static void usbprog_jtag_tms_send(struct usbprog_jtag *usbprog_jtag) tms_chain_index = 0; } } + +struct jtag_interface usbprog_interface = { + .name = "usbprog", + .execute_queue = &usbprog_execute_queue, + .speed = &usbprog_speed, + .init = &usbprog_init, + .quit = &usbprog_quit + }; |