summaryrefslogtreecommitdiff
path: root/src/flash/flash.h
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 04:28:24 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 04:28:24 +0000
commit0643263d68bcddc56eaa7e3678b7502798410711 (patch)
tree7d456b630b1fb24c2f1622fe3250bc2b26b635a3 /src/flash/flash.h
parent0b6c73ae8398964268d2df6f87347d9c59b04858 (diff)
downloadopenocd+libswd-0643263d68bcddc56eaa7e3678b7502798410711.tar.gz
openocd+libswd-0643263d68bcddc56eaa7e3678b7502798410711.tar.bz2
openocd+libswd-0643263d68bcddc56eaa7e3678b7502798410711.tar.xz
openocd+libswd-0643263d68bcddc56eaa7e3678b7502798410711.zip
Audit and eliminate redundant #include directives in src/flash headers.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1711 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r--src/flash/flash.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index 817c6062..1a98286c 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -27,7 +27,9 @@
#define FLASH_H
#include "target.h"
-#include "image.h"
+#include "log.h"
+
+struct image_s;
#define FLASH_MAX_ERROR_STR (128)
@@ -65,7 +67,7 @@ typedef struct flash_driver_s
typedef struct flash_bank_s
{
- target_t *target;
+ struct target_s *target;
flash_driver_t *driver;
void *driver_priv;
int bank_number;
@@ -81,8 +83,8 @@ typedef struct flash_bank_s
extern int flash_register_commands(struct command_context_s *cmd_ctx);
extern int flash_init_drivers(struct command_context_s *cmd_ctx);
-extern int flash_erase_address_range(target_t *target, u32 addr, u32 length);
-extern int flash_write(target_t *target, image_t *image, u32 *written, int erase);
+extern int flash_erase_address_range(struct target_s *target, u32 addr, u32 length);
+extern int flash_write(struct target_s *target, struct image_s *image, u32 *written, int erase);
extern void flash_set_dirty(void);
extern int flash_get_bank_count(void);
extern int default_flash_blank_check(struct flash_bank_s *bank);
@@ -90,7 +92,7 @@ extern int default_flash_mem_blank_check(struct flash_bank_s *bank);
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);
+extern flash_bank_t *get_flash_bank_by_addr(struct target_s *target, u32 addr);
#define ERROR_FLASH_BANK_INVALID (-900)
#define ERROR_FLASH_SECTOR_INVALID (-901)