Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
acer-wmi.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/dmi.h>
#include <linux/fb.h>
#include <linux/backlight.h>
#include <linux/leds.h>
#include <linux/platform_device.h>
#include <linux/acpi.h>
#include <linux/i8042.h>
#include <linux/rfkill.h>
#include <linux/workqueue.h>
#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/input/sparse-keymap.h>
#include <acpi/acpi_drivers.h>
#include <acpi/video.h>

Go to the source code of this file.

Data Structures

struct  event_return_value
 
struct  lm_input_params
 
struct  lm_return_value
 
struct  wmid3_gds_set_input_param
 
struct  wmid3_gds_get_input_param
 
struct  wmid3_gds_return_value
 
struct  hotkey_function_type_aa
 
struct  acer_data
 
struct  acer_debug
 
struct  wmi_interface
 
struct  quirk_entry
 
struct  wmab_args
 
struct  wmab_ret
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define ACER_AMW0_WRITE   0x9610
 
#define ACER_AMW0_WIRELESS_MASK   0x35
 
#define ACER_AMW0_BLUETOOTH_MASK   0x34
 
#define ACER_AMW0_MAILLED_MASK   0x31
 
#define ACER_WMID_GET_WIRELESS_METHODID   1
 
#define ACER_WMID_GET_BLUETOOTH_METHODID   2
 
#define ACER_WMID_GET_BRIGHTNESS_METHODID   3
 
#define ACER_WMID_SET_WIRELESS_METHODID   4
 
#define ACER_WMID_SET_BLUETOOTH_METHODID   5
 
#define ACER_WMID_SET_BRIGHTNESS_METHODID   6
 
#define ACER_WMID_GET_THREEG_METHODID   10
 
#define ACER_WMID_SET_THREEG_METHODID   11
 
#define AMW0_GUID1   "67C3371D-95A3-4C37-BB61-DD47B491DAAB"
 
#define AMW0_GUID2   "431F16ED-0C2B-444C-B267-27DEB140CF9C"
 
#define WMID_GUID1   "6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3"
 
#define WMID_GUID2   "95764E09-FB56-4E83-B31A-37761F60994A"
 
#define WMID_GUID3   "61EF69EA-865C-4BC3-A502-A0DEBA0CB531"
 
#define ACERWMID_EVENT_GUID   "676AA15E-6A47-4D9F-A2CC-1E6D18D14026"
 
#define ACER_WMID3_GDS_WIRELESS   (1<<0) /* WiFi */
 
#define ACER_WMID3_GDS_THREEG   (1<<6) /* 3G */
 
#define ACER_WMID3_GDS_WIMAX   (1<<7) /* WiMAX */
 
#define ACER_WMID3_GDS_BLUETOOTH   (1<<11) /* BT */
 
#define ACER_CAP_MAILLED   (1<<0)
 
#define ACER_CAP_WIRELESS   (1<<1)
 
#define ACER_CAP_BLUETOOTH   (1<<2)
 
#define ACER_CAP_BRIGHTNESS   (1<<3)
 
#define ACER_CAP_THREEG   (1<<4)
 
#define ACER_CAP_ACCEL   (1<<5)
 
#define ACER_CAP_ANY   (0xFFFFFFFF)
 
#define ACER_DEFAULT_WIRELESS   0
 
#define ACER_DEFAULT_BLUETOOTH   0
 
#define ACER_DEFAULT_MAILLED   0
 
#define ACER_DEFAULT_THREEG   0
 

Enumerations

enum  acer_wmi_event_ids { WMID_HOTKEY_EVENT = 0x1, WMID_ACCEL_EVENT = 0x5 }
 
enum  interface_flags { ACER_AMW0, ACER_AMW0_V2, ACER_WMID, ACER_WMID_v2 }
 

