summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm_tag.h
blob: 7c170c05d9ca4abb5b516f5b5be5e76ec8620b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __BCM63XX_TAG_H
#define __BCM63XX_TAG_H

#define IMAGE_LEN 10                   /* Length of Length Field */
#define ADDRESS_LEN 12                 /* Length of Address field */

struct bcm_tag {
	unsigned char tagVersion[4];                            // Version of the image tag
	unsigned char sig_1[20];                                // Company Line 1
	unsigned char sig_2[14];                                // Company Line 2
	unsigned char chipid[6];                                        // Chip this image is for
	unsigned char boardid[16];                              // Board name
	unsigned char big_endian[2];                             // Map endianness -- 1 BE 0 LE
	unsigned char totalLength[IMAGE_LEN];           //Total length of image
	unsigned char cfeAddress[ADDRESS_LEN];  // Address in memory of CFE
	unsigned char cfeLength[IMAGE_LEN];             // Size of CFE
	unsigned char cfeRootAddress[ADDRESS_LEN];         // Address in memory of rootfs
	unsigned char cfeRootLength[IMAGE_LEN];            // Size of rootfs
	unsigned char kernelAddress[ADDRESS_LEN];       // Address in memory of kernel
	unsigned char kernelLength[IMAGE_LEN];  // Size of kernel
	unsigned char dualImage[2];                             // Unused at present
	unsigned char inactiveFlag[2];                  // Unused at present
	unsigned char reserved1[74];                            // Reserved area not in use
	unsigned char imageCRC[4];                              // CRC32 of images
//      unsigned char reserved2[16];                    // Unused at present
        unsigned char reserved2[4];                     //Unused
        unsigned char rootAddress[ADDRESS_LEN];         // Address in memory of rootfs
        unsigned char headerCRC[4];                     // CRC32 of header excluding tagVersion
//      unsigned char reserved3[16];                    // Unused at present
        unsigned char reserved3[6];                     // Unused at present
        unsigned char rootLength[IMAGE_LEN];            // Size of rootfs
};

#endif /* __BCM63XX_TAG_H */