#ifndef __LINUX_BCM963XX_TAG_H__
#define __LINUX_BCM963XX_TAG_H__
#include <linux/types.h>
#define TAGVER_LEN 4 /* Length of Tag Version */
#define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */
#define SIG1_LEN 20 /* Company Signature 1 Length */
#define SIG2_LEN 14 /* Company Signature 2 Length */
#define BOARDID_LEN 16 /* Length of BoardId */
#define ENDIANFLAG_LEN 2 /* Endian Flag Length */
#define CHIPID_LEN 6 /* Chip Id Length */
#define IMAGE_LEN 10 /* Length of Length Field */
#define ADDRESS_LEN 12 /* Length of Address field */
#define IMAGE_SEQUENCE_LEN 4 /* Image sequence Length */
#define RSASIG_LEN 20 /* Length of RSA Signature in tag */
#define TAGINFO1_LEN 30 /* Length of vendor information field1 in tag */
#define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */
#define TAGINFO2_LEN 16 /* Length of vendor information field2 in tag */
#define ALTTAGINFO_LEN 54 /* Alternate length for vendor information; Pirelli */
#define NUM_PIRELLI 2
#define IMAGETAG_CRC_START 0xFFFFFFFF
#define PIRELLI_BOARDS { \
"AGPF-S0", \
"DWV-S0", \
}
#define BCM963XX_EXTENDED_SIZE 0xBFC00000
struct bcm_tag {
char tag_version[TAGVER_LEN];
char sig_1[SIG1_LEN];
char sig_2[SIG2_LEN];
char chip_id[CHIPID_LEN];
char board_id[BOARDID_LEN];
char big_endian[ENDIANFLAG_LEN];
char total_length[IMAGE_LEN];
char cfe__address[ADDRESS_LEN];
char cfe_length[IMAGE_LEN];
char flash_image_start[ADDRESS_LEN];
char root_length[IMAGE_LEN];
char kernel_address[ADDRESS_LEN];
char kernel_length[IMAGE_LEN];
char image_sequence[IMAGE_SEQUENCE_LEN];
char rsa_signature[RSASIG_LEN];
char information1[TAGINFO1_LEN];
char flash_layout_ver[FLASHLAYOUTVER_LEN];
__u32 fskernel_crc;
char information2[TAGINFO2_LEN];
__u32 image_crc;
__u32 rootfs_crc;
__u32 kernel_crc;
char reserved1[8];
__u32 header_crc;
char reserved2[16];
};
#endif /* __LINUX_BCM63XX_TAG_H__ */