Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ppc4xx_edac.c File Reference
#include <linux/edac.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/types.h>
#include <asm/dcr.h>
#include "edac_core.h"
#include "ppc4xx_edac.h"

Go to the source code of this file.

Data Structures

struct  ppc4xx_edac_pdata
 
struct  ppc4xx_ecc_status
 

Macros

#define EDAC_OPSTATE_INT_STR   "interrupt"
 
#define EDAC_OPSTATE_POLL_STR   "polled"
 
#define EDAC_OPSTATE_UNKNOWN_STR   "unknown"
 
#define PPC4XX_EDAC_MODULE_NAME   "ppc4xx_edac"
 
#define PPC4XX_EDAC_MODULE_REVISION   "v1.0.0"
 
#define PPC4XX_EDAC_MESSAGE_SIZE   256
 
#define ppc4xx_edac_printk(level, fmt, arg...)   edac_printk(level, "PPC4xx MC", fmt, ##arg)
 
#define ppc4xx_edac_mc_printk(level, mci, fmt, arg...)   edac_mc_chipset_printk(mci, level, "PPC4xx", fmt, ##arg)
 
#define SDRAM_MBCF_SZ_MiB_MIN   4
 
#define SDRAM_MBCF_SZ_TO_MiB(n)
 
#define SDRAM_MBCF_SZ_TO_PAGES(n)
 
#define SDRAM_DCR_RESOURCE_LEN   2
 
#define SDRAM_DCR_ADDR_OFFSET   0
 
#define SDRAM_DCR_DATA_OFFSET   1
 
#define INTMAP_ECCDED_INDEX   0 /* Double-bit Error Detect */
 
#define INTMAP_ECCSEC_INDEX   1 /* Single-bit Error Correct */
 

Functions

 module_init (ppc4xx_edac_init)
 
 module_exit (ppc4xx_edac_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Grant Erickson <[email protected]>")
 
 MODULE_DESCRIPTION ("EDAC MC Driver for the PPC4xx IBM DDR2 Memory Controller")
 
 module_param (edac_op_state, int, 0444)
 
 MODULE_PARM_DESC (edac_op_state,"EDAC Error Reporting State: ""0="EDAC_OPSTATE_POLL_STR", 2="EDAC_OPSTATE_INT_STR)
 

Macro Definition Documentation

#define EDAC_OPSTATE_INT_STR   "interrupt"

Definition at line 111 of file ppc4xx_edac.c.

#define EDAC_OPSTATE_POLL_STR   "polled"

Definition at line 112 of file ppc4xx_edac.c.

#define EDAC_OPSTATE_UNKNOWN_STR   "unknown"

Definition at line 113 of file ppc4xx_edac.c.

#define INTMAP_ECCDED_INDEX   0 /* Double-bit Error Detect */

Definition at line 157 of file ppc4xx_edac.c.

#define INTMAP_ECCSEC_INDEX   1 /* Single-bit Error Correct */

Definition at line 158 of file ppc4xx_edac.c.

#define ppc4xx_edac_mc_printk (   level,
  mci,
  fmt,
  arg... 
)    edac_mc_chipset_printk(mci, level, "PPC4xx", fmt, ##arg)

Definition at line 129 of file ppc4xx_edac.c.

#define PPC4XX_EDAC_MESSAGE_SIZE   256

Definition at line 118 of file ppc4xx_edac.c.

#define PPC4XX_EDAC_MODULE_NAME   "ppc4xx_edac"

Definition at line 115 of file ppc4xx_edac.c.

#define PPC4XX_EDAC_MODULE_REVISION   "v1.0.0"

Definition at line 116 of file ppc4xx_edac.c.

#define ppc4xx_edac_printk (   level,
  fmt,
  arg... 
)    edac_printk(level, "PPC4xx MC", fmt, ##arg)

Definition at line 123 of file ppc4xx_edac.c.

#define SDRAM_DCR_ADDR_OFFSET   0

Definition at line 151 of file ppc4xx_edac.c.

#define SDRAM_DCR_DATA_OFFSET   1

Definition at line 152 of file ppc4xx_edac.c.

#define SDRAM_DCR_RESOURCE_LEN   2

Definition at line 150 of file ppc4xx_edac.c.

#define SDRAM_MBCF_SZ_MiB_MIN   4

Definition at line 136 of file ppc4xx_edac.c.

#define SDRAM_MBCF_SZ_TO_MiB (   n)
Value:

Definition at line 137 of file ppc4xx_edac.c.

#define SDRAM_MBCF_SZ_TO_PAGES (   n)
Value:
<< (20 - PAGE_SHIFT + \
SDRAM_MBCF_SZ_DECODE(n)))

Definition at line 139 of file ppc4xx_edac.c.

Function Documentation

MODULE_AUTHOR ( "Grant Erickson <[email protected]>"  )
MODULE_DESCRIPTION ( "EDAC MC Driver for the PPC4xx IBM DDR2 Memory Controller )
module_exit ( ppc4xx_edac_exit  )
module_init ( ppc4xx_edac_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( edac_op_state  ,
int  ,
0444   
)
MODULE_PARM_DESC ( edac_op_state  ,
"EDAC Error Reporting State: ""  0 = "EDAC_OPSTATE_POLL_STR" 
)