diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-17 21:05:42 -0400 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-23 01:55:20 -0400 |
| commit | bb8985586b7a906e116db835c64773b7a7d51663 (patch) | |
| tree | de93ae58e88cc563d95cc124a73f3930594c6100 /include/asm-x86/microcode.h | |
| parent | 8ede0bdb63305d3353efd97e9af6210afb05734e (diff) | |
x86, um: ... and asm-x86 move
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/asm-x86/microcode.h')
| -rw-r--r-- | include/asm-x86/microcode.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/include/asm-x86/microcode.h b/include/asm-x86/microcode.h deleted file mode 100644 index 62c793bb70ca..000000000000 --- a/include/asm-x86/microcode.h +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | #ifndef ASM_X86__MICROCODE_H | ||
| 2 | #define ASM_X86__MICROCODE_H | ||
| 3 | |||
| 4 | struct cpu_signature { | ||
| 5 | unsigned int sig; | ||
| 6 | unsigned int pf; | ||
| 7 | unsigned int rev; | ||
| 8 | }; | ||
| 9 | |||
| 10 | struct device; | ||
| 11 | |||
| 12 | struct microcode_ops { | ||
| 13 | int (*request_microcode_user) (int cpu, const void __user *buf, size_t size); | ||
| 14 | int (*request_microcode_fw) (int cpu, struct device *device); | ||
| 15 | |||
| 16 | void (*apply_microcode) (int cpu); | ||
| 17 | |||
| 18 | int (*collect_cpu_info) (int cpu, struct cpu_signature *csig); | ||
| 19 | void (*microcode_fini_cpu) (int cpu); | ||
| 20 | }; | ||
| 21 | |||
| 22 | struct ucode_cpu_info { | ||
| 23 | struct cpu_signature cpu_sig; | ||
| 24 | int valid; | ||
| 25 | void *mc; | ||
| 26 | }; | ||
| 27 | extern struct ucode_cpu_info ucode_cpu_info[]; | ||
| 28 | |||
| 29 | #ifdef CONFIG_MICROCODE_INTEL | ||
| 30 | extern struct microcode_ops * __init init_intel_microcode(void); | ||
| 31 | #else | ||
| 32 | static inline struct microcode_ops * __init init_intel_microcode(void) | ||
| 33 | { | ||
| 34 | return NULL; | ||
| 35 | } | ||
| 36 | #endif /* CONFIG_MICROCODE_INTEL */ | ||
| 37 | |||
| 38 | #ifdef CONFIG_MICROCODE_AMD | ||
| 39 | extern struct microcode_ops * __init init_amd_microcode(void); | ||
| 40 | #else | ||
| 41 | static inline struct microcode_ops * __init init_amd_microcode(void) | ||
| 42 | { | ||
| 43 | return NULL; | ||
| 44 | } | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #endif /* ASM_X86__MICROCODE_H */ | ||
