Peter Oruba | 9a56a0f | 2008-07-28 18:44:13 +0200 | [diff] [blame] | 1 | struct microcode_header { |
| 2 | unsigned int hdrver; |
| 3 | unsigned int rev; |
| 4 | unsigned int date; |
| 5 | unsigned int sig; |
| 6 | unsigned int cksum; |
| 7 | unsigned int ldrver; |
| 8 | unsigned int pf; |
| 9 | unsigned int datasize; |
| 10 | unsigned int totalsize; |
| 11 | unsigned int reserved[3]; |
| 12 | }; |
| 13 | |
| 14 | struct microcode { |
| 15 | struct microcode_header hdr; |
| 16 | unsigned int bits[0]; |
| 17 | }; |
| 18 | |
Peter Oruba | 9a56a0f | 2008-07-28 18:44:13 +0200 | [diff] [blame] | 19 | /* microcode format is extended from prescott processors */ |
| 20 | struct extended_signature { |
| 21 | unsigned int sig; |
| 22 | unsigned int pf; |
| 23 | unsigned int cksum; |
| 24 | }; |
| 25 | |
| 26 | struct extended_sigtable { |
| 27 | unsigned int count; |
| 28 | unsigned int cksum; |
| 29 | unsigned int reserved[3]; |
| 30 | struct extended_signature sigs[0]; |
| 31 | }; |
Peter Oruba | c3b71bc | 2008-07-28 18:44:15 +0200 | [diff] [blame^] | 32 | |
| 33 | struct ucode_cpu_info { |
| 34 | int valid; |
| 35 | unsigned int sig; |
| 36 | unsigned int pf; |
| 37 | unsigned int rev; |
| 38 | struct microcode *mc; |
| 39 | }; |