Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
snsc.h File Reference
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/semaphore.h>
#include <asm/sn/types.h>

Go to the source code of this file.

Data Structures

struct  subch_data_s
 
struct  sysctl_data_s
 

Macros

#define CHUNKSIZE   127
 
#define IR_ARG_INT   0x00 /* 4-byte integer (big-endian) */
 
#define IR_ARG_ASCII   0x01 /* null-terminated ASCII string */
 
#define IR_ARG_UNKNOWN
 
#define IR_ARG_UNKNOWN_LENGTH_MASK   0x7f
 
#define EV_CLASS_MASK   0xf000ul
 
#define EV_SEVERITY_MASK   0x0f00ul
 
#define EV_COMPONENT_MASK   0x00fful
 
#define EV_CLASS_POWER   0x1000ul
 
#define EV_CLASS_FAN   0x2000ul
 
#define EV_CLASS_TEMP   0x3000ul
 
#define EV_CLASS_ENV   0x4000ul
 
#define EV_CLASS_TEST_FAULT   0x5000ul
 
#define EV_CLASS_TEST_WARNING   0x6000ul
 
#define EV_CLASS_PWRD_NOTIFY   0x8000ul
 
#define ENV_PWRDN_PEND   0x4101ul
 
#define EV_SEVERITY_POWER_STABLE   0x0000ul
 
#define EV_SEVERITY_POWER_LOW_WARNING   0x0100ul
 
#define EV_SEVERITY_POWER_HIGH_WARNING   0x0200ul
 
#define EV_SEVERITY_POWER_HIGH_FAULT   0x0300ul
 
#define EV_SEVERITY_POWER_LOW_FAULT   0x0400ul
 
#define EV_SEVERITY_FAN_STABLE   0x0000ul
 
#define EV_SEVERITY_FAN_WARNING   0x0100ul
 
#define EV_SEVERITY_FAN_FAULT   0x0200ul
 
#define EV_SEVERITY_TEMP_STABLE   0x0000ul
 
#define EV_SEVERITY_TEMP_ADVISORY   0x0100ul
 
#define EV_SEVERITY_TEMP_CRITICAL   0x0200ul
 
#define EV_SEVERITY_TEMP_FAULT   0x0300ul
 

Functions

void scdrv_event_init (struct sysctl_data_s *)
 

Macro Definition Documentation

#define CHUNKSIZE   127

Definition at line 27 of file snsc.h.

#define ENV_PWRDN_PEND   0x4101ul

Definition at line 71 of file snsc.h.

#define EV_CLASS_ENV   0x4000ul

Definition at line 65 of file snsc.h.

#define EV_CLASS_FAN   0x2000ul

Definition at line 63 of file snsc.h.

#define EV_CLASS_MASK   0xf000ul

Definition at line 58 of file snsc.h.

#define EV_CLASS_POWER   0x1000ul

Definition at line 62 of file snsc.h.

#define EV_CLASS_PWRD_NOTIFY   0x8000ul

Definition at line 68 of file snsc.h.

#define EV_CLASS_TEMP   0x3000ul

Definition at line 64 of file snsc.h.

#define EV_CLASS_TEST_FAULT   0x5000ul

Definition at line 66 of file snsc.h.

#define EV_CLASS_TEST_WARNING   0x6000ul

Definition at line 67 of file snsc.h.

#define EV_COMPONENT_MASK   0x00fful

Definition at line 60 of file snsc.h.

#define EV_SEVERITY_FAN_FAULT   0x0200ul

Definition at line 81 of file snsc.h.

#define EV_SEVERITY_FAN_STABLE   0x0000ul

Definition at line 79 of file snsc.h.

#define EV_SEVERITY_FAN_WARNING   0x0100ul

Definition at line 80 of file snsc.h.

#define EV_SEVERITY_MASK   0x0f00ul

Definition at line 59 of file snsc.h.

#define EV_SEVERITY_POWER_HIGH_FAULT   0x0300ul

Definition at line 76 of file snsc.h.

#define EV_SEVERITY_POWER_HIGH_WARNING   0x0200ul

Definition at line 75 of file snsc.h.

#define EV_SEVERITY_POWER_LOW_FAULT   0x0400ul

Definition at line 77 of file snsc.h.

#define EV_SEVERITY_POWER_LOW_WARNING   0x0100ul

Definition at line 74 of file snsc.h.

#define EV_SEVERITY_POWER_STABLE   0x0000ul

Definition at line 73 of file snsc.h.

#define EV_SEVERITY_TEMP_ADVISORY   0x0100ul

Definition at line 84 of file snsc.h.

#define EV_SEVERITY_TEMP_CRITICAL   0x0200ul

Definition at line 85 of file snsc.h.

#define EV_SEVERITY_TEMP_FAULT   0x0300ul

Definition at line 86 of file snsc.h.

#define EV_SEVERITY_TEMP_STABLE   0x0000ul

Definition at line 83 of file snsc.h.

#define IR_ARG_ASCII   0x01 /* null-terminated ASCII string */

Definition at line 52 of file snsc.h.

#define IR_ARG_INT   0x00 /* 4-byte integer (big-endian) */

Definition at line 51 of file snsc.h.

#define IR_ARG_UNKNOWN
Value:
0x80 /* unknown data type. The low
* 7 bits will contain the data
* length. */

Definition at line 53 of file snsc.h.

#define IR_ARG_UNKNOWN_LENGTH_MASK   0x7f

Definition at line 54 of file snsc.h.

Function Documentation

void scdrv_event_init ( struct sysctl_data_s )

Definition at line 268 of file snsc_event.c.