diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-07-18 22:45:26 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-21 23:37:11 -0400 |
commit | b964b437601a0e7d09896d5d9a85c83643e94f41 (patch) | |
tree | 5999efd0e68050f6b93fd310a46b40cabc38cc4c /drivers/misc/thinkpad_acpi.c | |
parent | 08f1c192c3c32797068bfe97738babb3295bbf42 (diff) |
ACPI: thinkpad-acpi: add DMI-based modalias
Add DMI-based aliases to allow module autoloading on select thinkpads.
The aliases will do nothing unless the dmi-based-module-autoloading.patch
patch from Lennart Poettering <mzxreary@0pointer.de> is applied. Lennart's
patch has been accepted by greghk and will be merged eventually.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Lennart Poettering <mzxreary@0pointer.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/thinkpad_acpi.c')
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 95c0b96e83f2..22a5f228b55a 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -92,6 +92,29 @@ MODULE_LICENSE("GPL"); | |||
92 | /* Please remove this in year 2009 */ | 92 | /* Please remove this in year 2009 */ |
93 | MODULE_ALIAS("ibm_acpi"); | 93 | MODULE_ALIAS("ibm_acpi"); |
94 | 94 | ||
95 | /* | ||
96 | * DMI matching for module autoloading | ||
97 | * | ||
98 | * See http://thinkwiki.org/wiki/List_of_DMI_IDs | ||
99 | * See http://thinkwiki.org/wiki/BIOS_Upgrade_Downloads | ||
100 | * | ||
101 | * Only models listed in thinkwiki will be supported, so add yours | ||
102 | * if it is not there yet. | ||
103 | */ | ||
104 | #define IBM_BIOS_MODULE_ALIAS(__type) \ | ||
105 | MODULE_ALIAS("dmi:bvnIBM:bvr" __type "ET??WW") | ||
106 | |||
107 | /* Non-ancient thinkpads */ | ||
108 | MODULE_ALIAS("dmi:bvnIBM:*:svnIBM:*:pvrThinkPad*:rvnIBM:*"); | ||
109 | MODULE_ALIAS("dmi:bvnLENOVO:*:svnLENOVO:*:pvrThinkPad*:rvnLENOVO:*"); | ||
110 | |||
111 | /* Ancient thinkpad BIOSes have to be identified by | ||
112 | * BIOS type or model number, and there are far less | ||
113 | * BIOS types than model numbers... */ | ||
114 | IBM_BIOS_MODULE_ALIAS("I[B,D,H,I,M,N,O,T,W,V,Y,Z]"); | ||
115 | IBM_BIOS_MODULE_ALIAS("1[0,3,6,8,A-G,I,K,M-P,S,T]"); | ||
116 | IBM_BIOS_MODULE_ALIAS("K[U,X-Z]"); | ||
117 | |||
95 | #define __unused __attribute__ ((unused)) | 118 | #define __unused __attribute__ ((unused)) |
96 | 119 | ||
97 | /**************************************************************************** | 120 | /**************************************************************************** |