diff options
-rw-r--r-- | include/asm-x86/microcode.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-x86/microcode.h b/include/asm-x86/microcode.h index ef77c6f438bf..4e941721c0d1 100644 --- a/include/asm-x86/microcode.h +++ b/include/asm-x86/microcode.h | |||
@@ -30,6 +30,35 @@ struct extended_sigtable { | |||
30 | struct extended_signature sigs[0]; | 30 | struct extended_signature sigs[0]; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | struct equiv_cpu_entry { | ||
34 | unsigned int installed_cpu; | ||
35 | unsigned int fixed_errata_mask; | ||
36 | unsigned int fixed_errata_compare; | ||
37 | unsigned int equiv_cpu; | ||
38 | }; | ||
39 | |||
40 | struct microcode_header_amd { | ||
41 | unsigned int data_code; | ||
42 | unsigned int patch_id; | ||
43 | unsigned char mc_patch_data_id[2]; | ||
44 | unsigned char mc_patch_data_len; | ||
45 | unsigned char init_flag; | ||
46 | unsigned int mc_patch_data_checksum; | ||
47 | unsigned int nb_dev_id; | ||
48 | unsigned int sb_dev_id; | ||
49 | unsigned char processor_rev_id[2]; | ||
50 | unsigned char nb_rev_id; | ||
51 | unsigned char sb_rev_id; | ||
52 | unsigned char bios_api_rev; | ||
53 | unsigned char reserved1[3]; | ||
54 | unsigned int match_reg[8]; | ||
55 | }; | ||
56 | |||
57 | struct microcode_amd { | ||
58 | struct microcode_header_amd hdr; | ||
59 | unsigned int mpb[0]; | ||
60 | }; | ||
61 | |||
33 | struct ucode_cpu_info { | 62 | struct ucode_cpu_info { |
34 | int valid; | 63 | int valid; |
35 | unsigned int sig; | 64 | unsigned int sig; |
@@ -37,5 +66,6 @@ struct ucode_cpu_info { | |||
37 | unsigned int rev; | 66 | unsigned int rev; |
38 | union { | 67 | union { |
39 | struct microcode_intel *mc_intel; | 68 | struct microcode_intel *mc_intel; |
69 | struct microcode_amd *mc_amd; | ||
40 | } mc; | 70 | } mc; |
41 | }; | 71 | }; |