Functions

 MODULE_AUTHOR ("Carlos Corbacho")
 
 MODULE_DESCRIPTION ("Acer Laptop WMI Extras Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("wmi:67C3371D-95A3-4C37-BB61-DD47B491DAAB")
 
 MODULE_ALIAS ("wmi:6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3")
 
 MODULE_ALIAS ("wmi:676AA15E-6A47-4D9F-A2CC-1E6D18D14026")
 
struct event_return_value __attribute__ ((packed))
 
 module_param (mailled, int, 0444)
 
 module_param (brightness, int, 0444)
 
 module_param (threeg, int, 0444)
 
 module_param (force_series, int, 0444)
 
 module_param (ec_raw_mode, bool, 0444)
 
 MODULE_PARM_DESC (mailled,"Set initial state of Mail LED")
 
 MODULE_PARM_DESC (brightness,"Set initial LCD backlight brightness")
 
 MODULE_PARM_DESC (threeg,"Set initial state of 3G hardware")
 
 MODULE_PARM_DESC (force_series,"Force a different laptop series")
 
 MODULE_PARM_DESC (ec_raw_mode,"Enable EC raw mode")
 
 module_init (acer_wmi_init)
 
 module_exit (acer_wmi_exit)
 

Variables

u8 function
 
u8 key_num
 
u16 device_state
 
u32 reserved
 
u8 function_num
 
u16 commun_devices
 
u16 devices
 
u8 lm_status
 
u8 error_code
 
u8 ec_return_value
 
u8 hotkey_number
 
u8 volume_value
 
u8 type
 
u8 length
 
u16 handle
 
u16 commun_func_bitmap
 
u16 application_func_bitmap
 
u16 media_func_bitmap
 
u16 display_func_bitmap
 
u16 others_func_bitmap
 
u8 commun_fn_key_number
 
enum interface_flags __attribute__
 

Macro Definition Documentation

#define ACER_AMW0_BLUETOOTH_MASK   0x34

Definition at line 63 of file acer-wmi.c.

#define ACER_AMW0_MAILLED_MASK   0x31

Definition at line 64 of file acer-wmi.c.

#define ACER_AMW0_WIRELESS_MASK   0x35

Definition at line 62 of file acer-wmi.c.

#define ACER_AMW0_WRITE   0x9610

Definition at line 57 of file acer-wmi.c.

#define ACER_CAP_ACCEL   (1<<5)

Definition at line 205 of file acer-wmi.c.

#define ACER_CAP_ANY   (0xFFFFFFFF)

Definition at line 206 of file acer-wmi.c.

#define ACER_CAP_BLUETOOTH   (1<<2)

Definition at line 202 of file acer-wmi.c.

#define ACER_CAP_BRIGHTNESS   (1<<3)

Definition at line 203 of file acer-wmi.c.

#define ACER_CAP_MAILLED   (1<<0)

Definition at line 200 of file acer-wmi.c.

#define ACER_CAP_THREEG   (1<<4)

Definition at line 204 of file acer-wmi.c.

#define ACER_CAP_WIRELESS   (1<<1)

Definition at line 201 of file acer-wmi.c.

#define ACER_DEFAULT_BLUETOOTH   0

Definition at line 219 of file acer-wmi.c.

#define ACER_DEFAULT_MAILLED   0

Definition at line 220 of file acer-wmi.c.

#define ACER_DEFAULT_THREEG   0

Definition at line 221 of file acer-wmi.c.

#define ACER_DEFAULT_WIRELESS   0

Definition at line 218 of file acer-wmi.c.

#define ACER_WMID3_GDS_BLUETOOTH   (1<<11) /* BT */

Definition at line 149 of file acer-wmi.c.

#define ACER_WMID3_GDS_THREEG   (1<<6) /* 3G */

Definition at line 147 of file acer-wmi.c.

#define ACER_WMID3_GDS_WIMAX   (1<<7) /* WiMAX */

Definition at line 148 of file acer-wmi.c.

#define ACER_WMID3_GDS_WIRELESS   (1<<0) /* WiFi */

Definition at line 146 of file acer-wmi.c.

#define ACER_WMID_GET_BLUETOOTH_METHODID   2

Definition at line 70 of file acer-wmi.c.

#define ACER_WMID_GET_BRIGHTNESS_METHODID   3

Definition at line 71 of file acer-wmi.c.

#define ACER_WMID_GET_THREEG_METHODID   10

Definition at line 75 of file acer-wmi.c.

#define ACER_WMID_GET_WIRELESS_METHODID   1

Definition at line 69 of file acer-wmi.c.

#define ACER_WMID_SET_BLUETOOTH_METHODID   5

Definition at line 73 of file acer-wmi.c.

#define ACER_WMID_SET_BRIGHTNESS_METHODID   6

Definition at line 74 of file acer-wmi.c.

#define ACER_WMID_SET_THREEG_METHODID   11

Definition at line 76 of file acer-wmi.c.

#define ACER_WMID_SET_WIRELESS_METHODID   4

Definition at line 72 of file acer-wmi.c.

#define ACERWMID_EVENT_GUID   "676AA15E-6A47-4D9F-A2CC-1E6D18D14026"

Definition at line 90 of file acer-wmi.c.

#define AMW0_GUID1   "67C3371D-95A3-4C37-BB61-DD47B491DAAB"

Definition at line 81 of file acer-wmi.c.

#define AMW0_GUID2   "431F16ED-0C2B-444C-B267-27DEB140CF9C"

Definition at line 82 of file acer-wmi.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 25 of file acer-wmi.c.

#define WMID_GUID1   "6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3"

Definition at line 83 of file acer-wmi.c.

#define WMID_GUID2   "95764E09-FB56-4E83-B31A-37761F60994A"

Definition at line 84 of file acer-wmi.c.

#define WMID_GUID3   "61EF69EA-865C-4BC3-A502-A0DEBA0CB531"

Definition at line 85 of file acer-wmi.c.

Enumeration Type Documentation

Enumerator:
WMID_HOTKEY_EVENT 
WMID_ACCEL_EVENT 

Definition at line 96 of file acer-wmi.c.

Enumerator:
ACER_AMW0 
ACER_AMW0_V2 
ACER_WMID 
ACER_WMID_v2 

Definition at line 211 of file acer-wmi.c.

Function Documentation

Definition at line 171 of file esd_usb2.c.

MODULE_ALIAS ( "wmi:67C3371D-95A3-4C37-BB61-DD47B491DAAB"  )
MODULE_ALIAS ( "wmi:6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3"  )
MODULE_ALIAS ( "wmi:676AA15E-6A47-4D9F-A2CC-1E6D18D14026"  )
MODULE_AUTHOR ( "Carlos Corbacho"  )
MODULE_DESCRIPTION ( "Acer Laptop WMI Extras Driver"  )
module_exit ( acer_wmi_exit  )
module_init ( acer_wmi_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mailled  ,
int  ,
0444   
)
module_param ( brightness  ,
int  ,
0444   
)
module_param ( threeg  ,
int  ,
0444   
)
module_param ( force_series  ,
int  ,
0444   
)
module_param ( ec_raw_mode  ,
bool  ,
0444   
)
MODULE_PARM_DESC ( mailled  ,
"Set initial state of Mail LED  
)
MODULE_PARM_DESC ( brightness  ,
"Set initial LCD backlight brightness  
)
MODULE_PARM_DESC ( threeg  ,
"Set initial state of 3G hardware"   
)
MODULE_PARM_DESC ( force_series  ,
"Force a different laptop series"   
)
MODULE_PARM_DESC ( ec_raw_mode  ,
"Enable EC raw mode  
)

Variable Documentation

u16 application_func_bitmap

Definition at line 200 of file acer-wmi.c.

u16 commun_devices

Definition at line 159 of file acer-wmi.c.

static u8 commun_fn_key_number

Definition at line 204 of file acer-wmi.c.

static u16 commun_func_bitmap

Definition at line 199 of file acer-wmi.c.

Definition at line 144 of file acer-wmi.c.

u16 devices

Definition at line 160 of file acer-wmi.c.

u16 display_func_bitmap

Definition at line 202 of file acer-wmi.c.

u8 ec_return_value

Definition at line 165 of file acer-wmi.c.

u32 error_code

Definition at line 164 of file acer-wmi.c.

u8 function

Definition at line 142 of file acer-wmi.c.

u8 function_num

Definition at line 158 of file acer-wmi.c.

Definition at line 198 of file acer-wmi.c.

u8 hotkey_number

Definition at line 172 of file acer-wmi.c.

u8 key_num

Definition at line 143 of file acer-wmi.c.

u8 length

Definition at line 197 of file acer-wmi.c.

u8 lm_status

Definition at line 161 of file acer-wmi.c.

u16 media_func_bitmap

Definition at line 201 of file acer-wmi.c.

u16 others_func_bitmap

Definition at line 203 of file acer-wmi.c.

u32 reserved

Definition at line 145 of file acer-wmi.c.

Definition at line 196 of file acer-wmi.c.

u8 volume_value

Definition at line 174 of file acer-wmi.c.