diff options
author | Peter Oruba <peter.oruba@amd.com> | 2008-07-28 12:44:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 13:57:56 -0400 |
commit | 9835fd4ad9ee5fc6b909df72aa3e3dba04415f4b (patch) | |
tree | 5913db54dc3d77e5f62d011814bd9f8cdd3062b3 /include | |
parent | d4ee36686853d5714437c4409f17ad42bfaf4211 (diff) |
x86: add AMD specific declarations
Added AMD specific declarations to header file.
Signed-off-by: Peter Oruba <peter.oruba@amd.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-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 | }; |