Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ibmpex.c File Reference
#include <linux/ipmi.h>
#include <linux/module.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/err.h>

Go to the source code of this file.

Data Structures

struct  ibmpex_sensor_data
 
struct  ibmpex_bmc_data
 
struct  ibmpex_driver_data
 

Macros

#define REFRESH_INTERVAL   (2 * HZ)
 
#define DRVNAME   "ibmpex"
 
#define PEX_GET_VERSION   1
 
#define PEX_GET_SENSOR_COUNT   2
 
#define PEX_GET_SENSOR_NAME   3
 
#define PEX_RESET_HIGH_LOW   4
 
#define PEX_GET_SENSOR_DATA   6
 
#define PEX_NET_FUNCTION   0x3A
 
#define PEX_COMMAND   0x3C
 
#define TEMP_SENSOR   1
 
#define POWER_SENSOR   2
 
#define PEX_SENSOR_TYPE_LEN   3
 
#define PEX_MULT_LEN   2
 
#define PEX_NUM_SENSOR_FUNCS   3
 

Functions

 MODULE_AUTHOR ("Darrick J. Wong <[email protected]>")
 
 MODULE_DESCRIPTION ("IBM PowerExecutive power/temperature sensor driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ibmpex_init)
 
 module_exit (ibmpex_exit)
 
 MODULE_ALIAS ("dmi:bvnIBM:*:pnIBMSystemx3350-*")
 
 MODULE_ALIAS ("dmi:bvnIBM:*:pnIBMSystemx3550-*")
 
 MODULE_ALIAS ("dmi:bvnIBM:*:pnIBMSystemx3650-*")
 
 MODULE_ALIAS ("dmi:bvnIBM:*:pnIBMSystemx3655-*")
 
 MODULE_ALIAS ("dmi:bvnIBM:*:pnIBMSystemx3755-*")
 

Macro Definition Documentation

#define DRVNAME   "ibmpex"

Definition at line 32 of file ibmpex.c.

#define PEX_COMMAND   0x3C

Definition at line 41 of file ibmpex.c.

#define PEX_GET_SENSOR_COUNT   2

Definition at line 35 of file ibmpex.c.

#define PEX_GET_SENSOR_DATA   6

Definition at line 38 of file ibmpex.c.

#define PEX_GET_SENSOR_NAME   3

Definition at line 36 of file ibmpex.c.

#define PEX_GET_VERSION   1

Definition at line 34 of file ibmpex.c.

#define PEX_MULT_LEN   2

Definition at line 55 of file ibmpex.c.

#define PEX_NET_FUNCTION   0x3A

Definition at line 40 of file ibmpex.c.

#define PEX_NUM_SENSOR_FUNCS   3

Definition at line 58 of file ibmpex.c.

#define PEX_RESET_HIGH_LOW   4

Definition at line 37 of file ibmpex.c.

#define PEX_SENSOR_TYPE_LEN   3

Definition at line 51 of file ibmpex.c.

#define POWER_SENSOR   2

Definition at line 49 of file ibmpex.c.

#define REFRESH_INTERVAL   (2 * HZ)

Definition at line 31 of file ibmpex.c.

#define TEMP_SENSOR   1

Definition at line 48 of file ibmpex.c.

Function Documentation

MODULE_ALIAS ( "dmi:bvnIBM:*:pnIBMSystemx3350-*"  )
MODULE_ALIAS ( "dmi:bvnIBM:*:pnIBMSystemx3550-*"  )
MODULE_ALIAS ( "dmi:bvnIBM:*:pnIBMSystemx3650-*"  )
MODULE_ALIAS ( "dmi:bvnIBM:*:pnIBMSystemx3655-*"  )
MODULE_ALIAS ( "dmi:bvnIBM:*:pnIBMSystemx3755-*"  )
MODULE_AUTHOR ( "Darrick J. Wong <[email protected]>"  )
MODULE_DESCRIPTION ( "IBM PowerExecutive power/temperature sensor driver )
module_exit ( ibmpex_exit  )
module_init ( ibmpex_init  )
MODULE_LICENSE ( "GPL"  )