diff options
author | Corentin Chary <corentincj@iksaif.net> | 2011-02-26 04:20:41 -0500 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-03-28 06:07:23 -0400 |
commit | 2f686b54fbfcd82ebfb650a5c628c1b9ba8b9863 (patch) | |
tree | 208ecabcc2f4f8da70394492df3fb0a956768a3d /drivers/platform | |
parent | b229ece9911cc0b2415d3ffd55d7b2a28d30b614 (diff) |
asus-wmi: add some common device ids and method ids
I also found some leds ids (0x00020011-0x00020016 and 0x00040015),
but since they are not really present on the notebook,
I can't guess their name .
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 44 |
1 files changed, 37 insertions, 7 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 9095c28340cd..05db6b2067b5 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c | |||
@@ -66,25 +66,46 @@ MODULE_LICENSE("GPL"); | |||
66 | #define NOTIFY_BRNDOWN_MAX 0x2e | 66 | #define NOTIFY_BRNDOWN_MAX 0x2e |
67 | 67 | ||
68 | /* WMI Methods */ | 68 | /* WMI Methods */ |
69 | #define ASUS_WMI_METHODID_SPEC 0x43455053 | 69 | #define ASUS_WMI_METHODID_SPEC 0x43455053 /* BIOS SPECification */ |
70 | #define ASUS_WMI_METHODID_SFUN 0x4E554653 | 70 | #define ASUS_WMI_METHODID_SFBD 0x44424653 /* Set First Boot Device */ |
71 | #define ASUS_WMI_METHODID_DSTS 0x53544344 | 71 | #define ASUS_WMI_METHODID_GLCD 0x44434C47 /* Get LCD status */ |
72 | #define ASUS_WMI_METHODID_DSTS2 0x53545344 | 72 | #define ASUS_WMI_METHODID_GPID 0x44495047 /* Get Panel ID?? (Resol) */ |
73 | #define ASUS_WMI_METHODID_DEVS 0x53564544 | 73 | #define ASUS_WMI_METHODID_QMOD 0x444F4D51 /* Quiet MODe */ |
74 | #define ASUS_WMI_METHODID_CFVS 0x53564643 | 74 | #define ASUS_WMI_METHODID_SPLV 0x4C425053 /* Set Panel Light Value */ |
75 | #define ASUS_WMI_METHODID_INIT 0x54494E49 | 75 | #define ASUS_WMI_METHODID_SFUN 0x4E554653 /* FUNCtionalities */ |
76 | #define ASUS_WMI_METHODID_SDSP 0x50534453 /* Set DiSPlay output */ | ||
77 | #define ASUS_WMI_METHODID_GDSP 0x50534447 /* Get DiSPlay output */ | ||
78 | #define ASUS_WMI_METHODID_DEVP 0x50564544 /* DEVice Policy */ | ||
79 | #define ASUS_WMI_METHODID_OSVR 0x5256534F /* OS VeRsion */ | ||
80 | #define ASUS_WMI_METHODID_DSTS 0x53544344 /* Device STatuS */ | ||
81 | #define ASUS_WMI_METHODID_DSTS2 0x53545344 /* Device STatuS #2*/ | ||
82 | #define ASUS_WMI_METHODID_BSTS 0x53545342 /* Bios STatuS ? */ | ||
83 | #define ASUS_WMI_METHODID_DEVS 0x53564544 /* DEVice Set */ | ||
84 | #define ASUS_WMI_METHODID_CFVS 0x53564643 /* CPU Frequency Volt Set */ | ||
85 | #define ASUS_WMI_METHODID_KBFT 0x5446424B /* KeyBoard FilTer */ | ||
86 | #define ASUS_WMI_METHODID_INIT 0x54494E49 /* INITialize */ | ||
87 | #define ASUS_WMI_METHODID_HKEY 0x59454B48 /* Hot KEY ?? */ | ||
76 | 88 | ||
77 | #define ASUS_WMI_UNSUPPORTED_METHOD 0xFFFFFFFE | 89 | #define ASUS_WMI_UNSUPPORTED_METHOD 0xFFFFFFFE |
78 | 90 | ||
79 | /* Wireless */ | 91 | /* Wireless */ |
92 | #define ASUS_WMI_DEVID_HW_SWITCH 0x00010001 | ||
93 | #define ASUS_WMI_DEVID_WIRELESS_LED 0x00010002 | ||
80 | #define ASUS_WMI_DEVID_WLAN 0x00010011 | 94 | #define ASUS_WMI_DEVID_WLAN 0x00010011 |
81 | #define ASUS_WMI_DEVID_BLUETOOTH 0x00010013 | 95 | #define ASUS_WMI_DEVID_BLUETOOTH 0x00010013 |
96 | #define ASUS_WMI_DEVID_GPS 0x00010015 | ||
82 | #define ASUS_WMI_DEVID_WIMAX 0x00010017 | 97 | #define ASUS_WMI_DEVID_WIMAX 0x00010017 |
83 | #define ASUS_WMI_DEVID_WWAN3G 0x00010019 | 98 | #define ASUS_WMI_DEVID_WWAN3G 0x00010019 |
99 | #define ASUS_WMI_DEVID_UWB 0x00010021 | ||
100 | |||
101 | /* Leds */ | ||
102 | /* 0x000200XX and 0x000400XX */ | ||
84 | 103 | ||
85 | /* Backlight and Brightness */ | 104 | /* Backlight and Brightness */ |
86 | #define ASUS_WMI_DEVID_BACKLIGHT 0x00050011 | 105 | #define ASUS_WMI_DEVID_BACKLIGHT 0x00050011 |
87 | #define ASUS_WMI_DEVID_BRIGHTNESS 0x00050012 | 106 | #define ASUS_WMI_DEVID_BRIGHTNESS 0x00050012 |
107 | #define ASUS_WMI_DEVID_KBD_BACKLIGHT 0x00050021 | ||
108 | #define ASUS_WMI_DEVID_LIGHT_SENSOR 0x00050022 /* ?? */ | ||
88 | 109 | ||
89 | /* Misc */ | 110 | /* Misc */ |
90 | #define ASUS_WMI_DEVID_CAMERA 0x00060013 | 111 | #define ASUS_WMI_DEVID_CAMERA 0x00060013 |
@@ -96,10 +117,19 @@ MODULE_LICENSE("GPL"); | |||
96 | #define ASUS_WMI_DEVID_TOUCHPAD 0x00100011 | 117 | #define ASUS_WMI_DEVID_TOUCHPAD 0x00100011 |
97 | #define ASUS_WMI_DEVID_TOUCHPAD_LED 0x00100012 | 118 | #define ASUS_WMI_DEVID_TOUCHPAD_LED 0x00100012 |
98 | 119 | ||
120 | /* Fan, Thermal */ | ||
121 | #define ASUS_WMI_DEVID_THERMAL_CTRL 0x00110011 | ||
122 | #define ASUS_WMI_DEVID_FAN_CTRL 0x00110012 | ||
123 | |||
124 | /* Power */ | ||
125 | #define ASUS_WMI_DEVID_PROCESSOR_STATE 0x00120012 | ||
126 | |||
99 | /* DSTS masks */ | 127 | /* DSTS masks */ |
100 | #define ASUS_WMI_DSTS_STATUS_BIT 0x00000001 | 128 | #define ASUS_WMI_DSTS_STATUS_BIT 0x00000001 |
101 | #define ASUS_WMI_DSTS_UNKNOWN_BIT 0x00000002 | 129 | #define ASUS_WMI_DSTS_UNKNOWN_BIT 0x00000002 |
102 | #define ASUS_WMI_DSTS_PRESENCE_BIT 0x00010000 | 130 | #define ASUS_WMI_DSTS_PRESENCE_BIT 0x00010000 |
131 | #define ASUS_WMI_DSTS_USER_BIT 0x00020000 | ||
132 | #define ASUS_WMI_DSTS_BIOS_BIT 0x00040000 | ||
103 | #define ASUS_WMI_DSTS_BRIGHTNESS_MASK 0x000000FF | 133 | #define ASUS_WMI_DSTS_BRIGHTNESS_MASK 0x000000FF |
104 | #define ASUS_WMI_DSTS_MAX_BRIGTH_MASK 0x0000FF00 | 134 | #define ASUS_WMI_DSTS_MAX_BRIGTH_MASK 0x0000FF00 |
105 | 135 | ||