armv4_5_algorithm_t -> struct armv4_5_algorithm
authorZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 16:41:07 +0000 (08:41 -0800)
committerZachary T Welch <zw@superlucidity.net>
Fri, 13 Nov 2009 19:58:10 +0000 (11:58 -0800)
Remove misleading typedef and redundant suffix from struct armv4_5_algorithm.

src/flash/aduc702x.c
src/flash/arm_nandio.c
src/flash/cfi.c
src/flash/ecos.c
src/flash/lpc2000.c
src/flash/lpc2900.c
src/flash/str7x.c
src/flash/str9x.c
src/target/arm7_9_common.c
src/target/armv4_5.c
src/target/armv4_5.h

index 931db5a75286bb035107b82613db236f7f53d216..ebda702af9ff15ea2943d9b658d78b3c77b9d9ed 100644 (file)
@@ -164,7 +164,7 @@ static int aduc702x_write_block(struct flash_bank_s *bank, uint8_t *buffer, uint
        working_area_t *source;
        uint32_t address = bank->base + offset;
        struct reg_param reg_params[6];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        int retval = ERROR_OK;
 
        if (((count%2)!=0)||((offset%2)!=0))
index 0453656eac112cd19e77f29a8eb4188e976fbdee..63dcaebbb3a2b81696113d33489c372e633f6bd2 100644 (file)
@@ -42,7 +42,7 @@
 int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size)
 {
        target_t                *target = nand->target;
-       armv4_5_algorithm_t     algo;
+       struct armv4_5_algorithm        algo;
        armv4_5_common_t        *armv4_5 = target->arch_info;
        struct reg_param                reg_params[3];
        uint32_t                target_buf;
index fd9c2a74f2269b38b6462a40da0e30e3eba61e15..c0c2cb79ddbd4dde5484ce4b845c488fd2694a0a 100644 (file)
@@ -1021,7 +1021,7 @@ static int cfi_intel_write_block(struct flash_bank_s *bank, uint8_t *buffer, uin
        struct cfi_flash_bank *cfi_info = bank->driver_priv;
        target_t *target = bank->target;
        struct reg_param reg_params[7];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        working_area_t *source;
        uint32_t buffer_size = 32768;
        uint32_t write_command_val, busy_pattern_val, error_pattern_val;
@@ -1266,7 +1266,7 @@ static int cfi_spansion_write_block(struct flash_bank_s *bank, uint8_t *buffer,
        struct cfi_spansion_pri_ext *pri_ext = cfi_info->pri_ext;
        target_t *target = bank->target;
        struct reg_param reg_params[10];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        working_area_t *source;
        uint32_t buffer_size = 32768;
        uint32_t status;
index 97566d4a503b0a7ac1c1dfecf4b6daa6ddc87e5f..0a97bda1c80b7e060436d7b9b92d75e7a749bd90 100644 (file)
@@ -207,7 +207,7 @@ static int runCode(struct ecosflash_flash_bank *info,
        target_t *target = info->target;
 
        struct reg_param reg_params[3];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        armv4_5_info.common_magic = ARMV4_5_COMMON_MAGIC;
        armv4_5_info.core_mode = ARMV4_5_MODE_SVC;
        armv4_5_info.core_state = ARMV4_5_STATE_ARM;
index 05c08dd6e80aef02c283ef8fe7d14535c7b9d893..a2c09d20710a1792430875600c3c9c6a9e8cb7b4 100644 (file)
@@ -241,7 +241,7 @@ static int lpc2000_iap_call(flash_bank_t *bank, int code, uint32_t param_table[5
        target_t *target = bank->target;
        struct mem_param mem_params[2];
        struct reg_param reg_params[5];
-       armv4_5_algorithm_t armv4_5_info; /* for LPC2000 */
+       struct armv4_5_algorithm armv4_5_info; /* for LPC2000 */
        armv7m_algorithm_t armv7m_info;   /* for LPC1700 */
        uint32_t status_code;
        uint32_t iap_entry_point = 0; /* to make compiler happier */
index 8d1eeb8f4e099bea5d7bb438df23ecf051552853..f6b3bf6f106fafbe62df7372ace6d4752f03fb7b 100644 (file)
@@ -1314,7 +1314,7 @@ static int lpc2900_write(struct flash_bank_s *bank, uint8_t *buffer,
        if( warea )
        {
                struct reg_param reg_params[5];
-               armv4_5_algorithm_t armv4_5_info;
+               struct armv4_5_algorithm armv4_5_info;
 
                /* We can use target mode. Download the algorithm. */
                retval = target_write_buffer( target,
index c594c9669852af9ab54f2ebcee37955ab656f90b..68ba26ebefb3ca963c24f18550dc61845ab59099 100644 (file)
@@ -316,7 +316,7 @@ static int str7x_write_block(struct flash_bank_s *bank, uint8_t *buffer, uint32_
        working_area_t *source;
        uint32_t address = bank->base + offset;
        struct reg_param reg_params[6];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        int retval = ERROR_OK;
 
        uint32_t str7x_flash_write_code[] = {
index c3649085262e25a3b9e87f254c750ff3632df7db..bae895d2240d635fdb3daa45a82acc10fb318074 100644 (file)
@@ -354,7 +354,7 @@ static int str9x_write_block(struct flash_bank_s *bank,
        working_area_t *source;
        uint32_t address = bank->base + offset;
        struct reg_param reg_params[4];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        int retval = ERROR_OK;
 
        uint32_t str9x_flash_write_code[] = {
index 65f26875438f824923b93297f4086a70fd609441..75998fe9d6f2c36746ca51611205f0baf184f751 100644 (file)
@@ -2690,7 +2690,7 @@ int arm7_9_bulk_write_memory(target_t *target, uint32_t address, uint32_t count,
                }
        }
 
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        struct reg_param reg_params[1];
 
        armv4_5_info.common_magic = ARMV4_5_COMMON_MAGIC;
@@ -2724,7 +2724,7 @@ int arm7_9_bulk_write_memory(target_t *target, uint32_t address, uint32_t count,
 int arm7_9_checksum_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* checksum)
 {
        working_area_t *crc_algorithm;
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        struct reg_param reg_params[2];
        int retval;
 
@@ -2809,7 +2809,7 @@ int arm7_9_blank_check_memory(struct target_s *target, uint32_t address, uint32_
 {
        working_area_t *erase_check_algorithm;
        struct reg_param reg_params[3];
-       armv4_5_algorithm_t armv4_5_info;
+       struct armv4_5_algorithm armv4_5_info;
        int retval;
        uint32_t i;
 
index 0dd047dd1168f0c8dfe69fb42e6b9e191d8dd17f..a89b98b8a2ef876c259b923bb287497dae50b851 100644 (file)
@@ -546,7 +546,7 @@ static int armv4_5_run_algorithm_completion(struct target_s *target, uint32_t ex
 int armv4_5_run_algorithm_inner(struct target_s *target, int num_mem_params, struct mem_param *mem_params, int num_reg_params, struct reg_param *reg_params, uint32_t entry_point, uint32_t exit_point, int timeout_ms, void *arch_info, int (*run_it)(struct target_s *target, uint32_t exit_point, int timeout_ms, void *arch_info))
 {
        struct armv4_5_common_s *armv4_5 = target_to_armv4_5(target);
-       armv4_5_algorithm_t *armv4_5_algorithm_info = arch_info;
+       struct armv4_5_algorithm *armv4_5_algorithm_info = arch_info;
        enum armv4_5_state core_state = armv4_5->core_state;
        enum armv4_5_mode core_mode = armv4_5->core_mode;
        uint32_t context[17];
index c6686f1edf2098a7d37883858e82088e5eb3a53d..22069d1b0066a924580ba1ac9aec7d53de0ab2cb 100644 (file)
@@ -119,13 +119,13 @@ static inline bool is_arm(struct arm *arm)
        return arm && arm->common_magic == ARMV4_5_COMMON_MAGIC;
 }
 
-typedef struct armv4_5_algorithm_s
+struct armv4_5_algorithm
 {
        int common_magic;
 
        enum armv4_5_mode core_mode;
        enum armv4_5_state core_state;
-} armv4_5_algorithm_t;
+};
 
 typedef struct armv4_5_core_reg_s
 {

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)