diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2011-12-17 07:58:17 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:23:30 -0500 |
commit | 805166783893651e3352ee9e68ad5d0b68a769f1 (patch) | |
tree | 1715a7074f1e94c1e76223650af68786555e9e5f | |
parent | 327c62c554a78af399938445094a7dc834b7fd0b (diff) |
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>
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h b/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h index ed72e6a26b73..1e6b587f62c9 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h | |||
@@ -16,7 +16,6 @@ | |||
16 | #define TAGINFO1_LEN 30 /* Length of vendor information field1 in tag */ | 16 | #define TAGINFO1_LEN 30 /* Length of vendor information field1 in tag */ |
17 | #define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */ | 17 | #define FLASHLAYOUTVER_LEN 4 /* Length of Flash Layout Version String tag */ |
18 | #define TAGINFO2_LEN 16 /* Length of vendor information field2 in tag */ | 18 | #define TAGINFO2_LEN 16 /* Length of vendor information field2 in tag */ |
19 | #define CRC_LEN 4 /* Length of CRC in bytes */ | ||
20 | #define ALTTAGINFO_LEN 54 /* Alternate length for vendor information; Pirelli */ | 19 | #define ALTTAGINFO_LEN 54 /* Alternate length for vendor information; Pirelli */ |
21 | 20 | ||
22 | #define NUM_PIRELLI 2 | 21 | #define NUM_PIRELLI 2 |
@@ -77,19 +76,19 @@ struct bcm_tag { | |||
77 | /* 192-195: Version flash layout */ | 76 | /* 192-195: Version flash layout */ |
78 | char flash_layout_ver[FLASHLAYOUTVER_LEN]; | 77 | char flash_layout_ver[FLASHLAYOUTVER_LEN]; |
79 | /* 196-199: kernel+rootfs CRC32 */ | 78 | /* 196-199: kernel+rootfs CRC32 */ |
80 | char fskernel_crc[CRC_LEN]; | 79 | __u32 fskernel_crc; |
81 | /* 200-215: Unused except on Alice Gate where is is information */ | 80 | /* 200-215: Unused except on Alice Gate where is is information */ |
82 | char information2[TAGINFO2_LEN]; | 81 | char information2[TAGINFO2_LEN]; |
83 | /* 216-219: CRC32 of image less imagetag (kernel for Alice Gate) */ | 82 | /* 216-219: CRC32 of image less imagetag (kernel for Alice Gate) */ |
84 | char image_crc[CRC_LEN]; | 83 | __u32 image_crc; |
85 | /* 220-223: CRC32 of rootfs partition */ | 84 | /* 220-223: CRC32 of rootfs partition */ |
86 | char rootfs_crc[CRC_LEN]; | 85 | __u32 rootfs_crc; |
87 | /* 224-227: CRC32 of kernel partition */ | 86 | /* 224-227: CRC32 of kernel partition */ |
88 | char kernel_crc[CRC_LEN]; | 87 | __u32 kernel_crc; |
89 | /* 228-235: Unused at present */ | 88 | /* 228-235: Unused at present */ |
90 | char reserved1[8]; | 89 | char reserved1[8]; |
91 | /* 236-239: CRC32 of header excluding last 20 bytes */ | 90 | /* 236-239: CRC32 of header excluding last 20 bytes */ |
92 | char header_crc[CRC_LEN]; | 91 | __u32 header_crc; |
93 | /* 240-255: Unused at present */ | 92 | /* 240-255: Unused at present */ |
94 | char reserved2[16]; | 93 | char reserved2[16]; |
95 | }; | 94 | }; |