MIPS: BCM63XX: bcm963xx_tag.h: make crc fields integers
All CRC32 fields are 32 bit integers, so define them as such to prevent unnecessary casts if we want to use them. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
327c62c554
commit
8051667838
1 changed files with 5 additions and 6 deletions
|
@ -16,7 +16,6 @@
|
||||||
#define TAGINFO1_LEN 30 /* Length of vendor information field1 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 FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */
|
||||||
#define TAGINFO2_LEN 16 /* Length of vendor information field2 in tag */
|
#define TAGINFO2_LEN 16 /* Length of vendor information field2 in tag */
|
||||||
#define CRC_LEN 4 /* Length of CRC in bytes */
|
|
||||||
#define ALTTAGINFO_LEN 54 /* Alternate length for vendor information; Pirelli */
|
#define ALTTAGINFO_LEN 54 /* Alternate length for vendor information; Pirelli */
|
||||||
|
|
||||||
#define NUM_PIRELLI 2
|
#define NUM_PIRELLI 2
|
||||||
|
@ -77,19 +76,19 @@ struct bcm_tag {
|
||||||
/* 192-195: Version flash layout */
|
/* 192-195: Version flash layout */
|
||||||
char flash_layout_ver[FLASHLAYOUTVER_LEN];
|
char flash_layout_ver[FLASHLAYOUTVER_LEN];
|
||||||
/* 196-199: kernel+rootfs CRC32 */
|
/* 196-199: kernel+rootfs CRC32 */
|
||||||
char fskernel_crc[CRC_LEN];
|
__u32 fskernel_crc;
|
||||||
/* 200-215: Unused except on Alice Gate where is is information */
|
/* 200-215: Unused except on Alice Gate where is is information */
|
||||||
char information2[TAGINFO2_LEN];
|
char information2[TAGINFO2_LEN];
|
||||||
/* 216-219: CRC32 of image less imagetag (kernel for Alice Gate) */
|
/* 216-219: CRC32 of image less imagetag (kernel for Alice Gate) */
|
||||||
char image_crc[CRC_LEN];
|
__u32 image_crc;
|
||||||
/* 220-223: CRC32 of rootfs partition */
|
/* 220-223: CRC32 of rootfs partition */
|
||||||
char rootfs_crc[CRC_LEN];
|
__u32 rootfs_crc;
|
||||||
/* 224-227: CRC32 of kernel partition */
|
/* 224-227: CRC32 of kernel partition */
|
||||||
char kernel_crc[CRC_LEN];
|
__u32 kernel_crc;
|
||||||
/* 228-235: Unused at present */
|
/* 228-235: Unused at present */
|
||||||
char reserved1[8];
|
char reserved1[8];
|
||||||
/* 236-239: CRC32 of header excluding last 20 bytes */
|
/* 236-239: CRC32 of header excluding last 20 bytes */
|
||||||
char header_crc[CRC_LEN];
|
__u32 header_crc;
|
||||||
/* 240-255: Unused at present */
|
/* 240-255: Unused at present */
|
||||||
char reserved2[16];
|
char reserved2[16];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue