summaryrefslogtreecommitdiff
path: root/src/target/image.h
diff options
context:
space:
mode:
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-06-15 14:10:23 +0000
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2007-06-15 14:10:23 +0000
commit3d026ce94393e5e53cccb5d5364f9d500d5b3733 (patch)
tree493a91caf9c2cab8e4109219b89eb132b6f8d717 /src/target/image.h
parent972ca49d3a5e285492e4c1680289f819f26eaec3 (diff)
downloadopenocd+libswd-3d026ce94393e5e53cccb5d5364f9d500d5b3733.tar.gz
openocd+libswd-3d026ce94393e5e53cccb5d5364f9d500d5b3733.tar.bz2
openocd+libswd-3d026ce94393e5e53cccb5d5364f9d500d5b3733.tar.xz
openocd+libswd-3d026ce94393e5e53cccb5d5364f9d500d5b3733.zip
- added support for pseudo image type "mem", currently only used for etm analysis: "etm image <target#> <dummy base address> mem"
git-svn-id: svn://svn.berlios.de/openocd/trunk@173 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/image.h')
-rw-r--r--src/target/image.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/target/image.h b/src/target/image.h
index 074b9069..7aa119ca 100644
--- a/src/target/image.h
+++ b/src/target/image.h
@@ -27,6 +27,8 @@
#define IMAGE_MAX_ERROR_STRING (256)
#define IMAGE_MAX_SECTIONS (128)
+#define IMAGE_MEMORY_CACHE_SIZE (128)
+
typedef enum image_type
{
IMAGE_BINARY, /* plain binary */
@@ -74,6 +76,8 @@ typedef struct image_ihex_s
typedef struct image_memory_s
{
target_t *target;
+ u8 *cache;
+ u32 cache_address;
} image_memory_t;
typedef struct fileio_elf_s
@@ -85,11 +89,12 @@ typedef struct fileio_elf_s
u8 endianness;
} image_elf_t;
-extern int image_open(image_t *image, void *source, char *type_string);
+extern int image_open(image_t *image, char *url, char *type_string);
extern int image_read_section(image_t *image, int section, u32 offset, u32 size, u8 *buffer, u32 *size_read);
extern int image_close(image_t *image);
#define ERROR_IMAGE_FORMAT_ERROR (-1400)
#define ERROR_IMAGE_TYPE_UNKNOWN (-1401)
+#define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE (-1402)
#endif /* IMAGE_H */