Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ras.c File Reference
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/of.h>
#include <linux/fs.h>
#include <linux/reboot.h>
#include <asm/machdep.h>
#include <asm/rtas.h>
#include <asm/firmware.h>
#include "pseries.h"

Go to the source code of this file.

Data Structures

struct  epow_errorlog
 

Macros

#define EPOW_SENSOR_TOKEN   9
 
#define EPOW_SENSOR_INDEX   0
 
#define EPOW_SHUTDOWN_NORMAL   1
 
#define EPOW_SHUTDOWN_ON_UPS   2
 
#define EPOW_SHUTDOWN_LOSS_OF_CRITICAL_FUNCTIONS   3
 
#define EPOW_SHUTDOWN_AMBIENT_TEMPERATURE_TOO_HIGH   4
 
#define EPOW_RESET   0
 
#define EPOW_WARN_COOLING   1
 
#define EPOW_WARN_POWER   2
 
#define EPOW_SYSTEM_SHUTDOWN   3
 
#define EPOW_SYSTEM_HALT   4
 
#define EPOW_MAIN_ENCLOSURE   5
 
#define EPOW_POWER_OFF   7
 
#define VALID_FWNMI_BUFFER(A)
 

Functions

 subsys_initcall (init_ras_IRQ)
 
void rtas_parse_epow_errlog (struct rtas_error_log *log)
 
int pSeries_system_reset_exception (struct pt_regs *regs)
 
int pSeries_machine_check_exception (struct pt_regs *regs)
 

Macro Definition Documentation

#define EPOW_MAIN_ENCLOSURE   5

Definition at line 126 of file ras.c.

#define EPOW_POWER_OFF   7

Definition at line 127 of file ras.c.

#define EPOW_RESET   0

Definition at line 121 of file ras.c.

#define EPOW_SENSOR_INDEX   0

Definition at line 41 of file ras.c.

#define EPOW_SENSOR_TOKEN   9

Definition at line 40 of file ras.c.

#define EPOW_SHUTDOWN_AMBIENT_TEMPERATURE_TOO_HIGH   4

Definition at line 79 of file ras.c.

#define EPOW_SHUTDOWN_LOSS_OF_CRITICAL_FUNCTIONS   3

Definition at line 78 of file ras.c.

#define EPOW_SHUTDOWN_NORMAL   1

Definition at line 76 of file ras.c.

#define EPOW_SHUTDOWN_ON_UPS   2

Definition at line 77 of file ras.c.

#define EPOW_SYSTEM_HALT   4

Definition at line 125 of file ras.c.

#define EPOW_SYSTEM_SHUTDOWN   3

Definition at line 124 of file ras.c.

#define EPOW_WARN_COOLING   1

Definition at line 122 of file ras.c.

#define EPOW_WARN_POWER   2

Definition at line 123 of file ras.c.

#define VALID_FWNMI_BUFFER (   A)
Value:
((((A) >= 0x7000) && ((A) < 0x7ff0)) || \
(((A) >= rtas.base) && ((A) < (rtas.base + rtas.size - 16))))

Definition at line 265 of file ras.c.

Function Documentation

int pSeries_machine_check_exception ( struct pt_regs regs)

Definition at line 396 of file ras.c.

int pSeries_system_reset_exception ( struct pt_regs regs)

Definition at line 326 of file ras.c.

void rtas_parse_epow_errlog ( struct rtas_error_log *  log)

Definition at line 129 of file ras.c.

subsys_initcall ( init_ras_IRQ  )