diff options
Diffstat (limited to 'include/asm-x86/microcode.h')
-rw-r--r-- | include/asm-x86/microcode.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/asm-x86/microcode.h b/include/asm-x86/microcode.h new file mode 100644 index 000000000000..5a0556855154 --- /dev/null +++ b/include/asm-x86/microcode.h | |||
@@ -0,0 +1,34 @@ | |||
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 | |||
19 | typedef struct microcode microcode_t; | ||
20 | typedef struct microcode_header microcode_header_t; | ||
21 | |||
22 | /* microcode format is extended from prescott processors */ | ||
23 | struct extended_signature { | ||
24 | unsigned int sig; | ||
25 | unsigned int pf; | ||
26 | unsigned int cksum; | ||
27 | }; | ||
28 | |||
29 | struct extended_sigtable { | ||
30 | unsigned int count; | ||
31 | unsigned int cksum; | ||
32 | unsigned int reserved[3]; | ||
33 | struct extended_signature sigs[0]; | ||
34 | }; | ||