Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
46fc1d57
Commit
46fc1d57
authored
Nov 13, 2009
by
Zachary T Welch
Browse files
working_area_t -> struct working_area
Remove misleading typedef and redundant suffix from struct working_area.
parent
c2b5d8a6
Changes
23
Hide whitespace changes
Inline
Side-by-side
src/flash/aduc702x.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/arm_nandio.h
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/cfi.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/cfi.h
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/ecos.c
View file @
46fc1d57
...
...
@@ -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
;
};
...
...
src/flash/lpc2000.c
View file @
46fc1d57
...
...
@@ -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
)
...
...
src/flash/lpc2000.h
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/lpc2900.c
View file @
46fc1d57
...
...
@@ -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
,
...
...
src/flash/pic32mx.c
View file @
46fc1d57
...
...
@@ -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
...
...
src/flash/pic32mx.h
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/stellaris.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/stm32x.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/stm32x.h
View file @
46fc1d57
...
...
@@ -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
;
};
...
...
src/flash/str7x.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/str7x.h
View file @
46fc1d57
...
...
@@ -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
...
...
src/flash/str9x.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/flash/str9x.h
View file @
46fc1d57
...
...
@@ -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
...
...
src/target/arm7_9_common.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
src/target/arm7_9_common.h
View file @
46fc1d57
...
...
@@ -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 */
...
...
src/target/armv7m.c
View file @
46fc1d57
...
...
@@ -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
;
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment