strip the kernel version suffix from target directories, except for brcm-2.4 (the...
[openwrt/openwrt.git] / target / linux / rdc / files / drivers / mtd / maps / imghdr.h
1 #ifndef GT_IMGHDR_H
2 #define GT_IMGHDR_H
3
4 #define GTIMG_MAGIC "GMTK"
5
6 /* Product ID */
7 #define PID_RTL_AIRGO 1
8 #define PID_RTL_RALINK 2
9 #define PID_RDC_AIRGO 3
10 #define PID_RDC_RALINK 5 /* White Lable */
11
12 /* Gemtek */
13 typedef struct
14 {
15 u8 magic[4]; /* ASICII: GMTK */
16 u32 checksum; /* CRC32 */
17 u32 version; /* x.x.x.x */
18 u32 kernelsz; /* The size of the kernel image */
19 u32 imagesz; /* The length of this image file ( kernel + romfs + this header) */
20 u32 pid; /* Product ID */
21 u32 fastcksum; /* Partial CRC32 on (First(256), medium(256), last(512)) */
22 u32 reserved;
23 }gt_imghdr_t;
24
25 #endif