17 #ifndef OPENOCD_TARGET_IMAGE_H
18 #define OPENOCD_TARGET_IMAGE_H
27 #define IMAGE_MAX_ERROR_STRING (256)
28 #define IMAGE_MAX_SECTIONS (512)
30 #define IMAGE_MEMORY_CACHE_SIZE (2048)
96 uint32_t
size, uint8_t *
buffer,
size_t *size_read);
100 uint64_t flags, uint8_t
const *data);
105 #define ERROR_IMAGE_FORMAT_ERROR (-1400)
106 #define ERROR_IMAGE_TYPE_UNKNOWN (-1401)
107 #define ERROR_IMAGE_TEMPORARILY_UNAVAILABLE (-1402)
108 #define ERROR_IMAGE_CHECKSUM (-1403)
void image_close(struct image *image)
int image_read_section(struct image *image, int section, target_addr_t offset, uint32_t size, uint8_t *buffer, size_t *size_read)
int image_calculate_checksum(const uint8_t *buffer, uint32_t nbytes, uint32_t *checksum)
int image_add_section(struct image *image, target_addr_t base, uint32_t size, uint64_t flags, uint8_t const *data)
int image_open(struct image *image, const char *url, const char *type_string)
size_t size
Size of the control block search area.
unsigned int num_sections
struct imagesection * sections
target_addr_t base_address