summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/microcode.h
diff options
context:
space:
mode:
authorPeter Oruba2008-07-28 18:44:19 +0200
committerIngo Molnar2008-07-28 19:57:56 +0200
commit9835fd4ad9ee5fc6b909df72aa3e3dba04415f4b (patch)
tree5913db54dc3d77e5f62d011814bd9f8cdd3062b3 /include/asm-x86/microcode.h
parentx86: structure declaration renaming (diff)
downloadkernel-qcow2-linux-9835fd4ad9ee5fc6b909df72aa3e3dba04415f4b.tar.gz
kernel-qcow2-linux-9835fd4ad9ee5fc6b909df72aa3e3dba04415f4b.tar.xz
kernel-qcow2-linux-9835fd4ad9ee5fc6b909df72aa3e3dba04415f4b.zip
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/asm-x86/microcode.h')
-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 {
struct extended_signature sigs[0];
};
+struct equiv_cpu_entry {
+ unsigned int installed_cpu;
+ unsigned int fixed_errata_mask;
+ unsigned int fixed_errata_compare;
+ unsigned int equiv_cpu;
+};
+
+struct microcode_header_amd {
+ unsigned int data_code;
+ unsigned int patch_id;
+ unsigned char mc_patch_data_id[2];
+ unsigned char mc_patch_data_len;
+ unsigned char init_flag;
+ unsigned int mc_patch_data_checksum;
+ unsigned int nb_dev_id;
+ unsigned int sb_dev_id;
+ unsigned char processor_rev_id[2];
+ unsigned char nb_rev_id;
+ unsigned char sb_rev_id;
+ unsigned char bios_api_rev;
+ unsigned char reserved1[3];
+ unsigned int match_reg[8];
+};
+
+struct microcode_amd {
+ struct microcode_header_amd hdr;
+ unsigned int mpb[0];
+};
+
struct ucode_cpu_info {
int valid;
unsigned int sig;
@@ -37,5 +66,6 @@ struct ucode_cpu_info {
unsigned int rev;
union {
struct microcode_intel *mc_intel;
+ struct microcode_amd *mc_amd;
} mc;
};