summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h b/cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h
index bf69ba63fb..74134750bb 100644
--- a/cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h
+++ b/cleopatre/linux-2.6.25.10-spc300/tools/mkimagedesc/image_desc.h
@@ -17,6 +17,8 @@
#define SPIDCOM_IMG_DESC_NORMAL_TYPE 0x0
+#define SPIDCOM_IMG_DESC_PLC_RAM 0x400000 /* 4M */
+
#define SPIDCOM_IMG_DESC_IS_VALID(desc) ( !memcmp((desc)->magic, SPIDCOM_IMG_DESC_MAGIC, 8) && \
(desc)->is_valid && \
( (desc)->index != SPIDCOM_IMG_DESC_INVALID_INDEX ) )
@@ -24,8 +26,8 @@
/* /!\ All values are LITTLE-ENDIAN */
typedef struct {
char magic[8]; /* Magic number = "SPIDIMG\0"
- * = { 0x53, 0x50, 0x49, 0x44,
- * 0x49, 0x4d, 0x47, 0x00 } */
+ * = { 0x53, 0x50, 0x49, 0x44,
+ * 0x49, 0x4d, 0x47, 0x00 } */
uint32_t index; /* The biggest one is the image to boot */
uint32_t is_valid:1; /* Is image valid (bootable ?) */
uint32_t is_1st_boot:1; /* Is first image boot ? */
@@ -36,8 +38,9 @@ typedef struct {
uint8_t md5_sum[16]; /* MD5 checksum of the whole firmware */
char version[16]; /* Image version string */
char description[64]; /* Image description string */
- uint32_t arch; /* spc300 or unknown */
- char reserved[904];
+ uint32_t arch; /* spc300 or unknown */
+ uint32_t plc_ram; /* RAM size needed for the PLC processor */
+ char reserved[900];
char image[0]; /* Used in bootloader to mark beging of the payload */
} spidcom_image_desc_t;