Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
einj.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/nmi.h>
#include <linux/delay.h>
#include <acpi/acpi.h>
#include "apei-internal.h"

Go to the source code of this file.

Data Structures

struct  set_error_type_with_address
 
struct  vendor_error_type_extension
 
struct  einj_parameter
 

Macros

#define EINJ_PFX   "EINJ: "
 
#define SPIN_UNIT   100 /* 100ns */
 
#define FIRMWARE_TIMEOUT   (1 * NSEC_PER_MSEC)
 
#define EINJ_OP_BUSY   0x1
 
#define EINJ_STATUS_SUCCESS   0x0
 
#define EINJ_STATUS_FAIL   0x1
 
#define EINJ_STATUS_INVAL   0x2
 
#define EINJ_TAB_ENTRY(tab)
 

Enumerations

enum  { SETWA_FLAGS_APICID = 1, SETWA_FLAGS_MEM = 2, SETWA_FLAGS_PCIE_SBDF = 4 }
 

Functions

 module_param (param_extension, bool, 0)
 
 DEFINE_SIMPLE_ATTRIBUTE (error_type_fops, error_type_get, error_type_set,"0x%llx\n")
 
 DEFINE_SIMPLE_ATTRIBUTE (error_inject_fops, NULL, error_inject_set,"%llu\n")
 
 module_init (einj_init)
 
 module_exit (einj_exit)
 
 MODULE_AUTHOR ("Huang Ying")
 
 MODULE_DESCRIPTION ("APEI Error INJection support")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define EINJ_OP_BUSY   0x1

Definition at line 98 of file einj.c.

#define EINJ_PFX   "EINJ: "

Definition at line 39 of file einj.c.

#define EINJ_STATUS_FAIL   0x1

Definition at line 100 of file einj.c.

#define EINJ_STATUS_INVAL   0x2

Definition at line 101 of file einj.c.

#define EINJ_STATUS_SUCCESS   0x0

Definition at line 99 of file einj.c.

#define EINJ_TAB_ENTRY (   tab)
Value:
((struct acpi_whea_header *)((char *)(tab) + \
sizeof(struct acpi_table_einj)))

Definition at line 103 of file einj.c.

#define FIRMWARE_TIMEOUT   (1 * NSEC_PER_MSEC)

Definition at line 43 of file einj.c.

#define SPIN_UNIT   100 /* 100ns */

Definition at line 41 of file einj.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
SETWA_FLAGS_APICID 
SETWA_FLAGS_MEM 
SETWA_FLAGS_PCIE_SBDF 

Definition at line 59 of file einj.c.

Function Documentation

DEFINE_SIMPLE_ATTRIBUTE ( error_type_fops  ,
error_type_get  ,
error_type_set  ,
"0x%llx\n"   
)
DEFINE_SIMPLE_ATTRIBUTE ( error_inject_fops  ,
NULL  ,
error_inject_set  ,
"%llu\n"   
)
MODULE_AUTHOR ( "Huang Ying"  )
MODULE_DESCRIPTION ( "APEI Error INJection support )
module_exit ( einj_exit  )
module_init ( einj_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( param_extension  ,
bool  ,
 
)