diff options
author | James Bottomley <jejb@hobholes.localdomain> | 2006-10-12 23:23:18 -0400 |
---|---|---|
committer | James Bottomley <jejb@hobholes.localdomain> | 2006-10-12 23:23:18 -0400 |
commit | 58f07943b0ef1e59cbf9a45cdc727048d224637f (patch) | |
tree | 015b61e2985cd1a780a216df8c5445c00112573a /include/asm-i386/voyager.h | |
parent | c771746ef6ad64357897a90da42908d5c800a2c5 (diff) |
[VOYAGER] fix up attribute packed specifiers in voyager.h
The old style (attribute on each structure entry) never really worked.
Move it to an attribute per structure
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/asm-i386/voyager.h')
-rw-r--r-- | include/asm-i386/voyager.h | 160 |
1 files changed, 80 insertions, 80 deletions
diff --git a/include/asm-i386/voyager.h b/include/asm-i386/voyager.h index e74c54aa757f..5b27838905b2 100644 --- a/include/asm-i386/voyager.h +++ b/include/asm-i386/voyager.h | |||
@@ -118,33 +118,33 @@ typedef struct voyager_module { | |||
118 | } voyager_module_t; | 118 | } voyager_module_t; |
119 | 119 | ||
120 | typedef struct voyager_eeprom_hdr { | 120 | typedef struct voyager_eeprom_hdr { |
121 | __u8 module_id[4] __attribute__((packed)); | 121 | __u8 module_id[4]; |
122 | __u8 version_id __attribute__((packed)); | 122 | __u8 version_id; |
123 | __u8 config_id __attribute__((packed)); | 123 | __u8 config_id; |
124 | __u16 boundry_id __attribute__((packed)); /* boundary scan id */ | 124 | __u16 boundry_id; /* boundary scan id */ |
125 | __u16 ee_size __attribute__((packed)); /* size of EEPROM */ | 125 | __u16 ee_size; /* size of EEPROM */ |
126 | __u8 assembly[11] __attribute__((packed)); /* assembly # */ | 126 | __u8 assembly[11]; /* assembly # */ |
127 | __u8 assembly_rev __attribute__((packed)); /* assembly rev */ | 127 | __u8 assembly_rev; /* assembly rev */ |
128 | __u8 tracer[4] __attribute__((packed)); /* tracer number */ | 128 | __u8 tracer[4]; /* tracer number */ |
129 | __u16 assembly_cksum __attribute__((packed)); /* asm checksum */ | 129 | __u16 assembly_cksum; /* asm checksum */ |
130 | __u16 power_consump __attribute__((packed)); /* pwr requirements */ | 130 | __u16 power_consump; /* pwr requirements */ |
131 | __u16 num_asics __attribute__((packed)); /* number of asics */ | 131 | __u16 num_asics; /* number of asics */ |
132 | __u16 bist_time __attribute__((packed)); /* min. bist time */ | 132 | __u16 bist_time; /* min. bist time */ |
133 | __u16 err_log_offset __attribute__((packed)); /* error log offset */ | 133 | __u16 err_log_offset; /* error log offset */ |
134 | __u16 scan_path_offset __attribute__((packed));/* scan path offset */ | 134 | __u16 scan_path_offset;/* scan path offset */ |
135 | __u16 cct_offset __attribute__((packed)); | 135 | __u16 cct_offset; |
136 | __u16 log_length __attribute__((packed)); /* length of err log */ | 136 | __u16 log_length; /* length of err log */ |
137 | __u16 xsum_end __attribute__((packed)); /* offset to end of | 137 | __u16 xsum_end; /* offset to end of |
138 | checksum */ | 138 | checksum */ |
139 | __u8 reserved[4] __attribute__((packed)); | 139 | __u8 reserved[4]; |
140 | __u8 sflag __attribute__((packed)); /* starting sentinal */ | 140 | __u8 sflag; /* starting sentinal */ |
141 | __u8 part_number[13] __attribute__((packed)); /* prom part number */ | 141 | __u8 part_number[13]; /* prom part number */ |
142 | __u8 version[10] __attribute__((packed)); /* version number */ | 142 | __u8 version[10]; /* version number */ |
143 | __u8 signature[8] __attribute__((packed)); | 143 | __u8 signature[8]; |
144 | __u16 eeprom_chksum __attribute__((packed)); | 144 | __u16 eeprom_chksum; |
145 | __u32 data_stamp_offset __attribute__((packed)); | 145 | __u32 data_stamp_offset; |
146 | __u8 eflag __attribute__((packed)); /* ending sentinal */ | 146 | __u8 eflag ; /* ending sentinal */ |
147 | } voyager_eprom_hdr_t; | 147 | } __attribute__((packed)) voyager_eprom_hdr_t; |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
@@ -155,30 +155,30 @@ typedef struct voyager_eeprom_hdr { | |||
155 | * in the module EPROMs. We really only care about the IDs and | 155 | * in the module EPROMs. We really only care about the IDs and |
156 | * offsets */ | 156 | * offsets */ |
157 | typedef struct voyager_sp_table { | 157 | typedef struct voyager_sp_table { |
158 | __u8 asic_id __attribute__((packed)); | 158 | __u8 asic_id; |
159 | __u8 bypass_flag __attribute__((packed)); | 159 | __u8 bypass_flag; |
160 | __u16 asic_data_offset __attribute__((packed)); | 160 | __u16 asic_data_offset; |
161 | __u16 config_data_offset __attribute__((packed)); | 161 | __u16 config_data_offset; |
162 | } voyager_sp_table_t; | 162 | } __attribute__((packed)) voyager_sp_table_t; |
163 | 163 | ||
164 | typedef struct voyager_jtag_table { | 164 | typedef struct voyager_jtag_table { |
165 | __u8 icode[4] __attribute__((packed)); | 165 | __u8 icode[4]; |
166 | __u8 runbist[4] __attribute__((packed)); | 166 | __u8 runbist[4]; |
167 | __u8 intest[4] __attribute__((packed)); | 167 | __u8 intest[4]; |
168 | __u8 samp_preld[4] __attribute__((packed)); | 168 | __u8 samp_preld[4]; |
169 | __u8 ireg_len __attribute__((packed)); | 169 | __u8 ireg_len; |
170 | } voyager_jtt_t; | 170 | } __attribute__((packed)) voyager_jtt_t; |
171 | 171 | ||
172 | typedef struct voyager_asic_data_table { | 172 | typedef struct voyager_asic_data_table { |
173 | __u8 jtag_id[4] __attribute__((packed)); | 173 | __u8 jtag_id[4]; |
174 | __u16 length_bsr __attribute__((packed)); | 174 | __u16 length_bsr; |
175 | __u16 length_bist_reg __attribute__((packed)); | 175 | __u16 length_bist_reg; |
176 | __u32 bist_clk __attribute__((packed)); | 176 | __u32 bist_clk; |
177 | __u16 subaddr_bits __attribute__((packed)); | 177 | __u16 subaddr_bits; |
178 | __u16 seed_bits __attribute__((packed)); | 178 | __u16 seed_bits; |
179 | __u16 sig_bits __attribute__((packed)); | 179 | __u16 sig_bits; |
180 | __u16 jtag_offset __attribute__((packed)); | 180 | __u16 jtag_offset; |
181 | } voyager_at_t; | 181 | } __attribute__((packed)) voyager_at_t; |
182 | 182 | ||
183 | /* Voyager Interrupt Controller (VIC) registers */ | 183 | /* Voyager Interrupt Controller (VIC) registers */ |
184 | 184 | ||
@@ -328,52 +328,52 @@ struct voyager_bios_info { | |||
328 | #define NUMBER_OF_POS_REGS 8 | 328 | #define NUMBER_OF_POS_REGS 8 |
329 | 329 | ||
330 | typedef struct { | 330 | typedef struct { |
331 | __u8 MC_Slot __attribute__((packed)); | 331 | __u8 MC_Slot; |
332 | __u8 POS_Values[NUMBER_OF_POS_REGS] __attribute__((packed)); | 332 | __u8 POS_Values[NUMBER_OF_POS_REGS]; |
333 | } MC_SlotInformation_t; | 333 | } __attribute__((packed)) MC_SlotInformation_t; |
334 | 334 | ||
335 | struct QuadDescription { | 335 | struct QuadDescription { |
336 | __u8 Type __attribute__((packed)); /* for type 0 (DYADIC or MONADIC) all fields | 336 | __u8 Type; /* for type 0 (DYADIC or MONADIC) all fields |
337 | * will be zero except for slot */ | 337 | * will be zero except for slot */ |
338 | __u8 StructureVersion __attribute__((packed)); | 338 | __u8 StructureVersion; |
339 | __u32 CPI_BaseAddress __attribute__((packed)); | 339 | __u32 CPI_BaseAddress; |
340 | __u32 LARC_BankSize __attribute__((packed)); | 340 | __u32 LARC_BankSize; |
341 | __u32 LocalMemoryStateBits __attribute__((packed)); | 341 | __u32 LocalMemoryStateBits; |
342 | __u8 Slot __attribute__((packed)); /* Processor slots 1 - 4 */ | 342 | __u8 Slot; /* Processor slots 1 - 4 */ |
343 | }; | 343 | } __attribute__((packed)); |
344 | 344 | ||
345 | struct ProcBoardInfo { | 345 | struct ProcBoardInfo { |
346 | __u8 Type __attribute__((packed)); | 346 | __u8 Type; |
347 | __u8 StructureVersion __attribute__((packed)); | 347 | __u8 StructureVersion; |
348 | __u8 NumberOfBoards __attribute__((packed)); | 348 | __u8 NumberOfBoards; |
349 | struct QuadDescription QuadData[MAX_PROCESSOR_BOARDS] __attribute__((packed)); | 349 | struct QuadDescription QuadData[MAX_PROCESSOR_BOARDS]; |
350 | }; | 350 | } __attribute__((packed)); |
351 | 351 | ||
352 | struct CacheDescription { | 352 | struct CacheDescription { |
353 | __u8 Level __attribute__((packed)); | 353 | __u8 Level; |
354 | __u32 TotalSize __attribute__((packed)); | 354 | __u32 TotalSize; |
355 | __u16 LineSize __attribute__((packed)); | 355 | __u16 LineSize; |
356 | __u8 Associativity __attribute__((packed)); | 356 | __u8 Associativity; |
357 | __u8 CacheType __attribute__((packed)); | 357 | __u8 CacheType; |
358 | __u8 WriteType __attribute__((packed)); | 358 | __u8 WriteType; |
359 | __u8 Number_CPUs_SharedBy __attribute__((packed)); | 359 | __u8 Number_CPUs_SharedBy; |
360 | __u8 Shared_CPUs_Hardware_IDs[MAX_SHARED_CPUS] __attribute__((packed)); | 360 | __u8 Shared_CPUs_Hardware_IDs[MAX_SHARED_CPUS]; |
361 | 361 | ||
362 | }; | 362 | } __attribute__((packed)); |
363 | 363 | ||
364 | struct CPU_Description { | 364 | struct CPU_Description { |
365 | __u8 CPU_HardwareId __attribute__((packed)); | 365 | __u8 CPU_HardwareId; |
366 | char *FRU_String __attribute__((packed)); | 366 | char *FRU_String; |
367 | __u8 NumberOfCacheLevels __attribute__((packed)); | 367 | __u8 NumberOfCacheLevels; |
368 | struct CacheDescription CacheLevelData[MAX_CACHE_LEVELS] __attribute__((packed)); | 368 | struct CacheDescription CacheLevelData[MAX_CACHE_LEVELS]; |
369 | }; | 369 | } __attribute__((packed)); |
370 | 370 | ||
371 | struct CPU_Info { | 371 | struct CPU_Info { |
372 | __u8 Type __attribute__((packed)); | 372 | __u8 Type; |
373 | __u8 StructureVersion __attribute__((packed)); | 373 | __u8 StructureVersion; |
374 | __u8 NumberOf_CPUs __attribute__((packed)); | 374 | __u8 NumberOf_CPUs; |
375 | struct CPU_Description CPU_Data[MAX_CPUS] __attribute__((packed)); | 375 | struct CPU_Description CPU_Data[MAX_CPUS]; |
376 | }; | 376 | } __attribute__((packed)); |
377 | 377 | ||
378 | 378 | ||
379 | /* | 379 | /* |