diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-09-26 17:55:28 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-09-26 17:55:28 +0000 |
commit | e5408ce0b6b4805421fd81fe772b070367854c03 (patch) | |
tree | ecaca1797782257abf4a4f61d549f7d08e73591d /src/flash/flash.h | |
parent | fb7189761d49bb177fd556f6603a0996a3f721a0 (diff) | |
download | riscv-openocd-e5408ce0b6b4805421fd81fe772b070367854c03.zip riscv-openocd-e5408ce0b6b4805421fd81fe772b070367854c03.tar.gz riscv-openocd-e5408ce0b6b4805421fd81fe772b070367854c03.tar.bz2 |
Gheorghe Guran <roatlasro@yahoo.com> redone at91sam7 driver. Old driver source file renamed. The old driver is still invoked by default and the new driver is invoked by using at91sam7_new
git-svn-id: svn://svn.berlios.de/openocd/trunk@1007 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r-- | src/flash/flash.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h index 904c0c7..4ccbc04 100644 --- a/src/flash/flash.h +++ b/src/flash/flash.h @@ -68,6 +68,7 @@ typedef struct flash_bank_s target_t *target; flash_driver_t *driver; void *driver_priv; + int bank_number; u32 base; u32 size; int chip_width; @@ -91,13 +92,13 @@ extern flash_bank_t *get_flash_bank_by_num(int num); extern flash_bank_t *get_flash_bank_by_num_noprobe(int num); extern flash_bank_t *get_flash_bank_by_addr(target_t *target, u32 addr); -#define ERROR_FLASH_BANK_INVALID (-900) -#define ERROR_FLASH_SECTOR_INVALID (-901) -#define ERROR_FLASH_OPERATION_FAILED (-902) -#define ERROR_FLASH_DST_OUT_OF_BANK (-903) -#define ERROR_FLASH_DST_BREAKS_ALIGNMENT (-904) -#define ERROR_FLASH_BUSY (-905) -#define ERROR_FLASH_SECTOR_NOT_ERASED (-906) -#define ERROR_FLASH_BANK_NOT_PROBED (-907) +#define ERROR_FLASH_BANK_INVALID (-900) +#define ERROR_FLASH_SECTOR_INVALID (-901) +#define ERROR_FLASH_OPERATION_FAILED (-902) +#define ERROR_FLASH_DST_OUT_OF_BANK (-903) +#define ERROR_FLASH_DST_BREAKS_ALIGNMENT (-904) +#define ERROR_FLASH_BUSY (-905) +#define ERROR_FLASH_SECTOR_NOT_ERASED (-906) +#define ERROR_FLASH_BANK_NOT_PROBED (-907) #endif /* FLASH_H */ |