amt_jtagaccel: use register_commands()
[fw/openocd] / src / jtag / minidummy / minidummy.c
index 3c084357b5ce330ccc9f2df3f0aa3ec245580812..1bee74eb18dac02b71621407c08112aa6b7dc07c 100644 (file)
 #include "minidriver.h"
 #include "interface.h"
 
-
-
-
-jtag_interface_t minidummy_interface =
+struct jtag_interface minidummy_interface =
 {
        .name = "minidummy",
        .execute_queue = NULL,
@@ -41,11 +38,6 @@ jtag_interface_t minidummy_interface =
        .srst_asserted = NULL,
 };
 
-
-
-
-
-
 int interface_jtag_execute_queue(void)
 {
        /* synchronously do the operation here */
@@ -53,19 +45,7 @@ int interface_jtag_execute_queue(void)
        return ERROR_OK;
 }
 
-
-
-
-
-extern int jtag_check_value(uint8_t *captured, void *priv);
-
-int interface_jtag_set_end_state(tap_state_t state)
-{
-       return ERROR_OK;
-}
-
-
-int interface_jtag_add_ir_scan(int num_fields, const scan_field_t *fields, tap_state_t state)
+int interface_jtag_add_ir_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
 {
        /* synchronously do the operation here */
 
@@ -73,34 +53,27 @@ int interface_jtag_add_ir_scan(int num_fields, const scan_field_t *fields, tap_s
 
 }
 
-
-
-
-
-int interface_jtag_add_plain_ir_scan(int num_fields, const scan_field_t *fields, tap_state_t state)
+int interface_jtag_add_plain_ir_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
 {
        /* synchronously do the operation here */
 
        return ERROR_OK;
 }
 
-/*extern jtag_command_t **jtag_get_last_command_p(void);*/
-
-int interface_jtag_add_dr_scan(int num_fields, const scan_field_t *fields, tap_state_t state)
+int interface_jtag_add_dr_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
 {
        /* synchronously do the operation here */
 
        return ERROR_OK;
 }
 
-int interface_jtag_add_plain_dr_scan(int num_fields, const scan_field_t *fields, tap_state_t state)
+int interface_jtag_add_plain_dr_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
 {
        /* synchronously do the operation here */
 
        return ERROR_OK;
 }
 
-
 int interface_jtag_add_tlr()
 {
        /* synchronously do the operation here */
@@ -108,8 +81,6 @@ int interface_jtag_add_tlr()
        return ERROR_OK;
 }
 
-
-
 int interface_jtag_add_reset(int req_trst, int req_srst)
 {
        /* synchronously do the operation here */
@@ -117,7 +88,6 @@ int interface_jtag_add_reset(int req_trst, int req_srst)
        return ERROR_OK;
 }
 
-
 int interface_jtag_add_runtest(int num_cycles, tap_state_t state)
 {
        /* synchronously do the operation here */
@@ -176,9 +146,7 @@ int interface_jtag_add_pathmove(int num_states, const tap_state_t *path)
        return ERROR_OK;
 }
 
-
-
-void embeddedice_write_dcc(jtag_tap_t *tap, int reg_addr, uint8_t *buffer, int little, int count)
+void embeddedice_write_dcc(struct jtag_tap *tap, int reg_addr, uint8_t *buffer, int little, int count)
 {
        int i;
        for (i = 0; i < count; i++)
@@ -187,4 +155,3 @@ void embeddedice_write_dcc(jtag_tap_t *tap, int reg_addr, uint8_t *buffer, int l
                buffer += 4;
        }
 }
-