aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Oruba <peter.oruba@amd.com>2008-07-28 12:44:19 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-28 13:57:56 -0400
commit9835fd4ad9ee5fc6b909df72aa3e3dba04415f4b (patch)
tree5913db54dc3d77e5f62d011814bd9f8cdd3062b3 /include
parentd4ee36686853d5714437c4409f17ad42bfaf4211 (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.h30
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
33struct 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
40struct 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
57struct microcode_amd {
58 struct microcode_header_amd hdr;
59 unsigned int mpb[0];
60};
61
33struct ucode_cpu_info { 62struct 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};