]> git.sur5r.net Git - openocd/commitdiff
command_t -> struct command
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 21:30:50 +0000 (13:30 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 21:30:50 +0000 (13:30 -0800)
Remove misleading typedef and redundant suffix from struct command.

44 files changed:
src/flash/at91sam3.c
src/flash/at91sam7.c
src/flash/avrf.c
src/flash/cfi.c
src/flash/flash.c
src/flash/lpc2000.c
src/flash/lpc2900.c
src/flash/lpc3180_nand_controller.c
src/flash/mflash.c
src/flash/nand.c
src/flash/pic32mx.c
src/flash/stellaris.c
src/flash/stm32x.c
src/flash/str7x.c
src/flash/str9x.c
src/flash/str9xpec.c
src/flash/tms470.c
src/hello.c
src/helper/command.c
src/helper/command.h
src/jtag/minidummy/minidummy.c
src/jtag/rlink/rlink.c
src/jtag/zy1000/zy1000.c
src/pld/pld.c
src/pld/virtex2.c
src/target/arm11.c
src/target/arm720t.c
src/target/arm7_9_common.c
src/target/arm920t.c
src/target/arm926ejs.c
src/target/arm966e.c
src/target/arm9tdmi.c
src/target/armv4_5.c
src/target/armv7a.c
src/target/armv7m.c
src/target/cortex_a8.c
src/target/cortex_m3.c
src/target/etb.c
src/target/etm.c
src/target/etm_dummy.c
src/target/oocd_trace.c
src/target/target_request.c
src/target/trace.c
src/target/xscale.c

index 4459364e75e78d7b495fb4718079817e9937fb8b..ad45bd5aaf655cff013ab8a206becd8b74fff0d7 100644 (file)
@@ -2474,7 +2474,7 @@ static int sam3_registered;
 static int
 sam3_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *pCmd;
+       struct command *pCmd;
 
        // only register once
        if (!sam3_registered) {
index 18cfb986770569f6abe3c0a39aee2eec7abbf876..e0b83d5722ea8f56a49267a3d097cb8d8702e983 100644 (file)
@@ -1180,7 +1180,7 @@ COMMAND_HANDLER(at91sam7_handle_gpnvm_command)
 
 static int at91sam7_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *at91sam7_cmd = register_command(cmd_ctx, NULL, "at91sam7",
+       struct command *at91sam7_cmd = register_command(cmd_ctx, NULL, "at91sam7",
                        NULL, COMMAND_ANY, NULL);
 
        register_command(cmd_ctx, at91sam7_cmd, "gpnvm",
index ea9f0833388c51ea1b961e5349b8044c97785eef..e41093de380c0a51ef85cc6b2d147a70e1c52a16 100644 (file)
@@ -451,7 +451,7 @@ COMMAND_HANDLER(avrf_handle_mass_erase_command)
 
 static int avrf_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *avr_cmd = register_command(cmd_ctx, NULL, "avr",
+       struct command *avr_cmd = register_command(cmd_ctx, NULL, "avr",
                        NULL, COMMAND_ANY, "avr flash specific commands");
 
        register_command(cmd_ctx, avr_cmd, "mass_erase",
index d49ddf31aa361248d7ded621c42f4f115f3dab93..17f5c32bcb9379252ff5822cceaf3ac4c84c7b66 100644 (file)
@@ -590,7 +590,7 @@ static int cfi_intel_info(struct flash_bank *bank, char *buf, int buf_size)
 
 static int cfi_register_commands(struct command_context *cmd_ctx)
 {
-       /*command_t *cfi_cmd = */
+       /*struct command *cfi_cmd = */
        register_command(cmd_ctx, NULL, "cfi", NULL, COMMAND_ANY, "flash bank cfi <base> <size> <chip_width> <bus_width> <targetNum> [jedec_probe/x16_as_x8]");
        /*
        register_command(cmd_ctx, cfi_cmd, "part_id", cfi_handle_part_id_command, COMMAND_EXEC,
index 32c1f4907668c5a5455abbf67f392b677fdbd9fe..20efa502e84cc085c6272df65dab6e19c43ef95d 100644 (file)
@@ -77,7 +77,7 @@ struct flash_driver *flash_drivers[] = {
 };
 
 struct flash_bank *flash_banks;
-static         command_t *flash_cmd;
+static         struct command *flash_cmd;
 
 /* wafer thin wrapper for invoking the flash driver */
 static int flash_driver_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
index f3d7e5b4a30cce7875041cfc001c1640aded2af9..df1f0824b3796be6f8066383fcafa83aa902301a 100644 (file)
@@ -778,7 +778,7 @@ COMMAND_HANDLER(lpc2000_handle_part_id_command)
 
 static int lpc2000_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *lpc2000_cmd = register_command(cmd_ctx, NULL, "lpc2000",
+       struct command *lpc2000_cmd = register_command(cmd_ctx, NULL, "lpc2000",
                        NULL, COMMAND_ANY, NULL);
 
        register_command(cmd_ctx, lpc2000_cmd, "part_id",
index 4cf20921655cc1cb7d4a7d212afe1d95fe5a937f..739ac43bdd159654cd1fdc5bc80391ef3843e2d9 100644 (file)
@@ -954,7 +954,7 @@ COMMAND_HANDLER(lpc2900_handle_secure_jtag_command)
  */
 static int lpc2900_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *lpc2900_cmd = register_command(cmd_ctx, NULL, "lpc2900",
+       struct command *lpc2900_cmd = register_command(cmd_ctx, NULL, "lpc2900",
                                                  NULL, COMMAND_ANY, NULL);
 
        register_command(
index ffa505579f1024485cb1b9afa50c11a55b07d066..3589e8be554754a737abc9cf3244921e4512ab77 100644 (file)
@@ -875,7 +875,7 @@ COMMAND_HANDLER(handle_lpc3180_select_command)
 
 static int lpc3180_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *lpc3180_cmd = register_command(cmd_ctx, NULL, "lpc3180", NULL, COMMAND_ANY, "commands specific to the LPC3180 NAND flash controllers");
+       struct command *lpc3180_cmd = register_command(cmd_ctx, NULL, "lpc3180", NULL, COMMAND_ANY, "commands specific to the LPC3180 NAND flash controllers");
 
        register_command(cmd_ctx, lpc3180_cmd, "select", handle_lpc3180_select_command, COMMAND_EXEC, "select <'mlc'|'slc'> controller (default is mlc)");
 
index 029178d12c7bd67a21f5b1d5be26c87046d722b0..c2d04ca4a1ed1935312842e13b2f4a46597114fe 100644 (file)
@@ -32,7 +32,7 @@ static int s3c2440_set_gpio_output_val (struct mflash_gpio_num gpio, uint8_t val
 static int pxa270_set_gpio_to_output (struct mflash_gpio_num gpio);
 static int pxa270_set_gpio_output_val (struct mflash_gpio_num gpio, uint8_t val);
 
-static command_t *mflash_cmd;
+static struct command *mflash_cmd;
 
 static struct mflash_bank *mflash_bank;
 
index 4094effcb15b3beb557a520b6f81241f9c697190..be3a669a958f5fc92aa90aa109a9298496d95232 100644 (file)
@@ -62,7 +62,7 @@ static struct nand_flash_controller *nand_flash_controllers[] =
 
 /* configured NAND devices and NAND Flash command handler */
 static struct nand_device *nand_devices = NULL;
-static command_t *nand_cmd;
+static struct command *nand_cmd;
 
 /*     Chip ID list
  *
index bb3d69c16bc45654ddb9985e273de0bcdcdf9e7d..b6c4c440f4112ed99aee6317d857b4e923c11acd 100644 (file)
@@ -885,7 +885,7 @@ COMMAND_HANDLER(pic32mx_handle_pgm_word_command)
 
 static int pic32mx_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *pic32mx_cmd = register_command(cmd_ctx, NULL, "pic32mx",
+       struct command *pic32mx_cmd = register_command(cmd_ctx, NULL, "pic32mx",
                        NULL, COMMAND_ANY, "pic32mx flash specific commands");
 #if 0
        register_command(cmd_ctx, pic32mx_cmd, "lock",
index 910d047dc01e11ecf6ffe55d0ffd13af9b1d0e4a..56762d16550e43ee6ef929f81e6baf7c0720d73c 100644 (file)
@@ -1162,7 +1162,7 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command)
 
 static int stellaris_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *stm32x_cmd = register_command(cmd_ctx, NULL, "stellaris",
+       struct command *stm32x_cmd = register_command(cmd_ctx, NULL, "stellaris",
                        NULL, COMMAND_ANY, "stellaris flash specific commands");
 
        register_command(cmd_ctx, stm32x_cmd, "mass_erase",
index abbf6cb61b9e1f44566ddd93e635011339306003..7ac06a68f9f7b379dd029a3a667b0770b20802a1 100644 (file)
@@ -1183,7 +1183,7 @@ COMMAND_HANDLER(stm32x_handle_mass_erase_command)
 
 static int stm32x_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *stm32x_cmd = register_command(cmd_ctx, NULL, "stm32x",
+       struct command *stm32x_cmd = register_command(cmd_ctx, NULL, "stm32x",
                        NULL, COMMAND_ANY, "stm32x flash specific commands");
 
        register_command(cmd_ctx, stm32x_cmd, "lock",
index 83070134e7a61b15878bbce7a46bdaf2b5ad0255..71709bb028572684d79fe06a7e174e207eb7ca3d 100644 (file)
@@ -673,7 +673,7 @@ COMMAND_HANDLER(str7x_handle_disable_jtag_command)
 
 static int str7x_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *str7x_cmd = register_command(cmd_ctx, NULL, "str7x",
+       struct command *str7x_cmd = register_command(cmd_ctx, NULL, "str7x",
                        NULL, COMMAND_ANY, "str7x flash specific commands");
 
        register_command(cmd_ctx, str7x_cmd, "disable_jtag",
index a06bd1ec49a8a49362377e4a95f8e2caeb87f978..1506cb59dd1495244b62eeb374316798281be76b 100644 (file)
@@ -677,7 +677,7 @@ COMMAND_HANDLER(str9x_handle_flash_config_command)
 
 static int str9x_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *str9x_cmd = register_command(cmd_ctx, NULL, "str9x",
+       struct command *str9x_cmd = register_command(cmd_ctx, NULL, "str9x",
                        NULL, COMMAND_ANY, "str9x flash commands");
 
        register_command(cmd_ctx, str9x_cmd, "flash_config",
index 03a8ea2e65e7548b8ff41fd17aa1339dede6288d..d1b02c5e24e191e4ab736e0b880a90393d0f3529 100644 (file)
@@ -1165,7 +1165,7 @@ COMMAND_HANDLER(str9xpec_handle_flash_disable_turbo_command)
 
 static int str9xpec_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *str9xpec_cmd = register_command(cmd_ctx, NULL, "str9xpec",
+       struct command *str9xpec_cmd = register_command(cmd_ctx, NULL, "str9xpec",
                        NULL, COMMAND_ANY, "str9xpec flash specific commands");
 
        register_command(cmd_ctx, str9xpec_cmd, "enable_turbo",
index a5f2f36a5a4a27534a43033fd1b0d8d8c630815d..b71e9ed62d6cc9257658f3bf82a73051acb7116d 100644 (file)
@@ -819,7 +819,7 @@ static int tms470_erase_sector(struct flash_bank *bank, int sector)
 
 static int tms470_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *tms470_cmd = register_command(cmd_ctx, NULL, "tms470", NULL, COMMAND_ANY, "applies to TI tms470 family");
+       struct command *tms470_cmd = register_command(cmd_ctx, NULL, "tms470", NULL, COMMAND_ANY, "applies to TI tms470 family");
 
        register_command(cmd_ctx, tms470_cmd, "flash_keyset", tms470_handle_flash_keyset_command, COMMAND_ANY, "tms470 flash_keyset <key0> <key1> <key2> <key3>");
        register_command(cmd_ctx, tms470_cmd, "osc_megahertz", tms470_handle_osc_megahertz_command, COMMAND_ANY, "tms470 osc_megahertz <MHz>");
index 267cc28e4eda264c8f1e33c489104930dcc2def8..275150a4ba0bd1fa243edde3ec50d0810ecbf8d8 100644 (file)
@@ -50,7 +50,7 @@ COMMAND_HANDLER(handle_hello_command)
 
 int hello_register_commands(struct command_context *cmd_ctx)
 {
-       struct command_s *cmd = register_command(cmd_ctx, NULL, "hello",
+       struct command *cmd = register_command(cmd_ctx, NULL, "hello",
                        &handle_hello_command, COMMAND_ANY,
                        "option");
        return cmd ? ERROR_OK : -ENOMEM;
index 60a4a26ee92b25611b4cdb6dbbf2dd496f94c9cc..41af035675b55e12e1e0419f3ee2a9c66909f2e0 100644 (file)
@@ -48,7 +48,7 @@ int fast_and_dangerous = 0;
 Jim_Interp *interp = NULL;
 
 static int run_command(struct command_context *context,
-               command_t *c, const char *words[], unsigned num_words);
+               struct command *c, const char *words[], unsigned num_words);
 
 static void tcl_output(void *privData, const char *file, unsigned line,
                const char *function, const char *string)
@@ -79,7 +79,7 @@ void script_debug(Jim_Interp *interp, const char *name,
 static int script_command(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 {
        /* the private data is stashed in the interp structure */
-       command_t *c;
+       struct command *c;
        struct command_context *context;
        int retval;
        int i;
@@ -164,7 +164,7 @@ static int script_command(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
        return (retval == ERROR_OK)?JIM_OK:JIM_ERR;
 }
 
-static Jim_Obj *command_name_list(struct command_s *c)
+static Jim_Obj *command_name_list(struct command *c)
 {
        Jim_Obj *cmd_list = c->parent ?
                        command_name_list(c->parent) :
@@ -197,10 +197,10 @@ static void command_helptext_add(Jim_Obj *cmd_list, const char *help)
  * Find a command by name from a list of commands.
  * @returns The named command if found, or NULL.
  */
-static struct command_s *command_find(struct command_s **head, const char *name)
+static struct command *command_find(struct command **head, const char *name)
 {
        assert(head);
-       for (struct command_s *cc = *head; cc; cc = cc->next)
+       for (struct command *cc = *head; cc; cc = cc->next)
        {
                if (strcmp(cc->name, name) == 0)
                        return cc;
@@ -213,7 +213,7 @@ static struct command_s *command_find(struct command_s **head, const char *name)
  * @returns Returns false if the named command already exists in the list.
  * Returns true otherwise.
  */
-static void command_add_child(struct command_s **head, struct command_s *c)
+static void command_add_child(struct command **head, struct command *c)
 {
        assert(head);
        if (NULL == *head)
@@ -221,24 +221,24 @@ static void command_add_child(struct command_s **head, struct command_s *c)
                *head = c;
                return;
        }
-       struct command_s *cc = *head;
+       struct command *cc = *head;
        while (cc->next) cc = cc->next;
        cc->next = c;
 }
 
-command_t* register_command(struct command_context *context,
-               command_t *parent, char *name, command_handler_t handler,
+struct command* register_command(struct command_context *context,
+               struct command *parent, char *name, command_handler_t handler,
                enum command_mode mode, char *help)
 {
        if (!context || !name)
                return NULL;
 
-       struct command_s **head = parent ? &parent->children : &context->commands;
-       struct command_s *c = command_find(head, name);
+       struct command **head = parent ? &parent->children : &context->commands;
+       struct command *c = command_find(head, name);
        if (NULL != c)
                return c;
 
-       c = malloc(sizeof(command_t));
+       c = malloc(sizeof(struct command));
 
        c->name = strdup(name);
        c->parent = parent;
@@ -276,7 +276,7 @@ command_t* register_command(struct command_context *context,
 
 int unregister_all_commands(struct command_context *context)
 {
-       command_t *c, *c2;
+       struct command *c, *c2;
 
        if (context == NULL)
                return ERROR_OK;
@@ -308,7 +308,7 @@ int unregister_all_commands(struct command_context *context)
 
 int unregister_command(struct command_context *context, char *name)
 {
-       command_t *c, *p = NULL, *c2;
+       struct command *c, *p = NULL, *c2;
 
        if ((!context) || (!name))
                return ERROR_INVALID_ARGUMENTS;
@@ -414,7 +414,7 @@ void command_print(struct command_context *context, const char *format, ...)
        va_end(ap);
 }
 
-static char *__command_name(struct command_s *c, char delim, unsigned extra)
+static char *__command_name(struct command *c, char delim, unsigned extra)
 {
        char *name;
        unsigned len = strlen(c->name);
@@ -431,13 +431,13 @@ static char *__command_name(struct command_s *c, char delim, unsigned extra)
        }
        return name;
 }
-char *command_name(struct command_s *c, char delim)
+char *command_name(struct command *c, char delim)
 {
        return __command_name(c, delim, 0);
 }
 
 static int run_command(struct command_context *context,
-               command_t *c, const char *words[], unsigned num_words)
+               struct command *c, const char *words[], unsigned num_words)
 {
        int start_word = 0;
        if (!((context->mode == COMMAND_CONFIG) || (c->mode == COMMAND_ANY) || (c->mode == context->mode)))
index 169852ef6d0425ed56d1a68cd024a88c3985d357..94d981654c41eebb7d1c83a9fde917ae502777ab 100644 (file)
@@ -60,7 +60,7 @@ typedef int (*command_output_handler_t)(struct command_context *context,
 struct command_context
 {
        enum command_mode mode;
-       struct command_s *commands;
+       struct command *commands;
        int current_target;
        /* Execute a command.
         *
@@ -131,15 +131,15 @@ struct command_context
 /// The type signature for commands' handler functions.
 typedef __COMMAND_HANDLER((*command_handler_t));
 
-typedef struct command_s
+struct command
 {
        char *name;
-       struct command_s *parent;
-       struct command_s *children;
+       struct command *parent;
+       struct command *children;
        command_handler_t handler;
        enum command_mode mode;
-       struct command_s *next;
-} command_t;
+       struct command *next;
+};
 
 /**
  * @param c The command to be named.
@@ -149,10 +149,10 @@ typedef struct command_s
  * are separated by single spaces.  The caller must free() the string
  * when done with it.
  */
-char *command_name(struct command_s *c, char delim);
+char *command_name(struct command *c, char delim);
 
-command_t* register_command(struct command_context *context,
-               command_t *parent, char *name, command_handler_t handler,
+struct command* register_command(struct command_context *context,
+               struct command *parent, char *name, command_handler_t handler,
                enum command_mode mode, char *help);
 
 int unregister_command(struct command_context *context, char *name);
index b01f593bdf5e50a0ad73cf6121375ecc879d575c..67919e4e3070c5c24026f2e6d241326914b22805 100644 (file)
@@ -78,7 +78,7 @@ int interface_jtag_add_plain_ir_scan(int num_fields, const struct scan_field *fi
        return ERROR_OK;
 }
 
-/*extern jtag_command_t **jtag_get_last_command_p(void);*/
+/*extern jtag_struct command **jtag_get_last_command_p(void);*/
 
 int interface_jtag_add_dr_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
 {
index 8f2f26fe65d8d9d0edc752b332bab90a567332f1..8aa0342a23b0d05373327227df38bfc3fdc1868d 100644 (file)
@@ -578,7 +578,7 @@ dtc_run_download(
 
 struct dtc_reply_queue_entry {
        struct dtc_reply_queue_entry_s  *next;
-       jtag_command_t  *cmd;   /* the command that resulted in this entry */
+       jtag_struct command     *cmd;   /* the command that resulted in this entry */
 
        struct {
                uint8_t         *buffer;        /* the scan buffer */
@@ -637,7 +637,7 @@ dtc_queue_enqueue_reply(
        int                             size,
        int                             offset,
        int                             length,
-       jtag_command_t  *cmd
+       jtag_struct command     *cmd
 ) {
        struct dtc_reply_queue_entry    *rq_entry;
 
@@ -1090,7 +1090,7 @@ void rlink_reset(int trst, int srst)
 static
 int
 rlink_scan(
-       jtag_command_t  *cmd,
+       jtag_struct command     *cmd,
        enum scan_type  type,
        uint8_t                 *buffer,
        int                     scan_size
@@ -1378,7 +1378,7 @@ rlink_scan(
 static
 int rlink_execute_queue(void)
 {
-       jtag_command_t *cmd = jtag_command_queue; /* currently processed command */
+       jtag_struct command *cmd = jtag_command_queue; /* currently processed command */
        int scan_size;
        enum scan_type type;
        uint8_t *buffer;
index 1edf57f8ea2eda4171b1e9caade039c65708e7a9..526914afb14ad93553a6d9ce01f44cec30d07c73 100644 (file)
@@ -595,7 +595,7 @@ int interface_jtag_add_plain_ir_scan(int num_fields, const struct scan_field *fi
        return ERROR_OK;
 }
 
-/*extern jtag_command_t **jtag_get_last_command_p(void);*/
+/*extern jtag_struct command **jtag_get_last_command_p(void);*/
 
 int interface_jtag_add_dr_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
 {
index f5f3303a5a5b280aa30217ef6b73f58af64b47b5..fdb276f1ca09800a060064ba36f9a85b5bdce79d 100644 (file)
@@ -37,7 +37,7 @@ static struct pld_driver *pld_drivers[] =
 };
 
 static struct pld_device *pld_devices;
-static command_t *pld_cmd;
+static struct command *pld_cmd;
 
 struct pld_device *get_pld_device_by_num(int num)
 {
index 24bcd3481cb2e54039e81bb412eb629ca1b7c20e..ea9ee0cec5b51e99b90c328bf41e22f2b2f3c4b1 100644 (file)
@@ -235,7 +235,7 @@ PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command)
 
 static int virtex2_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *virtex2_cmd = register_command(cmd_ctx, NULL, "virtex2",
+       struct command *virtex2_cmd = register_command(cmd_ctx, NULL, "virtex2",
                        NULL, COMMAND_ANY, "virtex2 specific commands");
 
        register_command(cmd_ctx, virtex2_cmd, "read_stat",
index feaa17b66124677dd7e75139845d1950cfbfed73..24c6b8f4afb4b261ccf9bea8ee5d0c584e1c95a2 100644 (file)
@@ -2243,7 +2243,7 @@ int arm11_register_commands(struct command_context *cmd_ctx)
 {
        FNC_INFO;
 
-       command_t *top_cmd, *mw_cmd;
+       struct command *top_cmd, *mw_cmd;
 
        top_cmd = register_command(cmd_ctx, NULL, "arm11",
                        NULL, COMMAND_ANY, NULL);
index bdbc8dd3d85ab6348e9963c9cee6aed1584ffac0..145c8d15fa0255b158632f97d7a2b4e1f56a5f5b 100644 (file)
@@ -493,7 +493,7 @@ static int arm720t_mcr(struct target *target, int cpnum, uint32_t op1, uint32_t
 static int arm720t_register_commands(struct command_context *cmd_ctx)
 {
        int retval;
-       command_t *arm720t_cmd;
+       struct command *arm720t_cmd;
 
 
        retval = arm7_9_register_commands(cmd_ctx);
index 87a643455d3df107ddd9226fa99d35c89d938893..ce2d4f027fac0fcad4315eda5b5b9d2981d5f137 100644 (file)
@@ -3121,7 +3121,7 @@ int arm7_9_init_arch_info(struct target *target, struct arm7_9_common *arm7_9)
 
 int arm7_9_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *arm7_9_cmd;
+       struct command *arm7_9_cmd;
 
        arm7_9_cmd = register_command(cmd_ctx, NULL, "arm7_9",
                        NULL, COMMAND_ANY, "arm7/9 specific commands");
index cd63d7bdd517ee5c02c2cdae3be0203df41c5a09..dd742cacf73466201d81b0a22cabcb03fc1dd527 100644 (file)
@@ -1351,7 +1351,7 @@ static int arm920t_mcr(struct target *target, int cpnum, uint32_t op1, uint32_t
 int arm920t_register_commands(struct command_context *cmd_ctx)
 {
        int retval;
-       command_t *arm920t_cmd;
+       struct command *arm920t_cmd;
 
        retval = arm9tdmi_register_commands(cmd_ctx);
 
index 47a20cb109042b39dac1360b65905a728bf6d27c..c7609c472a41409fed0f2a81e0330b73cbbd1450 100644 (file)
@@ -821,7 +821,7 @@ static int arm926ejs_mmu(struct target *target, int *enabled)
 int arm926ejs_register_commands(struct command_context *cmd_ctx)
 {
        int retval;
-       command_t *arm926ejs_cmd;
+       struct command *arm926ejs_cmd;
 
        retval = arm9tdmi_register_commands(cmd_ctx);
 
index 6db7d79bf47207f33af26366f3a6c7a66b304d85..61f9ae501d319092c7bde6f992a1020c163a429e 100644 (file)
@@ -219,7 +219,7 @@ COMMAND_HANDLER(arm966e_handle_cp15_command)
 int arm966e_register_commands(struct command_context *cmd_ctx)
 {
        int retval;
-       command_t *arm966e_cmd;
+       struct command *arm966e_cmd;
 
        retval = arm9tdmi_register_commands(cmd_ctx);
        arm966e_cmd = register_command(cmd_ctx, NULL, "arm966e",
index b910447f10d1a5fd7fa57c377b10ef571b0448d5..147c0903e02d0363235ef96b31b22ec5ad89cb2a 100644 (file)
@@ -939,7 +939,7 @@ COMMAND_HANDLER(handle_arm9tdmi_catch_vectors_command)
 int arm9tdmi_register_commands(struct command_context *cmd_ctx)
 {
        int retval;
-       command_t *arm9tdmi_cmd;
+       struct command *arm9tdmi_cmd;
 
        retval = arm7_9_register_commands(cmd_ctx);
        arm9tdmi_cmd = register_command(cmd_ctx, NULL, "arm9",
index f7d5d16c3ac97d9c038d9192e4818bdb0f0ec950..6e3eff68e79b68c96eb48a8d6fe468dff70fc01d 100644 (file)
@@ -464,7 +464,7 @@ usage:
 
 int armv4_5_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *armv4_5_cmd;
+       struct command *armv4_5_cmd;
 
        armv4_5_cmd = register_command(cmd_ctx, NULL, "armv4_5",
                        NULL, COMMAND_ANY,
index e40e8fdcff44e2670a6a5f5fcd5b7d367c115150..0474a5608163e950c1e06f855b4284e215365ede 100644 (file)
@@ -363,8 +363,8 @@ usage:
 
 int armv7a_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *arm_adi_v5_dap_cmd;
-       command_t *armv7a_cmd;
+       struct command *arm_adi_v5_dap_cmd;
+       struct command *armv7a_cmd;
 
        arm_adi_v5_dap_cmd = register_command(cmd_ctx, NULL, "dap",
                        NULL, COMMAND_ANY,
index a7405840d30339d5f64aa3bedb87f45397655a70..f33964521c0f358f14975c40d44e21e903a47780 100644 (file)
@@ -834,7 +834,7 @@ COMMAND_HANDLER(handle_dap_info_command)
 /** Registers commands used to access DAP resources. */
 int armv7m_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *arm_adi_v5_dap_cmd;
+       struct command *arm_adi_v5_dap_cmd;
 
        arm_adi_v5_dap_cmd = register_command(cmd_ctx, NULL, "dap",
                        NULL, COMMAND_ANY,
index 6c6136349d5c86fa2ba2b9263b896d91c0eb08a7..730cd33e190c0d022aa975d95651dca578747edb 100644 (file)
@@ -1548,7 +1548,7 @@ COMMAND_HANDLER(cortex_a8_handle_dbginit_command)
 
 static int cortex_a8_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *cortex_a8_cmd;
+       struct command *cortex_a8_cmd;
        int retval = ERROR_OK;
 
        armv4_5_register_commands(cmd_ctx);
index bb0b0c416be85b5d582ee8ab37842d4346f9996a..e236df2d51bd957b6e940d04dcde1cbbcc6ac501 100644 (file)
@@ -1931,7 +1931,7 @@ COMMAND_HANDLER(handle_cortex_m3_mask_interrupts_command)
 static int cortex_m3_register_commands(struct command_context *cmd_ctx)
 {
        int retval;
-       command_t *cortex_m3_cmd;
+       struct command *cortex_m3_cmd;
 
        retval = armv7m_register_commands(cmd_ctx);
 
index 903951f5a551aa8a77161af95a48925f32a12a0a..2e8e7ca4bb6027cd6b972b6a69824de43f441976 100644 (file)
@@ -405,7 +405,7 @@ COMMAND_HANDLER(handle_etb_config_command)
 
 static int etb_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *etb_cmd = register_command(cmd_ctx, NULL, "etb",
+       struct command *etb_cmd = register_command(cmd_ctx, NULL, "etb",
                        NULL, COMMAND_ANY, "Embedded Trace Buffer");
 
        register_command(cmd_ctx, etb_cmd, "config",
index ee064ebc16e9364f68bf428b1016f46fa036bd3e..43158b5667cffdb06913ff3d86497c839154b77b 100644 (file)
@@ -223,7 +223,7 @@ static int etm_register_user_commands(struct command_context *cmd_ctx);
 static int etm_set_reg_w_exec(struct reg *reg, uint8_t *buf);
 static int etm_write_reg(struct reg *reg, uint32_t value);
 
-static command_t *etm_cmd;
+static struct command *etm_cmd;
 
 
 /* Look up register by ID ... most ETM instances only
index 8301fb06fbec7f6ce16b378469f9a8d80412435e..b0ab1fb857815b6feee94e3816f7c5fb36945a28 100644 (file)
@@ -60,7 +60,7 @@ COMMAND_HANDLER(handle_etm_dummy_config_command)
 
 static int etm_dummy_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *etm_dummy_cmd;
+       struct command *etm_dummy_cmd;
 
        etm_dummy_cmd = register_command(cmd_ctx, NULL, "etm_dummy", NULL, COMMAND_ANY, "Dummy ETM capture driver");
 
index c2e13618fbd8a42741f6c44252f6654038dd73e0..cad49779cd8ce380e94d88f1cab6d1d7414a33d2 100644 (file)
@@ -409,7 +409,7 @@ COMMAND_HANDLER(handle_oocd_trace_resync_command)
 
 int oocd_trace_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *oocd_trace_cmd;
+       struct command *oocd_trace_cmd;
 
        oocd_trace_cmd = register_command(cmd_ctx, NULL, "oocd_trace", NULL, COMMAND_ANY, "OpenOCD + trace");
 
index 1f02be6fd2eec169a98717016b4909df09e42fbd..283ce55f3752fe3456e4d4b7ce9f33fd10e9120e 100644 (file)
@@ -34,7 +34,7 @@
 #include "log.h"
 
 
-static command_t *target_request_cmd = NULL;
+static struct command *target_request_cmd = NULL;
 static int charmsg_mode = 0;
 
 static int target_asciimsg(struct target *target, uint32_t length)
index aa8fb29434c88fee11c6b27063dfc5173244f3c3..6ec08d6ff6a021d80429b57821162dd2f0e8ca7a 100644 (file)
@@ -158,7 +158,7 @@ COMMAND_HANDLER(handle_trace_history_command)
 
 int trace_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *trace_cmd =
+       struct command *trace_cmd =
                register_command(cmd_ctx, NULL, "trace", NULL, COMMAND_ANY, "trace commands");
 
        register_command(cmd_ctx, trace_cmd, "history", handle_trace_history_command,
index 73c1ba1cc2d2c7b8d2931ae8fc4648b4005db7f3..ca3ea2ae89ffe4a31029e632fcf9b031eb1d7f1c 100644 (file)
@@ -3577,7 +3577,7 @@ COMMAND_HANDLER(xscale_handle_cp15)
 
 static int xscale_register_commands(struct command_context *cmd_ctx)
 {
-       command_t *xscale_cmd;
+       struct command *xscale_cmd;
 
        xscale_cmd = register_command(cmd_ctx, NULL, "xscale", NULL, COMMAND_ANY, "xscale specific commands");