Remove misleading typedef and redundant suffix from struct working_area.
23 files changed:
#define ADUC702x_FLASH_FEEHIDE (7*4)
struct aduc702x_flash_bank {
#define ADUC702x_FLASH_FEEHIDE (7*4)
struct aduc702x_flash_bank {
- working_area_t *write_algorithm;
+ struct working_area *write_algorithm;
};
/* flash bank aduc702x 0 0 0 0 <target#>
};
/* flash bank aduc702x 0 0 0 0 <target#>
struct aduc702x_flash_bank *aduc702x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 7000;
struct aduc702x_flash_bank *aduc702x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 7000;
- working_area_t *source;
+ struct working_area *source;
uint32_t address = bank->base + offset;
struct reg_param reg_params[6];
struct armv4_5_algorithm armv4_5_info;
uint32_t address = bank->base + offset;
struct reg_param reg_params[6];
struct armv4_5_algorithm armv4_5_info;
struct target_s *target;
/* copy_area holds write-to-NAND loop and data to write */
struct target_s *target;
/* copy_area holds write-to-NAND loop and data to write */
- struct working_area_s *copy_area;
+ struct working_area *copy_area;
/* chunk_size == page or ECC unit */
unsigned chunk_size;
/* chunk_size == page or ECC unit */
unsigned chunk_size;
target_t *target = bank->target;
struct reg_param reg_params[7];
struct armv4_5_algorithm armv4_5_info;
target_t *target = bank->target;
struct reg_param reg_params[7];
struct armv4_5_algorithm armv4_5_info;
- working_area_t *source;
+ struct working_area *source;
uint32_t buffer_size = 32768;
uint32_t write_command_val, busy_pattern_val, error_pattern_val;
uint32_t buffer_size = 32768;
uint32_t write_command_val, busy_pattern_val, error_pattern_val;
target_t *target = bank->target;
struct reg_param reg_params[10];
struct armv4_5_algorithm armv4_5_info;
target_t *target = bank->target;
struct reg_param reg_params[10];
struct armv4_5_algorithm armv4_5_info;
- working_area_t *source;
+ struct working_area *source;
uint32_t buffer_size = 32768;
uint32_t status;
int retval, retvaltemp;
uint32_t buffer_size = 32768;
uint32_t status;
int retval, retvaltemp;
- working_area_t *write_algorithm;
+ struct working_area *write_algorithm;
int x16_as_x8;
int jedec_probe;
int x16_as_x8;
int jedec_probe;
struct ecosflash_flash_bank
{
struct target_s *target;
struct ecosflash_flash_bank
{
struct target_s *target;
- working_area_t *write_algorithm;
- working_area_t *erase_check_algorithm;
+ struct working_area *write_algorithm;
+ struct working_area *erase_check_algorithm;
char *driverPath;
uint32_t start_address;
};
char *driverPath;
uint32_t start_address;
};
uint32_t result_table[4];
int status_code;
int i;
uint32_t result_table[4];
int status_code;
int i;
- working_area_t *download_area;
+ struct working_area *download_area;
int retval = ERROR_OK;
if (bank->target->state != TARGET_HALTED)
int retval = ERROR_OK;
if (bank->target->state != TARGET_HALTED)
struct lpc2000_flash_bank
{
lpc2000_variant variant;
struct lpc2000_flash_bank
{
lpc2000_variant variant;
- struct working_area_s *iap_working_area;
+ struct working_area *iap_working_area;
uint32_t cclk;
int cmd51_dst_boundary;
int cmd51_can_256b;
uint32_t cclk;
int cmd51_dst_boundary;
int cmd51_can_256b;
/* Try working area allocation. Start with a large buffer, and try with
reduced size if that fails. */
/* Try working area allocation. Start with a large buffer, and try with
reduced size if that fails. */
+ struct working_area *warea;
uint32_t buffer_size = lpc2900_info->max_ram_block - 1 * KiB;
while( (retval = target_alloc_working_area(target,
buffer_size + target_code_size,
uint32_t buffer_size = lpc2900_info->max_ram_block - 1 * KiB;
while( (retval = target_alloc_working_area(target,
buffer_size + target_code_size,
{
target_t *target = bank->target;
uint32_t buffer_size = 512;
{
target_t *target = bank->target;
uint32_t buffer_size = 512;
- working_area_t *source;
+ struct working_area *source;
uint32_t address = bank->base + offset;
int retval = ERROR_OK;
#if 0
uint32_t address = bank->base + offset;
int retval = ERROR_OK;
#if 0
struct pic32mx_flash_bank
{
struct pic32mx_flash_bank
{
- working_area_t *write_algorithm;
+ struct working_area *write_algorithm;
int devid;
int ppage_size;
int probed;
int devid;
int ppage_size;
int probed;
{
target_t *target = bank->target;
uint32_t buffer_size = 8192;
{
target_t *target = bank->target;
uint32_t buffer_size = 8192;
- working_area_t *source;
- working_area_t *write_algorithm;
+ struct working_area *source;
+ struct working_area *write_algorithm;
uint32_t address = bank->base + offset;
struct reg_param reg_params[3];
struct armv7m_algorithm armv7m_info;
uint32_t address = bank->base + offset;
struct reg_param reg_params[3];
struct armv7m_algorithm armv7m_info;
struct stm32x_flash_bank *stm32x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 16384;
struct stm32x_flash_bank *stm32x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 16384;
- working_area_t *source;
+ struct working_area *source;
uint32_t address = bank->base + offset;
struct reg_param reg_params[4];
struct armv7m_algorithm armv7m_info;
uint32_t address = bank->base + offset;
struct reg_param reg_params[4];
struct armv7m_algorithm armv7m_info;
struct stm32x_flash_bank
{
struct stm32x_options option_bytes;
struct stm32x_flash_bank
{
struct stm32x_options option_bytes;
- working_area_t *write_algorithm;
+ struct working_area *write_algorithm;
int ppage_size;
int probed;
};
int ppage_size;
int probed;
};
struct str7x_flash_bank *str7x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 8192;
struct str7x_flash_bank *str7x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 8192;
- working_area_t *source;
+ struct working_area *source;
uint32_t address = bank->base + offset;
struct reg_param reg_params[6];
struct armv4_5_algorithm armv4_5_info;
uint32_t address = bank->base + offset;
struct reg_param reg_params[6];
struct armv4_5_algorithm armv4_5_info;
uint32_t disable_bit;
uint32_t busy_bits;
uint32_t register_base;
uint32_t disable_bit;
uint32_t busy_bits;
uint32_t register_base;
- working_area_t *write_algorithm;
+ struct working_area *write_algorithm;
};
enum str7x_status_codes
};
enum str7x_status_codes
struct str9x_flash_bank *str9x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 8192;
struct str9x_flash_bank *str9x_info = bank->driver_priv;
target_t *target = bank->target;
uint32_t buffer_size = 8192;
- working_area_t *source;
+ struct working_area *source;
uint32_t address = bank->base + offset;
struct reg_param reg_params[4];
struct armv4_5_algorithm armv4_5_info;
uint32_t address = bank->base + offset;
struct reg_param reg_params[4];
struct armv4_5_algorithm armv4_5_info;
uint32_t *sector_bits;
int variant;
int bank1;
uint32_t *sector_bits;
int variant;
int bank1;
- working_area_t *write_algorithm;
+ struct working_area *write_algorithm;
};
enum str9x_status_codes
};
enum str9x_status_codes
int arm7_9_checksum_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* checksum)
{
int arm7_9_checksum_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* checksum)
{
- working_area_t *crc_algorithm;
+ struct working_area *crc_algorithm;
struct armv4_5_algorithm armv4_5_info;
struct reg_param reg_params[2];
int retval;
struct armv4_5_algorithm armv4_5_info;
struct reg_param reg_params[2];
int retval;
int arm7_9_blank_check_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* blank)
{
int arm7_9_blank_check_memory(struct target_s *target, uint32_t address, uint32_t count, uint32_t* blank)
{
- working_area_t *erase_check_algorithm;
+ struct working_area *erase_check_algorithm;
struct reg_param reg_params[3];
struct armv4_5_algorithm armv4_5_info;
int retval;
struct reg_param reg_params[3];
struct armv4_5_algorithm armv4_5_info;
int retval;
bool fast_memory_access;
bool dcc_downloads;
bool fast_memory_access;
bool dcc_downloads;
- struct working_area_s *dcc_working_area;
+ struct working_area *dcc_working_area;
int (*examine_debug_reason)(target_t *target); /**< Function for determining why debug state was entered */
int (*examine_debug_reason)(target_t *target); /**< Function for determining why debug state was entered */
int armv7m_checksum_memory(struct target_s *target,
uint32_t address, uint32_t count, uint32_t* checksum)
{
int armv7m_checksum_memory(struct target_s *target,
uint32_t address, uint32_t count, uint32_t* checksum)
{
- working_area_t *crc_algorithm;
+ struct working_area *crc_algorithm;
struct armv7m_algorithm armv7m_info;
struct reg_param reg_params[2];
int retval;
struct armv7m_algorithm armv7m_info;
struct reg_param reg_params[2];
int retval;
int armv7m_blank_check_memory(struct target_s *target,
uint32_t address, uint32_t count, uint32_t* blank)
{
int armv7m_blank_check_memory(struct target_s *target,
uint32_t address, uint32_t count, uint32_t* blank)
{
- working_area_t *erase_check_algorithm;
+ struct working_area *erase_check_algorithm;
struct reg_param reg_params[3];
struct armv7m_algorithm armv7m_info;
int retval;
struct reg_param reg_params[3];
struct armv7m_algorithm armv7m_info;
int retval;
int i;
uint32_t regfile[16], pc, cpsr, dscr;
int retval = ERROR_OK;
int i;
uint32_t regfile[16], pc, cpsr, dscr;
int retval = ERROR_OK;
- working_area_t *regfile_working_area = NULL;
+ struct working_area *regfile_working_area = NULL;
struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = target_to_armv7a(target);
struct armv4_5_common_s *armv4_5 = &armv7a->armv4_5_common;
struct cortex_a8_common *cortex_a8 = target_to_cortex_a8(target);
struct armv7a_common *armv7a = target_to_armv7a(target);
struct armv4_5_common_s *armv4_5 = &armv7a->armv4_5_common;
return target_call_timer_callbacks_check_time(0);
}
return target_call_timer_callbacks_check_time(0);
}
-int target_alloc_working_area(struct target_s *target, uint32_t size, working_area_t **area)
+int target_alloc_working_area(struct target_s *target, uint32_t size, struct working_area **area)
- working_area_t *c = target->working_areas;
- working_area_t *new_wa = NULL;
+ struct working_area *c = target->working_areas;
+ struct working_area *new_wa = NULL;
/* Reevaluate working area address based on MMU state*/
if (target->working_areas == NULL)
/* Reevaluate working area address based on MMU state*/
if (target->working_areas == NULL)
/* if not, allocate a new one */
if (!new_wa)
{
/* if not, allocate a new one */
if (!new_wa)
{
- working_area_t **p = &target->working_areas;
+ struct working_area **p = &target->working_areas;
uint32_t first_free = target->working_area;
uint32_t free_size = target->working_area_size;
uint32_t first_free = target->working_area;
uint32_t free_size = target->working_area_size;
LOG_DEBUG("allocated new working area at address 0x%08x", (unsigned)first_free);
LOG_DEBUG("allocated new working area at address 0x%08x", (unsigned)first_free);
- new_wa = malloc(sizeof(working_area_t));
+ new_wa = malloc(sizeof(struct working_area));
new_wa->next = NULL;
new_wa->size = size;
new_wa->address = first_free;
new_wa->next = NULL;
new_wa->size = size;
new_wa->address = first_free;
-int target_free_working_area_restore(struct target_s *target, working_area_t *area, int restore)
+int target_free_working_area_restore(struct target_s *target, struct working_area *area, int restore)
{
if (area->free)
return ERROR_OK;
{
if (area->free)
return ERROR_OK;
-int target_free_working_area(struct target_s *target, working_area_t *area)
+int target_free_working_area(struct target_s *target, struct working_area *area)
{
return target_free_working_area_restore(target, area, 1);
}
{
return target_free_working_area_restore(target, area, 1);
}
*/
void target_free_all_working_areas_restore(struct target_s *target, int restore)
{
*/
void target_free_all_working_areas_restore(struct target_s *target, int restore)
{
- working_area_t *c = target->working_areas;
+ struct working_area *c = target->working_areas;
- working_area_t *next = c->next;
+ struct working_area *next = c->next;
target_free_working_area_restore(target, c, restore);
if (c->backup)
target_free_working_area_restore(target, c, restore);
if (c->backup)
-typedef struct working_area_s
{
uint32_t address;
uint32_t size;
int free;
uint8_t *backup;
{
uint32_t address;
uint32_t size;
int free;
uint8_t *backup;
- struct working_area_s **user;
- struct working_area_s *next;
-} working_area_t;
+ struct working_area **user;
+ struct working_area *next;
+};
// target_type.h contains the full definitionof struct target_type_s
struct target_type_s;
// target_type.h contains the full definitionof struct target_type_s
struct target_type_s;
uint32_t working_area_phys; /* physical address */
uint32_t working_area_size; /* size in bytes */
uint32_t backup_working_area; /* whether the content of the working area has to be preserved */
uint32_t working_area_phys; /* physical address */
uint32_t working_area_size; /* size in bytes */
uint32_t backup_working_area; /* whether the content of the working area has to be preserved */
- struct working_area_s *working_areas;/* list of allocated working areas */
+ struct working_area *working_areas;/* list of allocated working areas */
enum target_debug_reason debug_reason;/* reason why the target entered debug state */
enum target_endianess endianness; /* target endianess */
// also see: target_state_name()
enum target_debug_reason debug_reason;/* reason why the target entered debug state */
enum target_endianess endianness; /* target endianess */
// also see: target_state_name()
*
*/
int target_alloc_working_area(struct target_s *target,
*
*/
int target_alloc_working_area(struct target_s *target,
- uint32_t size, working_area_t **area);
-int target_free_working_area(struct target_s *target, working_area_t *area);
+ uint32_t size, struct working_area **area);
+int target_free_working_area(struct target_s *target, struct working_area *area);
int target_free_working_area_restore(struct target_s *target,
int target_free_working_area_restore(struct target_s *target,
- working_area_t *area, int restore);
+ struct working_area *area, int restore);
void target_free_all_working_areas(struct target_s *target);
void target_free_all_working_areas_restore(struct target_s *target, int restore);
void target_free_all_working_areas(struct target_s *target);
void target_free_all_working_areas_restore(struct target_s *target, int restore);
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)