summaryrefslogtreecommitdiffstats
path: root/target/linux/rdc/files/drivers/mtd/maps/imghdr.h
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-10 21:55:44 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-10 21:55:44 +0000
commit54d2454fcd0b0558d5c80d09cb1e7a0f675fbd02 (patch)
tree63de83c25a36e5fb8205b127c76918f28bf5ee5e /target/linux/rdc/files/drivers/mtd/maps/imghdr.h
parentd1f5700e78924bf5fc5d2cba684e7d8c4a55e78c (diff)
downloadmaster-31e0f0ae-54d2454fcd0b0558d5c80d09cb1e7a0f675fbd02.tar.gz
master-31e0f0ae-54d2454fcd0b0558d5c80d09cb1e7a0f675fbd02.tar.bz2
master-31e0f0ae-54d2454fcd0b0558d5c80d09cb1e7a0f675fbd02.zip
move files-2.6.28 to files
SVN-Revision: 16406
Diffstat (limited to 'target/linux/rdc/files/drivers/mtd/maps/imghdr.h')
-rw-r--r--target/linux/rdc/files/drivers/mtd/maps/imghdr.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/rdc/files/drivers/mtd/maps/imghdr.h b/target/linux/rdc/files/drivers/mtd/maps/imghdr.h
new file mode 100644
index 0000000000..7232b70615
--- /dev/null
+++ b/target/linux/rdc/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
+{
+ u8 magic[4]; /* ASICII: GMTK */
+ u32 checksum; /* CRC32 */
+ u32 version; /* x.x.x.x */
+ u32 kernelsz; /* The size of the kernel image */
+ u32 imagesz; /* The length of this image file ( kernel + romfs + this header) */
+ u32 pid; /* Product ID */
+ u32 fastcksum; /* Partial CRC32 on (First(256), medium(256), last(512)) */
+ u32 reserved;
+}gt_imghdr_t;
+
+#endif