Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i8k.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/dmi.h>
#include <linux/capability.h>
#include <linux/mutex.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/i8k.h>

Go to the source code of this file.

Data Structures

struct  smm_regs
 

Macros

#define I8K_VERSION   "1.14 21/02/2005"
 
#define I8K_SMM_FN_STATUS   0x0025
 
#define I8K_SMM_POWER_STATUS   0x0069
 
#define I8K_SMM_SET_FAN   0x01a3
 
#define I8K_SMM_GET_FAN   0x00a3
 
#define I8K_SMM_GET_SPEED   0x02a3
 
#define I8K_SMM_GET_TEMP   0x10a3
 
#define I8K_SMM_GET_DELL_SIG1   0xfea3
 
#define I8K_SMM_GET_DELL_SIG2   0xffa3
 
#define I8K_SMM_BIOS_VERSION   0x00a6
 
#define I8K_FAN_MULT   30
 
#define I8K_MAX_TEMP   127
 
#define I8K_FN_NONE   0x00
 
#define I8K_FN_UP   0x01
 
#define I8K_FN_DOWN   0x02
 
#define I8K_FN_MUTE   0x04
 
#define I8K_FN_MASK   0x07
 
#define I8K_FN_SHIFT   8
 
#define I8K_POWER_AC   0x05
 
#define I8K_POWER_BATTERY   0x01
 
#define I8K_TEMPERATURE_BUG   1
 

Functions

 MODULE_AUTHOR ("Massimo Dal Zotto ([email protected])")
 
 MODULE_DESCRIPTION ("Driver for accessing SMM BIOS on Dell laptops")
 
 MODULE_LICENSE ("GPL")
 
 module_param (force, bool, 0)
 
 MODULE_PARM_DESC (force,"Force loading without checking for supported models")
 
 module_param (ignore_dmi, bool, 0)
 
 MODULE_PARM_DESC (ignore_dmi,"Continue probing hardware even if DMI data does not match")
 
 module_param (restricted, bool, 0)
 
 MODULE_PARM_DESC (restricted,"Allow fan control if SYS_ADMIN capability set")
 
 module_param (power_status, bool, 0600)
 
 MODULE_PARM_DESC (power_status,"Report power status in /proc/i8k")
 
 module_param (fan_mult, int, 0)
 
 MODULE_PARM_DESC (fan_mult,"Factor to multiply fan speed with")
 
 module_init (i8k_init)
 
 module_exit (i8k_exit)
 

Macro Definition Documentation

#define I8K_FAN_MULT   30

Definition at line 49 of file i8k.c.

#define I8K_FN_DOWN   0x02

Definition at line 54 of file i8k.c.

#define I8K_FN_MASK   0x07

Definition at line 56 of file i8k.c.

#define I8K_FN_MUTE   0x04

Definition at line 55 of file i8k.c.

#define I8K_FN_NONE   0x00

Definition at line 52 of file i8k.c.

#define I8K_FN_SHIFT   8

Definition at line 57 of file i8k.c.

#define I8K_FN_UP   0x01

Definition at line 53 of file i8k.c.

#define I8K_MAX_TEMP   127

Definition at line 50 of file i8k.c.

#define I8K_POWER_AC   0x05

Definition at line 59 of file i8k.c.

#define I8K_POWER_BATTERY   0x01

Definition at line 60 of file i8k.c.

#define I8K_SMM_BIOS_VERSION   0x00a6

Definition at line 47 of file i8k.c.

#define I8K_SMM_FN_STATUS   0x0025

Definition at line 39 of file i8k.c.

#define I8K_SMM_GET_DELL_SIG1   0xfea3

Definition at line 45 of file i8k.c.

#define I8K_SMM_GET_DELL_SIG2   0xffa3

Definition at line 46 of file i8k.c.

#define I8K_SMM_GET_FAN   0x00a3

Definition at line 42 of file i8k.c.

#define I8K_SMM_GET_SPEED   0x02a3

Definition at line 43 of file i8k.c.

#define I8K_SMM_GET_TEMP   0x10a3

Definition at line 44 of file i8k.c.

#define I8K_SMM_POWER_STATUS   0x0069

Definition at line 40 of file i8k.c.

#define I8K_SMM_SET_FAN   0x01a3

Definition at line 41 of file i8k.c.

#define I8K_TEMPERATURE_BUG   1

Definition at line 62 of file i8k.c.

#define I8K_VERSION   "1.14 21/02/2005"

Definition at line 37 of file i8k.c.

Function Documentation

MODULE_AUTHOR ( "Massimo Dal Zotto ([email protected])"  )
MODULE_DESCRIPTION ( "Driver for accessing SMM BIOS on Dell laptops"  )
module_exit ( i8k_exit  )
module_init ( i8k_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( force  ,
bool  ,
 
)
module_param ( ignore_dmi  ,
bool  ,
 
)
module_param ( restricted  ,
bool  ,
 
)
module_param ( power_status  ,
bool  ,
0600   
)
module_param ( fan_mult  ,
int  ,
 
)
MODULE_PARM_DESC ( force  ,
"Force loading without checking for supported models"   
)
MODULE_PARM_DESC ( ignore_dmi  ,
"Continue probing hardware even if DMI data does not match  
)
MODULE_PARM_DESC ( restricted  ,
"Allow fan control if SYS_ADMIN capability set  
)
MODULE_PARM_DESC ( power_status  ,
"Report power status in /proc/i8k"   
)
MODULE_PARM_DESC ( fan_mult  ,
"Factor to multiply fan speed with"   
)