diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-12 15:04:59 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-12 15:05:14 -0400 | 
| commit | 807f4f8cdd5b65a8a5fcfda266c074f6a23818dd (patch) | |
| tree | 395afdf45badd02d03871c827b8baa850cbe5841 /include/asm-x86/microcode.h | |
| parent | 1a2217a9516b134e0a0e54cb4629e1e075d97b17 (diff) | |
| parent | 8daf14cf56816303d64d1a705fcbc389211ba36e (diff) | |
Merge branch 'x86-core-v2-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
This merges in:
  x86/build, x86/microcode, x86/spinlocks, x86/memory-corruption-check,
  x86/early-printk, x86/xsave, x86/quirks, x86/setup, x86/signal,
  core/signal, x86/urgent, x86/xen
* 'x86-core-v2-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (142 commits)
  x86: make processor type select depend on CONFIG_EMBEDDED
  x86: extend processor type select help text
  x86, amd-iommu: propagate PCI device enabling error
  warnings: fix arch/x86/kernel/io_apic_64.c
  warnings: fix arch/x86/kernel/early_printk.c
  x86, fpu: check __clear_user() return value
  x86: memory corruption check - cleanup
  x86: ioperm user_regset
  xen: do not reserve 2 pages of padding between hypervisor and fixmap.
  xen: use spin_lock_nest_lock when pinning a pagetable
  x86: xsave: set FP, SSE bits in the xsave header in the user sigcontext
  x86: xsave: fix error condition in save_i387_xstate()
  x86: SB450: deprioritize DMI quirks
  x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC
  x86: replace a magic number with a named constant in the VESA boot code
  x86 setup: remove IMAGE_OFFSET
  x86 setup: remove DEF_INITSEG and DEF_SETUPSEG
  Revert "x86: fix ghost EDD devices in /sys again"
  x86 setup: fix ghost entries under /sys/firmware/edd take 3
  x86: signal: remove indent in restore_sigcontext()
  ...
Diffstat (limited to 'include/asm-x86/microcode.h')
| -rw-r--r-- | include/asm-x86/microcode.h | 47 | 
1 files changed, 47 insertions, 0 deletions
| diff --git a/include/asm-x86/microcode.h b/include/asm-x86/microcode.h new file mode 100644 index 000000000000..62c793bb70ca --- /dev/null +++ b/include/asm-x86/microcode.h | |||
| @@ -0,0 +1,47 @@ | |||
| 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 */ | ||
