summaryrefslogtreecommitdiffstats
path: root/target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h')
-rw-r--r--target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h b/target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h
new file mode 100644
index 0000000000..bec8ee7783
--- /dev/null
+++ b/target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h
@@ -0,0 +1,25 @@
+#ifndef GT_IMGHDR_H
+#define GT_IMGHDR_H
+
+#define GTIMG_MAGIC "GMTK"
+
+/* Product ID */
+#define PID_RTL_AIRGO 1
+#define PID_RTL_RALINK 2
+#define PID_RDC_AIRGO 3
+#define PID_RDC_RALINK 5 /* White Lable */
+
+/* Gemtek */
+typedef struct
+{
+ UINT8 magic[4]; /* ASICII: GMTK */
+ UINT32 checksum; /* CRC32 */
+ UINT32 version; /* x.x.x.x */
+ UINT32 kernelsz; /* The size of the kernel image */
+ UINT32 imagesz; /* The length of this image file ( kernel + romfs + this header) */
+ UINT32 pid; /* Product ID */
+ UINT32 fastcksum; /* Partial CRC32 on (First(256), medium(256), last(512)) */
+ UINT32 reserved;
+}gt_imghdr_t;
+
+#endif