Commit 46fc1d57 authored by Zachary T Welch's avatar Zachary T Welch
Browse files

working_area_t -> struct working_area

Remove misleading typedef and redundant suffix from struct working_area.
parent c2b5d8a6
......@@ -44,7 +44,7 @@ static int aduc702x_set_write_enable(target_t *target, int enable);
#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#>
......@@ -161,7 +161,7 @@ static int aduc702x_write_block(struct flash_bank_s *bank, uint8_t *buffer, uint
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;
......
......@@ -9,7 +9,7 @@ struct arm_nand_data {
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;
......
......@@ -1022,7 +1022,7 @@ static int cfi_intel_write_block(struct flash_bank_s *bank, uint8_t *buffer, uin
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;
......@@ -1267,7 +1267,7 @@ static int cfi_spansion_write_block(struct flash_bank_s *bank, uint8_t *buffer,
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;
......
......@@ -27,7 +27,7 @@
struct cfi_flash_bank
{
working_area_t *write_algorithm;
struct working_area *write_algorithm;
int x16_as_x8;
int jedec_probe;
......
......@@ -36,8 +36,8 @@ static int ecosflash_handle_gpnvm_command(struct command_context_s *cmd_ctx, cha
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;
};
......
......@@ -548,7 +548,7 @@ static int lpc2000_write(struct flash_bank_s *bank, uint8_t *buffer, uint32_t of
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)
......
......@@ -35,7 +35,7 @@ typedef enum
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;
......
......@@ -1294,7 +1294,7 @@ static int lpc2900_write(struct flash_bank_s *bank, uint8_t *buffer,
/* Try working area allocation. Start with a large buffer, and try with
reduced size if that fails. */
working_area_t *warea;
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,
......
......@@ -302,7 +302,7 @@ static int pic32mx_write_block(struct flash_bank_s *bank, uint8_t *buffer, uint3
{
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
......
......@@ -30,7 +30,7 @@
struct pic32mx_flash_bank
{
working_area_t *write_algorithm;
struct working_area *write_algorithm;
int devid;
int ppage_size;
int probed;
......
......@@ -832,8 +832,8 @@ static int stellaris_write_block(struct flash_bank_s *bank, uint8_t *buffer, uin
{
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;
......
......@@ -435,7 +435,7 @@ static int stm32x_write_block(struct flash_bank_s *bank, uint8_t *buffer, uint32
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;
......
......@@ -35,7 +35,7 @@ struct stm32x_options
struct stm32x_flash_bank
{
struct stm32x_options option_bytes;
working_area_t *write_algorithm;
struct working_area *write_algorithm;
int ppage_size;
int probed;
};
......
......@@ -313,7 +313,7 @@ static int str7x_write_block(struct flash_bank_s *bank, uint8_t *buffer, uint32_
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;
......
......@@ -31,7 +31,7 @@ struct str7x_flash_bank
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
......
......@@ -351,7 +351,7 @@ static int str9x_write_block(struct flash_bank_s *bank,
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;
......
......@@ -30,7 +30,7 @@ struct str9x_flash_bank
uint32_t *sector_bits;
int variant;
int bank1;
working_area_t *write_algorithm;
struct working_area *write_algorithm;
};
enum str9x_status_codes
......
......@@ -2723,7 +2723,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;
struct working_area *crc_algorithm;
struct armv4_5_algorithm armv4_5_info;
struct reg_param reg_params[2];
int retval;
......@@ -2807,7 +2807,7 @@ int arm7_9_checksum_memory(struct target_s *target, uint32_t address, uint32_t c
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;
......
......@@ -69,7 +69,7 @@ struct arm7_9_common
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 */
......
......@@ -588,7 +588,7 @@ int armv7m_init_arch_info(target_t *target, struct armv7m_common *armv7m)
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;
......@@ -671,7 +671,7 @@ int armv7m_checksum_memory(struct target_s *target,
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment