Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
amd64_edac.c File Reference
#include "amd64_edac.h"
#include <asm/amd_nb.h>

Go to the source code of this file.

Data Structures

struct  scrubrate
 

Macros

#define for_each_chip_select(i, dct, pvt)   for (i = 0; i < pvt->csels[dct].b_cnt; i++)
 
#define chip_select_base(i, dct, pvt)   pvt->csels[dct].csbases[i]
 
#define for_each_chip_select_mask(i, dct, pvt)   for (i = 0; i < pvt->csels[dct].m_cnt; i++)
 

Functions

 module_param (report_gart_errors, int, 0644)
 
 module_param (ecc_enable_override, int, 0644)
 
int __amd64_write_pci_cfg_dword (struct pci_dev *pdev, int offset, u32 val, const char *func)
 
int amd64_get_dram_hole_info (struct mem_ctl_info *mci, u64 *hole_base, u64 *hole_offset, u64 *hole_size)
 
 EXPORT_SYMBOL_GPL (amd64_get_dram_hole_info)
 
void amd64_decode_bus_error (int node_id, struct mce *m)
 
 MODULE_DEVICE_TABLE (pci, amd64_pci_table)
 
 module_init (amd64_edac_init)
 
 module_exit (amd64_edac_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("SoftwareBitMaker: Doug Thompson, ""Dave Peterson, Thayne Harbaugh")
 
 MODULE_DESCRIPTION ("MC support for AMD64 memory controllers - "EDAC_AMD64_VERSION)
 
 module_param (edac_op_state, int, 0444)
 
 MODULE_PARM_DESC (edac_op_state,"EDAC Error Reporting state: 0=Poll,1=NMI")
 

Variables

struct scrubrate scrubrates []
 

Macro Definition Documentation

#define chip_select_base (   i,
  dct,
  pvt 
)    pvt->csels[dct].csbases[i]

Definition at line 366 of file amd64_edac.c.

#define for_each_chip_select (   i,
  dct,
  pvt 
)    for (i = 0; i < pvt->csels[dct].b_cnt; i++)

Definition at line 363 of file amd64_edac.c.

#define for_each_chip_select_mask (   i,
  dct,
  pvt 
)    for (i = 0; i < pvt->csels[dct].m_cnt; i++)

Definition at line 369 of file amd64_edac.c.

Function Documentation

int __amd64_write_pci_cfg_dword ( struct pci_dev pdev,
int  offset,
u32  val,
const char func 
)

Definition at line 76 of file amd64_edac.c.

void amd64_decode_bus_error ( int  node_id,
struct mce m 
)

Definition at line 2004 of file amd64_edac.c.

int amd64_get_dram_hole_info ( struct mem_ctl_info mci,
u64 hole_base,
u64 hole_offset,
u64 hole_size 
)

Definition at line 422 of file amd64_edac.c.

EXPORT_SYMBOL_GPL ( amd64_get_dram_hole_info  )
MODULE_AUTHOR ( "SoftwareBitMaker: Doug  Thompson,
""Dave  Peterson,
Thayne Harbaugh"   
)
MODULE_DESCRIPTION ( "MC support for AMD64 memory controllers - "  EDAC_AMD64_VERSION)
MODULE_DEVICE_TABLE ( pci  ,
amd64_pci_table   
)
module_exit ( amd64_edac_exit  )
module_init ( amd64_edac_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( report_gart_errors  ,
int  ,
0644   
)
module_param ( ecc_enable_override  ,
int  ,
0644   
)
module_param ( edac_op_state  ,
int  ,
0444   
)
MODULE_PARM_DESC ( edac_op_state  ,
"EDAC Error Reporting state:  0 = Poll 
)

Variable Documentation

struct scrubrate scrubrates[]
Initial value:
= {
{ 0x01, 1600000000UL},
{ 0x02, 800000000UL},
{ 0x03, 400000000UL},
{ 0x04, 200000000UL},
{ 0x05, 100000000UL},
{ 0x06, 50000000UL},
{ 0x07, 25000000UL},
{ 0x08, 12284069UL},
{ 0x09, 6274509UL},
{ 0x0A, 3121951UL},
{ 0x0B, 1560975UL},
{ 0x0C, 781440UL},
{ 0x0D, 390720UL},
{ 0x0E, 195300UL},
{ 0x0F, 97650UL},
{ 0x10, 48854UL},
{ 0x11, 24427UL},
{ 0x12, 12213UL},
{ 0x13, 6101UL},
{ 0x14, 3051UL},
{ 0x15, 1523UL},
{ 0x16, 761UL},
{ 0x00, 0UL},
}