Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mpc85xx_edac.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ctype.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/edac.h>
#include <linux/smp.h>
#include <linux/gfp.h>
#include <linux/of_platform.h>
#include <linux/of_device.h>
#include "edac_module.h"
#include "edac_core.h"
#include "mpc85xx_edac.h"

Go to the source code of this file.

Macros

#define to_mci(k)   container_of(k, struct mem_ctl_info, dev)
 

Functions

 DEVICE_ATTR (inject_data_hi, S_IRUGO|S_IWUSR, mpc85xx_mc_inject_data_hi_show, mpc85xx_mc_inject_data_hi_store)
 
 DEVICE_ATTR (inject_data_lo, S_IRUGO|S_IWUSR, mpc85xx_mc_inject_data_lo_show, mpc85xx_mc_inject_data_lo_store)
 
 DEVICE_ATTR (inject_ctrl, S_IRUGO|S_IWUSR, mpc85xx_mc_inject_ctrl_show, mpc85xx_mc_inject_ctrl_store)
 
 MODULE_DEVICE_TABLE (of, mpc85xx_l2_err_of_match)
 
 MODULE_DEVICE_TABLE (of, mpc85xx_mc_err_of_match)
 
 module_init (mpc85xx_mc_init)
 
 module_exit (mpc85xx_mc_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Montavista Software, Inc.")
 
 module_param (edac_op_state, int, 0444)
 
 MODULE_PARM_DESC (edac_op_state,"EDAC Error Reporting state: 0=Poll, 2=Interrupt")
 

Macro Definition Documentation

#define to_mci (   k)    container_of(k, struct mem_ctl_info, dev)

Definition at line 52 of file mpc85xx_edac.c.

Function Documentation

DEVICE_ATTR ( inject_data_hi  ,
S_IRUGO S_IWUSR,
mpc85xx_mc_inject_data_hi_show  ,
mpc85xx_mc_inject_data_hi_store   
)
DEVICE_ATTR ( inject_data_lo  ,
S_IRUGO S_IWUSR,
mpc85xx_mc_inject_data_lo_show  ,
mpc85xx_mc_inject_data_lo_store   
)
DEVICE_ATTR ( inject_ctrl  ,
S_IRUGO S_IWUSR,
mpc85xx_mc_inject_ctrl_show  ,
mpc85xx_mc_inject_ctrl_store   
)
MODULE_AUTHOR ( "Montavista  Software,
Inc."   
)
MODULE_DEVICE_TABLE ( of  ,
mpc85xx_l2_err_of_match   
)
MODULE_DEVICE_TABLE ( of  ,
mpc85xx_mc_err_of_match   
)
module_exit ( mpc85xx_mc_exit  )
module_init ( mpc85xx_mc_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( edac_op_state  ,
int  ,
0444   
)
MODULE_PARM_DESC ( edac_op_state  ,
"EDAC Error Reporting state:  0 = Poll 
)