summaryrefslogtreecommitdiff
path: root/target/linux/rdc/files-2.6.24/drivers/mtd/maps/imghdr.h
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-04-24 12:30:01 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-04-24 12:30:01 +0000
commit2189d0cffc87184b8ad79c5fd7b109b0f81e8cca (patch)
tree8ffaf7fbb5e6cad681f792c3609c57a17e134047 /target/linux/rdc/files-2.6.24/drivers/mtd/maps/imghdr.h
parent1376b2744128db97e9981f6dc77dd032ef2259bb (diff)
downloadmtk-20170518-2189d0cffc87184b8ad79c5fd7b109b0f81e8cca.zip
mtk-20170518-2189d0cffc87184b8ad79c5fd7b109b0f81e8cca.tar.gz
mtk-20170518-2189d0cffc87184b8ad79c5fd7b109b0f81e8cca.tar.bz2
move files to files-2.6.24, not required with newer kernels
SVN-Revision: 15380
Diffstat (limited to 'target/linux/rdc/files-2.6.24/drivers/mtd/maps/imghdr.h')
-rw-r--r--target/linux/rdc/files-2.6.24/drivers/mtd/maps/imghdr.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/rdc/files-2.6.24/drivers/mtd/maps/imghdr.h b/target/linux/rdc/files-2.6.24/drivers/mtd/maps/imghdr.h
new file mode 100644
index 0000000..7232b70
--- /dev/null
+++ b/target/linux/rdc/files-2.6.24/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