Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
msi-laptop.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/acpi.h>
#include <linux/dmi.h>
#include <linux/backlight.h>
#include <linux/platform_device.h>
#include <linux/rfkill.h>
#include <linux/i8042.h>
#include <linux/input.h>
#include <linux/input/sparse-keymap.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MSI_DRIVER_VERSION   "0.5"
 
#define MSI_LCD_LEVEL_MAX   9
 
#define MSI_EC_COMMAND_WIRELESS   0x10
 
#define MSI_EC_COMMAND_LCD_LEVEL   0x11
 
#define MSI_STANDARD_EC_COMMAND_ADDRESS   0x2e
 
#define MSI_STANDARD_EC_BLUETOOTH_MASK   (1 << 0)
 
#define MSI_STANDARD_EC_WEBCAM_MASK   (1 << 1)
 
#define MSI_STANDARD_EC_WLAN_MASK   (1 << 3)
 
#define MSI_STANDARD_EC_3G_MASK   (1 << 4)
 
#define MSI_STANDARD_EC_SCM_LOAD_ADDRESS   0x2d
 
#define MSI_STANDARD_EC_SCM_LOAD_MASK   (1 << 0)
 
#define MSI_STANDARD_EC_TOUCHPAD_ADDRESS   0xe4
 
#define MSI_STANDARD_EC_TOUCHPAD_MASK   (1 << 4)
 
#define MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS   0x2f
 

Functions

 module_param (force, bool, 0)
 
 MODULE_PARM_DESC (force,"Force driver load, ignore DMI data")
 
 module_param (auto_brightness, int, 0)
 
 MODULE_PARM_DESC (auto_brightness,"Enable automatic brightness control (0: disabled; 1: enabled; 2: don't touch)")
 
 module_init (msi_init)
 
 module_exit (msi_cleanup)
 
 MODULE_AUTHOR ("Lennart Poettering")
 
 MODULE_DESCRIPTION ("MSI Laptop Support")
 
 MODULE_VERSION (MSI_DRIVER_VERSION)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("dmi:*:svnMICRO-STARINT'LCO.,LTD:pnMS-1013:pvr0131*:cvnMICRO-STARINT'LCO.,LTD:ct10:*")
 
 MODULE_ALIAS ("dmi:*:svnMicro-StarInternational:pnMS-1058:pvr0581:rvnMSI:rnMS-1058:*:ct10:*")
 
 MODULE_ALIAS ("dmi:*:svnMicro-StarInternational:pnMS-1412:*:rvnMSI:rnMS-1412:*:cvnMICRO-STARINT'LCO.,LTD:ct10:*")
 
 MODULE_ALIAS ("dmi:*:svnNOTEBOOK:pnSAM2000:pvr0131*:cvnMICRO-STARINT'LCO.,LTD:ct10:*")
 
 MODULE_ALIAS ("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N034:*")
 
 MODULE_ALIAS ("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N051:*")
 
 MODULE_ALIAS ("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N014:*")
 
 MODULE_ALIAS ("dmi:*:svnMicro-StarInternational*:pnCR620:*")
 
 MODULE_ALIAS ("dmi:*:svnMicro-StarInternational*:pnU270series:*")
 

Macro Definition Documentation

#define MSI_DRIVER_VERSION   "0.5"

Definition at line 68 of file msi-laptop.c.

#define MSI_EC_COMMAND_LCD_LEVEL   0x11

Definition at line 73 of file msi-laptop.c.

#define MSI_EC_COMMAND_WIRELESS   0x10

Definition at line 72 of file msi-laptop.c.

#define MSI_LCD_LEVEL_MAX   9

Definition at line 70 of file msi-laptop.c.

#define MSI_STANDARD_EC_3G_MASK   (1 << 4)

Definition at line 79 of file msi-laptop.c.

#define MSI_STANDARD_EC_BLUETOOTH_MASK   (1 << 0)

Definition at line 76 of file msi-laptop.c.

#define MSI_STANDARD_EC_COMMAND_ADDRESS   0x2e

Definition at line 75 of file msi-laptop.c.

#define MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS   0x2f

Definition at line 93 of file msi-laptop.c.

#define MSI_STANDARD_EC_SCM_LOAD_ADDRESS   0x2d

Definition at line 82 of file msi-laptop.c.

#define MSI_STANDARD_EC_SCM_LOAD_MASK   (1 << 0)

Definition at line 83 of file msi-laptop.c.

#define MSI_STANDARD_EC_TOUCHPAD_ADDRESS   0xe4

Definition at line 85 of file msi-laptop.c.

#define MSI_STANDARD_EC_TOUCHPAD_MASK   (1 << 4)

Definition at line 86 of file msi-laptop.c.

#define MSI_STANDARD_EC_WEBCAM_MASK   (1 << 1)

Definition at line 77 of file msi-laptop.c.

#define MSI_STANDARD_EC_WLAN_MASK   (1 << 3)

Definition at line 78 of file msi-laptop.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 54 of file msi-laptop.c.

Function Documentation

MODULE_ALIAS ( "dmi:*:svnMICRO-STARINT'  LCO.,
LTD:pnMS-1013:pvr0131 *:cvnMICRO-STARINT'  LCO.,
LTD:ct10:*"   
)
MODULE_ALIAS ( "dmi:*:svnMicro-StarInternational:pnMS-1058:pvr0581:rvnMSI:rnMS-1058:*:ct10:*"  )
MODULE_ALIAS ( "dmi:*:svnMicro-StarInternational:pnMS-1412:*:rvnMSI:rnMS-1412:*:cvnMICRO-STARINT'  LCO.,
LTD:ct10:*"   
)
MODULE_ALIAS ( "dmi:*:svnNOTEBOOK:pnSAM2000:pvr0131*:cvnMICRO-STARINT'  LCO.,
LTD:ct10:*"   
)
MODULE_ALIAS ( "dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N034:*"  )
MODULE_ALIAS ( "dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N051:*"  )
MODULE_ALIAS ( "dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-N014:*"  )
MODULE_ALIAS ( "dmi:*:svnMicro-StarInternational*:pnCR620:*"  )
MODULE_ALIAS ( "dmi:*:svnMicro-StarInternational*:pnU270series:*"  )
MODULE_AUTHOR ( "Lennart Poettering"  )
MODULE_DESCRIPTION ( "MSI Laptop Support"  )
module_exit ( msi_cleanup  )
module_init ( msi_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( force  ,
bool  ,
 
)
module_param ( auto_brightness  ,
int  ,
 
)
MODULE_PARM_DESC ( force  ,
"Force driver  load,
ignore DMI data  
)
MODULE_PARM_DESC ( auto_brightness  ,
"Enable automatic brightness control (0: disabled; 1: enabled; 2: don't touch)"   
)
MODULE_VERSION ( MSI_DRIVER_VERSION  )