Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
acerhdf.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/acpi.h>
#include <linux/thermal.h>
#include <linux/platform_device.h>

Go to the source code of this file.

Data Structures

struct  fancmd
 
struct  bios_settings_t
 

Macros

#define pr_fmt(fmt)   "acerhdf: " fmt
 
#define DRV_VER   "0.5.26"
 
#define ACERHDF_TEMP_CRIT   89000
 
#define ACERHDF_FAN_OFF   0
 
#define ACERHDF_FAN_AUTO   1
 
#define ACERHDF_MAX_FANON   80000
 
#define ACERHDF_MAX_INTERVAL   15
 

Functions

 module_param (kernelmode, uint, 0)
 
 MODULE_PARM_DESC (kernelmode,"Kernel mode fan control on / off")
 
 module_param (interval, uint, 0600)
 
 MODULE_PARM_DESC (interval,"Polling interval of temperature check")
 
 module_param (fanon, uint, 0600)
 
 MODULE_PARM_DESC (fanon,"Turn the fan on above this temperature")
 
 module_param (fanoff, uint, 0600)
 
 MODULE_PARM_DESC (fanoff,"Turn the fan off below this temperature")
 
 module_param (verbose, uint, 0600)
 
 MODULE_PARM_DESC (verbose,"Enable verbose dmesg output")
 
 module_param_string (force_bios, force_bios, 16, 0)
 
 MODULE_PARM_DESC (force_bios,"Force BIOS version and omit BIOS check")
 
 module_param_string (force_product, force_product, 16, 0)
 
 MODULE_PARM_DESC (force_product,"Force BIOS product and omit BIOS check")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Peter Feuerer")
 
 MODULE_DESCRIPTION ("Aspire One temperature and fan driver")
 
 MODULE_ALIAS ("dmi:*:*Acer*:pnAOA*:")
 
 MODULE_ALIAS ("dmi:*:*Acer*:pnAO751h*:")
 
 MODULE_ALIAS ("dmi:*:*Acer*:pnAspire*1410*:")
 
 MODULE_ALIAS ("dmi:*:*Acer*:pnAspire*1810*:")
 
 MODULE_ALIAS ("dmi:*:*Acer*:pnAspire*1825PTZ:")
 
 MODULE_ALIAS ("dmi:*:*Acer*:pnAO531*:")
 
 MODULE_ALIAS ("dmi:*:*Acer*:TravelMate*7730G:")
 
 MODULE_ALIAS ("dmi:*:*Gateway*:pnAOA*:")
 
 MODULE_ALIAS ("dmi:*:*Gateway*:pnLT31*:")
 
 MODULE_ALIAS ("dmi:*:*Packard*Bell*:pnAOA*:")
 
 MODULE_ALIAS ("dmi:*:*Packard*Bell*:pnDOA*:")
 
 MODULE_ALIAS ("dmi:*:*Packard*Bell*:pnDOTMU*:")
 
 MODULE_ALIAS ("dmi:*:*Packard*Bell*:pnENBFT*:")
 
 MODULE_ALIAS ("dmi:*:*Packard*Bell*:pnDOTMA*:")
 
 MODULE_ALIAS ("dmi:*:*Packard*Bell*:pnDOTVR46*:")
 
 module_init (acerhdf_init)
 
 module_exit (acerhdf_exit)
 

Macro Definition Documentation

#define ACERHDF_FAN_AUTO   1

Definition at line 64 of file acerhdf.c.

#define ACERHDF_FAN_OFF   0

Definition at line 63 of file acerhdf.c.

#define ACERHDF_MAX_FANON   80000

Definition at line 70 of file acerhdf.c.

#define ACERHDF_MAX_INTERVAL   15

Definition at line 77 of file acerhdf.c.

#define ACERHDF_TEMP_CRIT   89000

Definition at line 62 of file acerhdf.c.

#define DRV_VER   "0.5.26"

Definition at line 53 of file acerhdf.c.

#define pr_fmt (   fmt)    "acerhdf: " fmt

Definition at line 34 of file acerhdf.c.

Function Documentation

MODULE_ALIAS ( "dmi:*:*Acer*:pnAOA*:"  )
MODULE_ALIAS ( "dmi:*:*Acer*:pnAO751h*:"  )
MODULE_ALIAS ( "dmi:*:*Acer*:pnAspire*1410*:"  )
MODULE_ALIAS ( "dmi:*:*Acer*:pnAspire*1810*:"  )
MODULE_ALIAS ( "dmi:*:*Acer*:pnAspire*1825PTZ:"  )
MODULE_ALIAS ( "dmi:*:*Acer*:pnAO531*:"  )
MODULE_ALIAS ( "dmi:*:*Acer*:TravelMate*7730G:"  )
MODULE_ALIAS ( "dmi:*:*Gateway*:pnAOA*:"  )
MODULE_ALIAS ( "dmi:*:*Gateway*:pnLT31*:"  )
MODULE_ALIAS ( "dmi:*:*Packard*Bell*:pnAOA*:"  )
MODULE_ALIAS ( "dmi:*:*Packard*Bell*:pnDOA*:"  )
MODULE_ALIAS ( "dmi:*:*Packard*Bell*:pnDOTMU*:"  )
MODULE_ALIAS ( "dmi:*:*Packard*Bell*:pnENBFT*:"  )
MODULE_ALIAS ( "dmi:*:*Packard*Bell*:pnDOTMA*:"  )
MODULE_ALIAS ( "dmi:*:*Packard*Bell*:pnDOTVR46*:"  )
MODULE_AUTHOR ( "Peter Feuerer"  )
MODULE_DESCRIPTION ( "Aspire One temperature and fan driver )
module_exit ( acerhdf_exit  )
module_init ( acerhdf_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( kernelmode  ,
uint  ,
 
)
module_param ( interval  ,
uint  ,
0600   
)
module_param ( fanon  ,
uint  ,
0600   
)
module_param ( fanoff  ,
uint  ,
0600   
)
module_param ( verbose  ,
uint  ,
0600   
)
module_param_string ( force_bios  ,
force_bios  ,
16  ,
 
)
module_param_string ( force_product  ,
force_product  ,
16  ,
 
)
MODULE_PARM_DESC ( kernelmode  ,
"Kernel mode fan control on / off"   
)
MODULE_PARM_DESC ( interval  ,
"Polling interval of temperature check  
)
MODULE_PARM_DESC ( fanon  ,
"Turn the fan on above this temperature  
)
MODULE_PARM_DESC ( fanoff  ,
"Turn the fan off below this temperature  
)
MODULE_PARM_DESC ( verbose  ,
"Enable verbose dmesg output  
)
MODULE_PARM_DESC ( force_bios  ,
"Force BIOS version and omit BIOS check  
)
MODULE_PARM_DESC ( force_product  ,
"Force BIOS product and omit BIOS check  
)