summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/aduc702x.c4
-rw-r--r--src/flash/arm_nandio.h2
-rw-r--r--src/flash/cfi.c4
-rw-r--r--src/flash/cfi.h2
-rw-r--r--src/flash/ecos.c4
-rw-r--r--src/flash/lpc2000.c2
-rw-r--r--src/flash/lpc2000.h2
-rw-r--r--src/flash/lpc2900.c2
-rw-r--r--src/flash/pic32mx.c2
-rw-r--r--src/flash/pic32mx.h2
-rw-r--r--src/flash/stellaris.c4
-rw-r--r--src/flash/stm32x.c2
-rw-r--r--src/flash/stm32x.h2
-rw-r--r--src/flash/str7x.c2
-rw-r--r--src/flash/str7x.h2
-rw-r--r--src/flash/str9x.c2
-rw-r--r--src/flash/str9x.h2
17 files changed, 21 insertions, 21 deletions
diff --git a/src/flash/aduc702x.c b/src/flash/aduc702x.c
index ebda702a..8011e933 100644
--- a/src/flash/aduc702x.c
+++ b/src/flash/aduc702x.c
@@ -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;
diff --git a/src/flash/arm_nandio.h b/src/flash/arm_nandio.h
index eedf5dca..cb8df428 100644
--- a/src/flash/arm_nandio.h
+++ b/src/flash/arm_nandio.h
@@ -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;
diff --git a/src/flash/cfi.c b/src/flash/cfi.c
index c0c2cb79..6a193e2d 100644
--- a/src/flash/cfi.c
+++ b/src/flash/cfi.c
@@ -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;
diff --git a/src/flash/cfi.h b/src/flash/cfi.h
index 7763aff6..deca9163 100644
--- a/src/flash/cfi.h
+++ b/src/flash/cfi.h
@@ -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;
diff --git a/src/flash/ecos.c b/src/flash/ecos.c
index 0a97bda1..450bd5b7 100644
--- a/src/flash/ecos.c
+++ b/src/flash/ecos.c
@@ -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;
};
diff --git a/src/flash/lpc2000.c b/src/flash/lpc2000.c
index 31e81b3b..4ad3e0e5 100644
--- a/src/flash/lpc2000.c
+++ b/src/flash/lpc2000.c
@@ -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)
diff --git a/src/flash/lpc2000.h b/src/flash/lpc2000.h
index b93deb69..08e278a3 100644
--- a/src/flash/lpc2000.h
+++ b/src/flash/lpc2000.h
@@ -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;
diff --git a/src/flash/lpc2900.c b/src/flash/lpc2900.c
index f6b3bf6f..08879077 100644
--- a/src/flash/lpc2900.c
+++ b/src/flash/lpc2900.c
@@ -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,
diff --git a/src/flash/pic32mx.c b/src/flash/pic32mx.c
index 262200c0..d29950ce 100644
--- a/src/flash/pic32mx.c
+++ b/src/flash/pic32mx.c
@@ -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
diff --git a/src/flash/pic32mx.h b/src/flash/pic32mx.h
index 3a3c9794..92f40c2e 100644
--- a/src/flash/pic32mx.h
+++ b/src/flash/pic32mx.h
@@ -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;
diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c
index cdeccbe1..6ec036cc 100644
--- a/src/flash/stellaris.c
+++ b/src/flash/stellaris.c
@@ -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;
diff --git a/src/flash/stm32x.c b/src/flash/stm32x.c
index a63ff60b..35da209c 100644
--- a/src/flash/stm32x.c
+++ b/src/flash/stm32x.c
@@ -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;
diff --git a/src/flash/stm32x.h b/src/flash/stm32x.h
index 9e1e5b1c..6cd047e1 100644
--- a/src/flash/stm32x.h
+++ b/src/flash/stm32x.h
@@ -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;
};
diff --git a/src/flash/str7x.c b/src/flash/str7x.c
index 68ba26eb..d5defe5f 100644
--- a/src/flash/str7x.c
+++ b/src/flash/str7x.c
@@ -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;
diff --git a/src/flash/str7x.h b/src/flash/str7x.h
index ef2d2e33..81af0f1e 100644
--- a/src/flash/str7x.h
+++ b/src/flash/str7x.h
@@ -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
diff --git a/src/flash/str9x.c b/src/flash/str9x.c
index bae895d2..09e5a08f 100644
--- a/src/flash/str9x.c
+++ b/src/flash/str9x.c
@@ -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;
diff --git a/src/flash/str9x.h b/src/flash/str9x.h
index 69385148..c9d5152f 100644
--- a/src/flash/str9x.h
+++ b/src/flash/str9x.h
@@ -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