diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-04-24 12:55:28 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-04-24 12:55:28 +0000 |
commit | 8acb3423a43b1a5a2211a81aa9234e1695e48a85 (patch) | |
tree | fcbeb51a451a89747038db4bdab6e786270fe688 /target/linux/rdc/files-2.6.28/drivers/mtd/maps/imghdr.h | |
parent | 528f64fd496b0c9596decf866d51240bd95b4b94 (diff) | |
download | upstream-8acb3423a43b1a5a2211a81aa9234e1695e48a85.tar.gz upstream-8acb3423a43b1a5a2211a81aa9234e1695e48a85.tar.bz2 upstream-8acb3423a43b1a5a2211a81aa9234e1695e48a85.zip |
[rdc] add support for 2.6.28 and use it as the default kernel version, tested on Airlink AR525W and RDC8610 eval board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15382 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc/files-2.6.28/drivers/mtd/maps/imghdr.h')
-rw-r--r-- | target/linux/rdc/files-2.6.28/drivers/mtd/maps/imghdr.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/rdc/files-2.6.28/drivers/mtd/maps/imghdr.h b/target/linux/rdc/files-2.6.28/drivers/mtd/maps/imghdr.h new file mode 100644 index 0000000000..7232b70615 --- /dev/null +++ b/target/linux/rdc/files-2.6.28/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 |