Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
microcode_amd.c File Reference
#include <linux/firmware.h>
#include <linux/pci_ids.h>
#include <linux/uaccess.h>
#include <linux/vmalloc.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <asm/microcode.h>
#include <asm/processor.h>
#include <asm/msr.h>

Go to the source code of this file.

Data Structures

struct  equiv_cpu_entry
 
struct  microcode_header_amd
 
struct  microcode_amd
 
struct  ucode_patch
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define UCODE_MAGIC   0x00414d44
 
#define UCODE_EQUIV_CPU_TABLE_TYPE   0x00000000
 
#define UCODE_UCODE_TYPE   0x00000001
 
#define SECTION_HDR_SIZE   8
 
#define CONTAINER_HDR_SZ   12
 
#define F1XH_MPB_MAX_SIZE   2048
 
#define F14H_MPB_MAX_SIZE   1824
 
#define F15H_MPB_MAX_SIZE   4096
 
#define F16H_MPB_MAX_SIZE   3458
 

Functions

 MODULE_DESCRIPTION ("AMD Microcode Update Driver")
 
 MODULE_AUTHOR ("Peter Oruba")
 
 MODULE_LICENSE ("GPL v2")
 
struct equiv_cpu_entry __attribute__ ((packed))
 
struct microcode_ops *__init init_amd_microcode (void)
 
void __exit exit_amd_microcode (void)
 

Variables

u32 installed_cpu
 
u32 fixed_errata_mask
 
u32 fixed_errata_compare
 
u16 equiv_cpu
 
u16 res
 
u32 data_code
 
u32 patch_id
 
u16 mc_patch_data_id
 
u8 mc_patch_data_len
 
u8 init_flag
 
u32 mc_patch_data_checksum
 
u32 nb_dev_id
 
u32 sb_dev_id
 
u16 processor_rev_id
 
u8 nb_rev_id
 
u8 sb_rev_id
 
u8 bios_api_rev
 
u8 reserved1 [3]
 
u32 match_reg [8]
 
struct microcode_amd __attribute__
 

Macro Definition Documentation

#define CONTAINER_HDR_SZ   12

Definition at line 74 of file microcode_amd.c.

#define F14H_MPB_MAX_SIZE   1824
#define F15H_MPB_MAX_SIZE   4096
#define F16H_MPB_MAX_SIZE   3458
#define F1XH_MPB_MAX_SIZE   2048
#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file microcode_amd.c.

#define SECTION_HDR_SIZE   8

Definition at line 73 of file microcode_amd.c.

#define UCODE_EQUIV_CPU_TABLE_TYPE   0x00000000

Definition at line 40 of file microcode_amd.c.

#define UCODE_MAGIC   0x00414d44

Definition at line 39 of file microcode_amd.c.

#define UCODE_UCODE_TYPE   0x00000001

Definition at line 41 of file microcode_amd.c.

Function Documentation

struct equiv_cpu_entry __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

void __exit exit_amd_microcode ( void  )

Definition at line 490 of file microcode_amd.c.

struct microcode_ops* __init init_amd_microcode ( void  )
read

Definition at line 478 of file microcode_amd.c.

MODULE_AUTHOR ( "Peter Oruba"  )
MODULE_DESCRIPTION ( "AMD Microcode Update Driver"  )
MODULE_LICENSE ( "GPL v2 )

Variable Documentation

u8 bios_api_rev

Definition at line 78 of file microcode_amd.c.

u32 data_code

Definition at line 67 of file microcode_amd.c.

u16 equiv_cpu

Definition at line 53 of file microcode_amd.c.

u32 fixed_errata_compare

Definition at line 52 of file microcode_amd.c.

u32 fixed_errata_mask

Definition at line 51 of file microcode_amd.c.

u8 init_flag

Definition at line 71 of file microcode_amd.c.

u32 installed_cpu

Definition at line 50 of file microcode_amd.c.

u32 match_reg[8]

Definition at line 80 of file microcode_amd.c.

u32 mc_patch_data_checksum

Definition at line 72 of file microcode_amd.c.

u16 mc_patch_data_id

Definition at line 69 of file microcode_amd.c.

u8 mc_patch_data_len

Definition at line 70 of file microcode_amd.c.

u32 nb_dev_id

Definition at line 73 of file microcode_amd.c.

u8 nb_rev_id

Definition at line 76 of file microcode_amd.c.

u32 patch_id

Definition at line 68 of file microcode_amd.c.

u16 processor_rev_id

Definition at line 75 of file microcode_amd.c.

u16 res

Definition at line 54 of file microcode_amd.c.

u8 reserved1[3]

Definition at line 79 of file microcode_amd.c.

u32 sb_dev_id

Definition at line 74 of file microcode_amd.c.

u8 sb_rev_id

Definition at line 77 of file microcode_amd.c.