Linux Kernel
3.7.1
|
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/ctype.h>
#include <linux/time.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/seq_file.h>
#include <linux/bitops.h>
#include <linux/rtc.h>
#include <asm/uaccess.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/machdep.h>
#include <asm/time.h>
Go to the source code of this file.
Data Structures | |
struct | individual_sensor |
struct | rtas_sensors |
Macros | |
#define | KEY_SWITCH 0x0001 |
#define | ENCLOSURE_SWITCH 0x0002 |
#define | THERMAL_SENSOR 0x0003 |
#define | LID_STATUS 0x0004 |
#define | POWER_SOURCE 0x0005 |
#define | BATTERY_VOLTAGE 0x0006 |
#define | BATTERY_REMAINING 0x0007 |
#define | BATTERY_PERCENTAGE 0x0008 |
#define | EPOW_SENSOR 0x0009 |
#define | BATTERY_CYCLESTATE 0x000a |
#define | BATTERY_CHARGING 0x000b |
#define | IBM_SURVEILLANCE 0x2328 /* 9000 */ |
#define | IBM_FANRPM 0x2329 /* 9001 */ |
#define | IBM_VOLTAGE 0x232a /* 9002 */ |
#define | IBM_DRCONNECTOR 0x232b /* 9003 */ |
#define | IBM_POWERSUPPLY 0x232c /* 9004 */ |
#define | SENSOR_CRITICAL_HIGH 13 |
#define | SENSOR_WARNING_HIGH 12 |
#define | SENSOR_NORMAL 11 |
#define | SENSOR_WARNING_LOW 10 |
#define | SENSOR_CRITICAL_LOW 9 |
#define | SENSOR_SUCCESS 0 |
#define | SENSOR_HW_ERROR -1 |
#define | SENSOR_BUSY -2 |
#define | SENSOR_NOT_EXIST -3 |
#define | SENSOR_DR_ENTITY -9000 |
#define | LOC_SCSI_DEV_ADDR 'A' |
#define | LOC_SCSI_DEV_LOC 'B' |
#define | LOC_CPU 'C' |
#define | LOC_DISKETTE 'D' |
#define | LOC_ETHERNET 'E' |
#define | LOC_FAN 'F' |
#define | LOC_GRAPHICS 'G' |
#define | LOC_IO_ADAPTER 'I' |
#define | LOC_KEYBOARD 'K' |
#define | LOC_LCD 'L' |
#define | LOC_MEMORY 'M' |
#define | LOC_NV_MEMORY 'N' |
#define | LOC_MOUSE 'O' |
#define | LOC_PLANAR 'P' |
#define | LOC_OTHER_IO 'Q' |
#define | LOC_PARALLEL 'R' |
#define | LOC_SERIAL 'S' |
#define | LOC_DEAD_RING 'T' |
#define | LOC_RACKMOUNTED 'U' /* for _u_nit is rack mounted */ |
#define | LOC_VOLTAGE 'V' |
#define | LOC_SWITCH_ADAPTER 'W' |
#define | LOC_OTHER 'X' |
#define | LOC_FIRMWARE 'Y' |
#define | LOC_SCSI 'Z' |
#define | TONE_FREQUENCY 0x0001 /* 0 - 1000 (HZ)*/ |
#define | TONE_VOLUME 0x0002 /* 0 - 100 (%) */ |
#define | SYSTEM_POWER_STATE 0x0003 |
#define | WARNING_LIGHT 0x0004 |
#define | DISK_ACTIVITY_LIGHT 0x0005 |
#define | HEX_DISPLAY_UNIT 0x0006 |
#define | BATTERY_WARNING_TIME 0x0007 |
#define | CONDITION_CYCLE_REQUEST 0x0008 |
#define | SURVEILLANCE_INDICATOR 0x2328 /* 9000 */ |
#define | DR_ACTION 0x2329 /* 9001 */ |
#define | DR_INDICATOR 0x232a /* 9002 */ |
#define | MAX_SENSORS 17 /* I only know of 17 sensors */ |
#define | MAX_LINELENGTH 256 |
#define | SENSOR_PREFIX "ibm,sensor-" |
#define | cel_to_fahr(x) ((x*9/5)+32) |
#define | RMO_READ_BUF_MAX 30 |
Functions | |
__initcall (proc_rtas_init) | |
#define BATTERY_CHARGING 0x000b |
Definition at line 46 of file rtas-proc.c.
#define BATTERY_CYCLESTATE 0x000a |
Definition at line 45 of file rtas-proc.c.
#define BATTERY_PERCENTAGE 0x0008 |
Definition at line 43 of file rtas-proc.c.
#define BATTERY_REMAINING 0x0007 |
Definition at line 42 of file rtas-proc.c.
#define BATTERY_VOLTAGE 0x0006 |
Definition at line 41 of file rtas-proc.c.
#define BATTERY_WARNING_TIME 0x0007 |
Definition at line 102 of file rtas-proc.c.
Definition at line 114 of file rtas-proc.c.
#define CONDITION_CYCLE_REQUEST 0x0008 |
Definition at line 103 of file rtas-proc.c.
#define DISK_ACTIVITY_LIGHT 0x0005 |
Definition at line 100 of file rtas-proc.c.
#define DR_ACTION 0x2329 /* 9001 */ |
Definition at line 105 of file rtas-proc.c.
#define DR_INDICATOR 0x232a /* 9002 */ |
Definition at line 106 of file rtas-proc.c.
#define ENCLOSURE_SWITCH 0x0002 |
Definition at line 37 of file rtas-proc.c.
#define EPOW_SENSOR 0x0009 |
Definition at line 44 of file rtas-proc.c.
#define HEX_DISPLAY_UNIT 0x0006 |
Definition at line 101 of file rtas-proc.c.
#define IBM_DRCONNECTOR 0x232b /* 9003 */ |
Definition at line 52 of file rtas-proc.c.
#define IBM_FANRPM 0x2329 /* 9001 */ |
Definition at line 50 of file rtas-proc.c.
#define IBM_POWERSUPPLY 0x232c /* 9004 */ |
Definition at line 53 of file rtas-proc.c.
#define IBM_SURVEILLANCE 0x2328 /* 9000 */ |
Definition at line 49 of file rtas-proc.c.
#define IBM_VOLTAGE 0x232a /* 9002 */ |
Definition at line 51 of file rtas-proc.c.
#define KEY_SWITCH 0x0001 |
Definition at line 36 of file rtas-proc.c.
#define LID_STATUS 0x0004 |
Definition at line 39 of file rtas-proc.c.
#define LOC_CPU 'C' |
Definition at line 70 of file rtas-proc.c.
#define LOC_DEAD_RING 'T' |
Definition at line 87 of file rtas-proc.c.
#define LOC_DISKETTE 'D' |
Definition at line 71 of file rtas-proc.c.
#define LOC_ETHERNET 'E' |
Definition at line 72 of file rtas-proc.c.
#define LOC_FAN 'F' |
Definition at line 73 of file rtas-proc.c.
#define LOC_FIRMWARE 'Y' |
Definition at line 92 of file rtas-proc.c.
#define LOC_GRAPHICS 'G' |
Definition at line 74 of file rtas-proc.c.
#define LOC_IO_ADAPTER 'I' |
Definition at line 76 of file rtas-proc.c.
#define LOC_KEYBOARD 'K' |
Definition at line 78 of file rtas-proc.c.
#define LOC_LCD 'L' |
Definition at line 79 of file rtas-proc.c.
#define LOC_MEMORY 'M' |
Definition at line 80 of file rtas-proc.c.
#define LOC_MOUSE 'O' |
Definition at line 82 of file rtas-proc.c.
#define LOC_NV_MEMORY 'N' |
Definition at line 81 of file rtas-proc.c.
#define LOC_OTHER 'X' |
Definition at line 91 of file rtas-proc.c.
#define LOC_OTHER_IO 'Q' |
Definition at line 84 of file rtas-proc.c.
#define LOC_PARALLEL 'R' |
Definition at line 85 of file rtas-proc.c.
#define LOC_PLANAR 'P' |
Definition at line 83 of file rtas-proc.c.
Definition at line 88 of file rtas-proc.c.
#define LOC_SCSI 'Z' |
Definition at line 93 of file rtas-proc.c.
#define LOC_SCSI_DEV_ADDR 'A' |
Definition at line 68 of file rtas-proc.c.
#define LOC_SCSI_DEV_LOC 'B' |
Definition at line 69 of file rtas-proc.c.
#define LOC_SERIAL 'S' |
Definition at line 86 of file rtas-proc.c.
#define LOC_SWITCH_ADAPTER 'W' |
Definition at line 90 of file rtas-proc.c.
#define LOC_VOLTAGE 'V' |
Definition at line 89 of file rtas-proc.c.
#define MAX_LINELENGTH 256 |
Definition at line 112 of file rtas-proc.c.
Definition at line 111 of file rtas-proc.c.
#define POWER_SOURCE 0x0005 |
Definition at line 40 of file rtas-proc.c.
#define RMO_READ_BUF_MAX 30 |
Definition at line 783 of file rtas-proc.c.
#define SENSOR_BUSY -2 |
Definition at line 63 of file rtas-proc.c.
#define SENSOR_CRITICAL_HIGH 13 |
Definition at line 56 of file rtas-proc.c.
#define SENSOR_CRITICAL_LOW 9 |
Definition at line 60 of file rtas-proc.c.
#define SENSOR_DR_ENTITY -9000 |
Definition at line 65 of file rtas-proc.c.
#define SENSOR_HW_ERROR -1 |
Definition at line 62 of file rtas-proc.c.
#define SENSOR_NORMAL 11 |
Definition at line 58 of file rtas-proc.c.
#define SENSOR_NOT_EXIST -3 |
Definition at line 64 of file rtas-proc.c.
#define SENSOR_PREFIX "ibm,sensor-" |
Definition at line 113 of file rtas-proc.c.
#define SENSOR_SUCCESS 0 |
Definition at line 61 of file rtas-proc.c.
#define SENSOR_WARNING_HIGH 12 |
Definition at line 57 of file rtas-proc.c.
#define SENSOR_WARNING_LOW 10 |
Definition at line 59 of file rtas-proc.c.
#define SURVEILLANCE_INDICATOR 0x2328 /* 9000 */ |
Definition at line 104 of file rtas-proc.c.
#define SYSTEM_POWER_STATE 0x0003 |
Definition at line 98 of file rtas-proc.c.
#define THERMAL_SENSOR 0x0003 |
Definition at line 38 of file rtas-proc.c.
#define TONE_FREQUENCY 0x0001 /* 0 - 1000 (HZ)*/ |
Definition at line 96 of file rtas-proc.c.
#define TONE_VOLUME 0x0002 /* 0 - 100 (%) */ |
Definition at line 97 of file rtas-proc.c.
#define WARNING_LIGHT 0x0004 |
Definition at line 99 of file rtas-proc.c.
__initcall | ( | proc_rtas_init | ) |