diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-30 21:56:07 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-30 21:56:07 +0000 |
commit | 56a10a49fd3efe8b094f48d0f539b478f1bfbc9e (patch) | |
tree | 6cb9a6f83fd4a6ee3f544b9105a09e75939fa371 /target/linux/rdc-2.6/files/drivers/mtd/maps/imghdr.h | |
parent | c38283c4869eaa426735e08186218815cab2cf9e (diff) |
Split up drivers and specific files, update flash map driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6765 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.h | 25 |
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 000000000..bec8ee778 --- /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 |