1eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui/* 2eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * ACPI support for PNP bus type 3eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * 4eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * Copyright (C) 2014, Intel Corporation 5eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * Authors: Zhang Rui <rui.zhang@intel.com> 6eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * Rafael J. Wysocki <rafael.j.wysocki@intel.com> 7eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * 8eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * This program is free software; you can redistribute it and/or modify 9eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * it under the terms of the GNU General Public License version 2 as 10eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * published by the Free Software Foundation. 11eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui */ 12eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 13eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui#include <linux/acpi.h> 14eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui#include <linux/module.h> 15a5f95da9fb2a0b228b3bab19d35850af3e9a74b2Arjun Sreedharan#include <linux/ctype.h> 16eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 17eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruistatic const struct acpi_device_id acpi_pnp_device_ids[] = { 18eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* pata_isapnp */ 19eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0600"}, /* Generic ESDI/IDE/ATA compatible hard disk controller */ 20eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* floppy */ 21eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0700"}, 22eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* ipmi_si */ 23eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IPI0001"}, 24eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* tpm_inf_pnp */ 25eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IFX0101"}, /* Infineon TPMs */ 26eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IFX0102"}, /* Infineon TPMs */ 27eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /*tpm_tis */ 28eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0C31"}, /* TPM */ 29eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ATM1200"}, /* Atmel */ 30eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IFX0102"}, /* Infineon */ 31eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BCM0101"}, /* Broadcom */ 32eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BCM0102"}, /* Broadcom */ 33eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NSC1200"}, /* National */ 34eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ICO0102"}, /* Intel */ 35eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* ide */ 36eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0600"}, /* Generic ESDI/IDE/ATA compatible hard disk controller */ 37eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* ns558 */ 38eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ASB16fd"}, /* AdLib NSC16 */ 39eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AZT3001"}, /* AZT1008 */ 40eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CDC0001"}, /* Opl3-SAx */ 41eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CSC0001"}, /* CS4232 */ 42eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CSC000f"}, /* CS4236 */ 43eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CSC0101"}, /* CS4327 */ 44eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CTL7001"}, /* SB16 */ 45eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CTL7002"}, /* AWE64 */ 46eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CTL7005"}, /* Vibra16 */ 47eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ENS2020"}, /* SoundscapeVIVO */ 48eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ESS0001"}, /* ES1869 */ 49eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ESS0005"}, /* ES1878 */ 50eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ESS6880"}, /* ES688 */ 51eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IBM0012"}, /* CS4232 */ 52eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"OPT0001"}, /* OPTi Audio16 */ 53eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"YMH0006"}, /* Opl3-SA */ 54eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"YMH0022"}, /* Opl3-SAx */ 55eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPb02f"}, /* Generic */ 56eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* i8042 kbd */ 57eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0300"}, 58eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0301"}, 59eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0302"}, 60eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0303"}, 61eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0304"}, 62eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0305"}, 63eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0306"}, 64eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0309"}, 65eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP030a"}, 66eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP030b"}, 67eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0320"}, 68eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0343"}, 69eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0344"}, 70eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0345"}, 71eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CPQA0D7"}, 72eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* i8042 aux */ 73eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AUI0200"}, 74eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FJC6000"}, 75eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FJC6001"}, 76eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f03"}, 77eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f0b"}, 78eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f0e"}, 79eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f12"}, 80eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f13"}, 81eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f19"}, 82eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0f1c"}, 83eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SYN0801"}, 84eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* fcpnp */ 85eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AVM0900"}, 86eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* radio-cadet */ 87eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MSM0c24"}, /* ADS Cadet AM/FM Radio Card */ 88eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* radio-gemtek */ 89eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ADS7183"}, /* AOpen FX-3D/Pro Radio */ 90eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* radio-sf16fmr2 */ 91eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MFRad13"}, /* tuner subdevice of SF16-FMD2 */ 92eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* ene_ir */ 93eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ENE0100"}, 94eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ENE0200"}, 95eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ENE0201"}, 96eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ENE0202"}, 97eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* fintek-cir */ 98eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FIT0002"}, /* CIR */ 99eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* ite-cir */ 100eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ITE8704"}, /* Default model */ 101eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ITE8713"}, /* CIR found in EEEBox 1501U */ 102eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ITE8708"}, /* Bridged IT8512 */ 103eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ITE8709"}, /* SRAM-Bridged IT8512 */ 104eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* nuvoton-cir */ 105eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WEC0530"}, /* CIR */ 106eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NTN0530"}, /* CIR for new chip's pnp id */ 107eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* Winbond CIR */ 108eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WEC1022"}, 109eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* wbsd */ 110eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WEC0517"}, 111eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WEC0518"}, 112eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* Winbond CIR */ 113eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"TCM5090"}, /* 3Com Etherlink III (TP) */ 114eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"TCM5091"}, /* 3Com Etherlink III */ 115eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"TCM5094"}, /* 3Com Etherlink III (combo) */ 116eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"TCM5095"}, /* 3Com Etherlink III (TPO) */ 117eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"TCM5098"}, /* 3Com Etherlink III (TPC) */ 118eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP80f7"}, /* 3Com Etherlink III compatible */ 119eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP80f8"}, /* 3Com Etherlink III compatible */ 120eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* nsc-ircc */ 121eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NSC6001"}, 122eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HWPC224"}, 123eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IBM0071"}, 124eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* smsc-ircc2 */ 125eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SMCf010"}, 126eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* sb1000 */ 127eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"GIC1000"}, 128eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* parport_pc */ 129eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0400"}, /* Standard LPT Printer Port */ 130eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0401"}, /* ECP Printer Port */ 131eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* apple-gmux */ 132eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"APP000B"}, 133eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* system */ 134eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0c02"}, /* General ID for reserving resources */ 135eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0c01"}, /* memory controller */ 136eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* rtc_cmos */ 137eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0b00"}, 138eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0b01"}, 139eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0b02"}, 140eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* c6xdigio */ 141eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0400"}, /* Standard LPT Printer Port */ 142eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0401"}, /* ECP Printer Port */ 143eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* ni_atmio.c */ 144eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NIC1900"}, 145eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NIC2400"}, 146eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NIC2500"}, 147eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NIC2600"}, 148eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NIC2700"}, 149eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* serial */ 150eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AAC000F"}, /* Archtek America Corp. Archtek SmartLink Modem 3334BT Plug & Play */ 151eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ADC0001"}, /* Anchor Datacomm BV. SXPro 144 External Data Fax Modem Plug & Play */ 152eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ADC0002"}, /* SXPro 288 External Data Fax Modem Plug & Play */ 153eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AEI0250"}, /* PROLiNK 1456VH ISA PnP K56flex Fax Modem */ 154eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AEI1240"}, /* Actiontec ISA PNP 56K X2 Fax Modem */ 155eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AKY1021"}, /* Rockwell 56K ACF II Fax+Data+Voice Modem */ 156eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"AZT4001"}, /* AZT3005 PnP SOUND DEVICE */ 157eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BDP3336"}, /* Best Data Products Inc. Smart One 336F PnP Modem */ 158eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BRI0A49"}, /* Boca Complete Ofc Communicator 14.4 Data-FAX */ 159eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BRI1400"}, /* Boca Research 33,600 ACF Modem */ 160eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BRI3400"}, /* Boca 33.6 Kbps Internal FD34FSVD */ 161eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BRI0A49"}, /* Boca 33.6 Kbps Internal FD34FSVD */ 162eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"BDP3336"}, /* Best Data Products Inc. Smart One 336F PnP Modem */ 163eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CPI4050"}, /* Computer Peripherals Inc. EuroViVa CommCenter-33.6 SP PnP */ 164eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CTL3001"}, /* Creative Labs Phone Blaster 28.8 DSVD PnP Voice */ 165eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CTL3011"}, /* Creative Labs Modem Blaster 28.8 DSVD PnP Voice */ 166eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"DAV0336"}, /* Davicom ISA 33.6K Modem */ 167eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"DMB1032"}, /* Creative Modem Blaster Flash56 DI5601-1 */ 168eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"DMB2001"}, /* Creative Modem Blaster V.90 DI5660 */ 169eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ETT0002"}, /* E-Tech CyberBULLET PC56RVP */ 170eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ0202"}, /* Fujitsu 33600 PnP-I2 R Plug & Play */ 171eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ0205"}, /* Fujitsu FMV-FX431 Plug & Play */ 172eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ0206"}, /* Fujitsu 33600 PnP-I4 R Plug & Play */ 173eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ0209"}, /* Fujitsu Fax Voice 33600 PNP-I5 R Plug & Play */ 174eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"GVC000F"}, /* Archtek SmartLink Modem 3334BT Plug & Play */ 175eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"GVC0303"}, /* Archtek SmartLink Modem 3334BRV 33.6K Data Fax Voice */ 176eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAY0001"}, /* Hayes Optima 288 V.34-V.FC + FAX + Voice Plug & Play */ 177eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAY000C"}, /* Hayes Optima 336 V.34 + FAX + Voice PnP */ 178eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAY000D"}, /* Hayes Optima 336B V.34 + FAX + Voice PnP */ 179eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAY5670"}, /* Hayes Accura 56K Ext Fax Modem PnP */ 180eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAY5674"}, /* Hayes Accura 56K Ext Fax Modem PnP */ 181eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAY5675"}, /* Hayes Accura 56K Fax Modem PnP */ 182eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAYF000"}, /* Hayes 288, V.34 + FAX */ 183eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"HAYF001"}, /* Hayes Optima 288 V.34 + FAX + Voice, Plug & Play */ 184eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IBM0033"}, /* IBM Thinkpad 701 Internal Modem Voice */ 185eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP4972"}, /* Intermec CV60 touchscreen port */ 186eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDC801"}, /* Intertex 28k8 33k6 Voice EXT PnP */ 187eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDC901"}, /* Intertex 33k6 56k Voice EXT PnP */ 188eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDD801"}, /* Intertex 28k8 33k6 Voice SP EXT PnP */ 189eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDD901"}, /* Intertex 33k6 56k Voice SP EXT PnP */ 190eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDF401"}, /* Intertex 28k8 33k6 Voice SP INT PnP */ 191eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDF801"}, /* Intertex 28k8 33k6 Voice SP EXT PnP */ 192eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"IXDF901"}, /* Intertex 33k6 56k Voice SP EXT PnP */ 193eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"KOR4522"}, /* KORTEX 28800 Externe PnP */ 194eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"KORF661"}, /* KXPro 33.6 Vocal ASVD PnP */ 195eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"LAS4040"}, /* LASAT Internet 33600 PnP */ 196eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"LAS4540"}, /* Lasat Safire 560 PnP */ 197eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"LAS5440"}, /* Lasat Safire 336 PnP */ 198eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0281"}, /* Microcom TravelPorte FAST V.34 Plug & Play */ 199eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0336"}, /* Microcom DeskPorte V.34 FAST or FAST+ Plug & Play */ 200eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0339"}, /* Microcom DeskPorte FAST EP 28.8 Plug & Play */ 201eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0342"}, /* Microcom DeskPorte 28.8P Plug & Play */ 202eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0500"}, /* Microcom DeskPorte FAST ES 28.8 Plug & Play */ 203eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0501"}, /* Microcom DeskPorte FAST ES 28.8 Plug & Play */ 204eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MNP0502"}, /* Microcom DeskPorte 28.8S Internal Plug & Play */ 205eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1105"}, /* Motorola BitSURFR Plug & Play */ 206eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1111"}, /* Motorola TA210 Plug & Play */ 207eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1114"}, /* Motorola HMTA 200 (ISDN) Plug & Play */ 208eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1115"}, /* Motorola BitSURFR Plug & Play */ 209eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1190"}, /* Motorola Lifestyle 28.8 Internal */ 210eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1501"}, /* Motorola V.3400 Plug & Play */ 211eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1502"}, /* Motorola Lifestyle 28.8 V.34 Plug & Play */ 212eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1505"}, /* Motorola Power 28.8 V.34 Plug & Play */ 213eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1509"}, /* Motorola ModemSURFR External 28.8 Plug & Play */ 214eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT150A"}, /* Motorola Premier 33.6 Desktop Plug & Play */ 215eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT150F"}, /* Motorola VoiceSURFR 56K External PnP */ 216eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1510"}, /* Motorola ModemSURFR 56K External PnP */ 217eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1550"}, /* Motorola ModemSURFR 56K Internal PnP */ 218eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1560"}, /* Motorola ModemSURFR Internal 28.8 Plug & Play */ 219eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT1580"}, /* Motorola Premier 33.6 Internal Plug & Play */ 220eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT15B0"}, /* Motorola OnlineSURFR 28.8 Internal Plug & Play */ 221eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MOT15F0"}, /* Motorola VoiceSURFR 56K Internal PnP */ 222eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MVX00A1"}, /* Deskline K56 Phone System PnP */ 223eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"MVX00F2"}, /* PC Rider K56 Phone System PnP */ 224eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"nEC8241"}, /* NEC 98NOTE SPEAKER PHONE FAX MODEM(33600bps) */ 225eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PMC2430"}, /* Pace 56 Voice Internal Plug & Play Modem */ 226eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0500"}, /* Generic standard PC COM port */ 227eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP0501"}, /* Generic 16550A-compatible COM port */ 228eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC000"}, /* Compaq 14400 Modem */ 229eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC001"}, /* Compaq 2400/9600 Modem */ 230eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC031"}, /* Dial-Up Networking Serial Cable between 2 PCs */ 231eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC032"}, /* Dial-Up Networking Parallel Cable between 2 PCs */ 232eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC100"}, /* Standard 9600 bps Modem */ 233eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC101"}, /* Standard 14400 bps Modem */ 234eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC102"}, /* Standard 28800 bps Modem */ 235eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC103"}, /* Standard Modem */ 236eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC104"}, /* Standard 9600 bps Modem */ 237eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC105"}, /* Standard 14400 bps Modem */ 238eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC106"}, /* Standard 28800 bps Modem */ 239eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC107"}, /* Standard Modem */ 240eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC108"}, /* Standard 9600 bps Modem */ 241eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC109"}, /* Standard 14400 bps Modem */ 242eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC10A"}, /* Standard 28800 bps Modem */ 243eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC10B"}, /* Standard Modem */ 244eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC10C"}, /* Standard 9600 bps Modem */ 245eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC10D"}, /* Standard 14400 bps Modem */ 246eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC10E"}, /* Standard 28800 bps Modem */ 247eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPC10F"}, /* Standard Modem */ 248eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNP2000"}, /* Standard PCMCIA Card Modem */ 249eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ROK0030"}, /* Rockwell 33.6 DPF Internal PnP, Modular Technology 33.6 Internal PnP */ 250eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ROK0100"}, /* KORTEX 14400 Externe PnP */ 251eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ROK4120"}, /* Rockwell 28.8 */ 252eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ROK4920"}, /* Viking 28.8 INTERNAL Fax+Data+Voice PnP */ 253eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"RSS00A0"}, /* Rockwell 33.6 DPF External PnP, BT Prologue 33.6 External PnP, Modular Technology 33.6 External PnP */ 254eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"RSS0262"}, /* Viking 56K FAX INT */ 255eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"RSS0250"}, /* K56 par,VV,Voice,Speakphone,AudioSpan,PnP */ 256eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP1310"}, /* SupraExpress 28.8 Data/Fax PnP modem */ 257eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP1381"}, /* SupraExpress 336i PnP Voice Modem */ 258eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP1421"}, /* SupraExpress 33.6 Data/Fax PnP modem */ 259eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP1590"}, /* SupraExpress 33.6 Data/Fax PnP modem */ 260eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP1620"}, /* SupraExpress 336i Sp ASVD */ 261eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP1760"}, /* SupraExpress 33.6 Data/Fax PnP modem */ 262eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"SUP2171"}, /* SupraExpress 56i Sp Intl */ 263eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"TEX0011"}, /* Phoebe Micro 33.6 Data Fax 1433VQH Plug & Play */ 264eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"UAC000F"}, /* Archtek SmartLink Modem 3334BT Plug & Play */ 265eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR0000"}, /* 3Com Corp. Gateway Telepath IIvi 33.6 */ 266eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR0002"}, /* U.S. Robotics Sporster 33.6K Fax INT PnP */ 267eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR0004"}, /* Sportster Vi 14.4 PnP FAX Voicemail */ 268eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR0006"}, /* U.S. Robotics 33.6K Voice INT PnP */ 269eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR0007"}, /* U.S. Robotics 33.6K Voice EXT PnP */ 270eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR0009"}, /* U.S. Robotics Courier V.Everything INT PnP */ 271eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR2002"}, /* U.S. Robotics 33.6K Voice INT PnP */ 272eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR2070"}, /* U.S. Robotics 56K Voice INT PnP */ 273eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR2080"}, /* U.S. Robotics 56K Voice EXT PnP */ 274eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR3031"}, /* U.S. Robotics 56K FAX INT */ 275eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR3050"}, /* U.S. Robotics 56K FAX INT */ 276eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR3070"}, /* U.S. Robotics 56K Voice INT PnP */ 277eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR3080"}, /* U.S. Robotics 56K Voice EXT PnP */ 278eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR3090"}, /* U.S. Robotics 56K Voice INT PnP */ 279eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR9100"}, /* U.S. Robotics 56K Message */ 280eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR9160"}, /* U.S. Robotics 56K FAX EXT PnP */ 281eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR9170"}, /* U.S. Robotics 56K FAX INT PnP */ 282eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR9180"}, /* U.S. Robotics 56K Voice EXT PnP */ 283eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"USR9190"}, /* U.S. Robotics 56K Voice INT PnP */ 284eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WACFXXX"}, /* Wacom tablets */ 285eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FPI2002"}, /* Compaq touchscreen */ 286eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B2"}, /* Fujitsu Stylistic touchscreens */ 287eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B3"}, 288eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B4"}, /* Fujitsu Stylistic LT touchscreens */ 289eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B6"}, /* Passive Fujitsu Stylistic touchscreens */ 290eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B7"}, 291eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B8"}, 292eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02B9"}, 293eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02BC"}, 294eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02E5"}, /* Fujitsu Wacom Tablet PC device */ 295eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02E6"}, /* Fujitsu P-series tablet PC device */ 296eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02E7"}, /* Fujitsu Wacom 2FGT Tablet PC device */ 297eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"FUJ02E9"}, /* Fujitsu Wacom 1FGT Tablet PC device */ 298eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"LTS0001"}, /* LG C1 EXPRESS DUAL (C1-PB11A3) touch screen (actually a FUJ02E6 in disguise) */ 299eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WCI0003"}, /* Rockwell's (PORALiNK) 33600 INT PNP */ 300eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"WEC1022"}, /* Winbond CIR port, should not be probed. We should keep track of it to prevent the legacy serial driver from probing it */ 301eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* scl200wdt */ 302eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NSC0800"}, /* National Semiconductor PC87307/PC97307 watchdog component */ 303eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* mpu401 */ 304eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"PNPb006"}, 305eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* cs423x-pnpbios */ 306eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CSC0100"}, 307eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"CSC0000"}, 308eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"GIM0100"}, /* Guillemot Turtlebeach something appears to be cs4232 compatible */ 309eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* es18xx-pnpbios */ 310eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ESS1869"}, 311eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"ESS1879"}, 312eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui /* snd-opl3sa2-pnpbios */ 313eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"YMH0021"}, 314eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {"NMX2210"}, /* Gateway Solo 2500 */ 315eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {""}, 316eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui}; 317eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 318eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruistatic bool matching_id(char *idstr, char *list_id) 319eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui{ 320eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui int i; 321eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 322eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui if (memcmp(idstr, list_id, 3)) 323eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return false; 324eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 325eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui for (i = 3; i < 7; i++) { 326eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui char c = toupper(idstr[i]); 327eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 328a5f95da9fb2a0b228b3bab19d35850af3e9a74b2Arjun Sreedharan if (!isxdigit(c) 329eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui || (list_id[i] != 'X' && c != toupper(list_id[i]))) 330eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return false; 331eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui } 332eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return true; 333eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui} 334eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 335eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruistatic bool acpi_pnp_match(char *idstr, const struct acpi_device_id **matchid) 336eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui{ 337eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui const struct acpi_device_id *devid; 338eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 339eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui for (devid = acpi_pnp_device_ids; devid->id[0]; devid++) 340eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui if (matching_id(idstr, (char *)devid->id)) { 341eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui if (matchid) 342eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui *matchid = devid; 343eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 344eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return true; 345eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui } 346eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 347eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return false; 348eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui} 349eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 350eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruistatic int acpi_pnp_attach(struct acpi_device *adev, 351eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui const struct acpi_device_id *id) 352eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui{ 353eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return 1; 354eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui} 355eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 356eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruistatic struct acpi_scan_handler acpi_pnp_handler = { 357eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui .ids = acpi_pnp_device_ids, 358eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui .match = acpi_pnp_match, 359eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui .attach = acpi_pnp_attach, 360eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui}; 361eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 362eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui/* 363eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * For CMOS RTC devices, the PNP ACPI scan handler does not work, because 364eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * there is a CMOS RTC ACPI scan handler installed already, so we need to 365eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui * check those devices and enumerate them to the PNP bus directly. 366eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui */ 367eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruistatic int is_cmos_rtc_device(struct acpi_device *adev) 368eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui{ 369eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui struct acpi_device_id ids[] = { 370eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui { "PNP0B00" }, 371eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui { "PNP0B01" }, 372eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui { "PNP0B02" }, 373eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui {""}, 374eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui }; 375eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return !acpi_match_device_ids(adev, ids); 376eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui} 377eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 378eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruibool acpi_is_pnp_device(struct acpi_device *adev) 379eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui{ 380eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui return adev->handler == &acpi_pnp_handler || is_cmos_rtc_device(adev); 381eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui} 382eec15edbb0e14485998635ea7c62e30911b465f0Zhang RuiEXPORT_SYMBOL_GPL(acpi_is_pnp_device); 383eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui 384eec15edbb0e14485998635ea7c62e30911b465f0Zhang Ruivoid __init acpi_pnp_init(void) 385eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui{ 386eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui acpi_scan_add_handler(&acpi_pnp_handler); 387eec15edbb0e14485998635ea7c62e30911b465f0Zhang Rui} 388