xref: /netbsd-src/sys/external/bsd/acpica/dist/common/ahids.c (revision 046a29855e04359424fd074e8313af6b6be8cfb6)
1460301d4Schristos /******************************************************************************
2460301d4Schristos  *
3460301d4Schristos  * Module Name: ahids - Table of ACPI/PNP _HID/_CID values
4460301d4Schristos  *
5460301d4Schristos  *****************************************************************************/
6460301d4Schristos 
7460301d4Schristos /*
8*046a2985Schristos  * Copyright (C) 2000 - 2023, Intel Corp.
9460301d4Schristos  * All rights reserved.
10460301d4Schristos  *
11460301d4Schristos  * Redistribution and use in source and binary forms, with or without
12460301d4Schristos  * modification, are permitted provided that the following conditions
13460301d4Schristos  * are met:
14460301d4Schristos  * 1. Redistributions of source code must retain the above copyright
15460301d4Schristos  *    notice, this list of conditions, and the following disclaimer,
16460301d4Schristos  *    without modification.
17460301d4Schristos  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18460301d4Schristos  *    substantially similar to the "NO WARRANTY" disclaimer below
19460301d4Schristos  *    ("Disclaimer") and any redistribution must be conditioned upon
20460301d4Schristos  *    including a substantially similar Disclaimer requirement for further
21460301d4Schristos  *    binary redistribution.
22460301d4Schristos  * 3. Neither the names of the above-listed copyright holders nor the names
23460301d4Schristos  *    of any contributors may be used to endorse or promote products derived
24460301d4Schristos  *    from this software without specific prior written permission.
25460301d4Schristos  *
26460301d4Schristos  * Alternatively, this software may be distributed under the terms of the
27460301d4Schristos  * GNU General Public License ("GPL") version 2 as published by the Free
28460301d4Schristos  * Software Foundation.
29460301d4Schristos  *
30460301d4Schristos  * NO WARRANTY
31460301d4Schristos  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32460301d4Schristos  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3346a330b4Schristos  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34460301d4Schristos  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35460301d4Schristos  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36460301d4Schristos  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37460301d4Schristos  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38460301d4Schristos  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39460301d4Schristos  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40460301d4Schristos  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41460301d4Schristos  * POSSIBILITY OF SUCH DAMAGES.
42460301d4Schristos  */
43460301d4Schristos 
44460301d4Schristos #include "acpi.h"
45460301d4Schristos #include "accommon.h"
46460301d4Schristos 
47460301d4Schristos #define _COMPONENT          ACPI_UTILITIES
48460301d4Schristos         ACPI_MODULE_NAME    ("ahids")
49460301d4Schristos 
50460301d4Schristos 
51460301d4Schristos /*
52460301d4Schristos  * ACPI/PNP Device IDs with description strings
53460301d4Schristos  */
54460301d4Schristos const AH_DEVICE_ID  AslDeviceIds[] =
55460301d4Schristos {
56460301d4Schristos     {"10EC5640",    "Realtek I2S Audio Codec"},
57460301d4Schristos     {"80860F09",    "Intel PWM Controller"},
58460301d4Schristos     {"80860F0A",    "Intel Atom UART Controller"},
59460301d4Schristos     {"80860F0E",    "Intel SPI Controller"},
60460301d4Schristos     {"80860F14",    "Intel Baytrail SDIO/MMC Host Controller"},
61460301d4Schristos     {"80860F28",    "Intel SST Audio DSP"},
62460301d4Schristos     {"80860F41",    "Intel Baytrail I2C Host Controller"},
63460301d4Schristos     {"ACPI0001",    "SMBus 1.0 Host Controller"},
64460301d4Schristos     {"ACPI0002",    "Smart Battery Subsystem"},
65460301d4Schristos     {"ACPI0003",    "Power Source Device"},
66460301d4Schristos     {"ACPI0004",    "Module Device"},
67460301d4Schristos     {"ACPI0005",    "SMBus 2.0 Host Controller"},
68460301d4Schristos     {"ACPI0006",    "GPE Block Device"},
69460301d4Schristos     {"ACPI0007",    "Processor Device"},
70460301d4Schristos     {"ACPI0008",    "Ambient Light Sensor Device"},
71460301d4Schristos     {"ACPI0009",    "I/O xAPIC Device"},
72460301d4Schristos     {"ACPI000A",    "I/O APIC Device"},
73460301d4Schristos     {"ACPI000B",    "I/O SAPIC Device"},
74460301d4Schristos     {"ACPI000C",    "Processor Aggregator Device"},
75460301d4Schristos     {"ACPI000D",    "Power Meter Device"},
76460301d4Schristos     {"ACPI000E",    "Time and Alarm Device"},
77460301d4Schristos     {"ACPI000F",    "User Presence Detection Device"},
78cfbb7280Schristos     {"ACPI0010",    "Processor Container Device"},
79cfbb7280Schristos     {"ACPI0011",    "Generic Buttons Device"},
80cfbb7280Schristos     {"ACPI0012",    "NVDIMM Root Device"},
81cfbb7280Schristos     {"ACPI0013",    "Generic Event Device"},
8289b8eb6cSchristos     {"ACPI0014",    "Wireless Power Calibration Device"},
8346a330b4Schristos     {"ACPI0015",    "USB4 host interface device"},
8446a330b4Schristos     {"ACPI0016",    "Compute Express Link Host Bridge"},
85460301d4Schristos     {"ADMA0F28",    "Intel Audio DMA"},
86460301d4Schristos     {"AMCR0F28",    "Intel Audio Machine Driver"},
87460301d4Schristos     {"ATK4001",     "Asus Radio Control Button"},
88460301d4Schristos     {"ATML1000",    "Atmel Touchscreen Controller"},
89460301d4Schristos     {"AUTH2750",    "AuthenTec AES2750"},
90460301d4Schristos     {"BCM2E39",     "Broadcom BT Serial Bus Driver over UART Bus Enumerator"},
91460301d4Schristos     {"BCM4752E",    "Broadcom GPS Controller"},
92460301d4Schristos     {"BMG0160",     "Bosch Gyro Sensor"},
93460301d4Schristos     {"CPLM3218",    "Capella Micro CM3218x Ambient Light Sensor"},
94460301d4Schristos     {"DELLABCE",    "Dell Airplane Mode Switch Driver"},
95460301d4Schristos     {"DLAC3002",    "Qualcomm Atheros Bluetooth UART Transport"},
96460301d4Schristos     {"FTTH5506",    "FocalTech 5506 Touch Controller"},
97460301d4Schristos     {"HAD0F28",     "Intel HDMI Audio Driver"},
98460301d4Schristos     {"INBC0000",    "GPIO Expander"},
99460301d4Schristos     {"INT0002",     "Virtual GPIO Controller"},
100460301d4Schristos     {"INT0800",     "Intel 82802 Firmware Hub Device"},
101460301d4Schristos     {"INT3394",     "ACPI System Fan"},
102460301d4Schristos     {"INT3396",     "Standard Power Management Controller"},
103460301d4Schristos     {"INT33A0",     "Intel Smart Connect Technology Device"},
104460301d4Schristos     {"INT33A1",     "Intel Power Engine"},
105460301d4Schristos     {"INT33BB",     "Intel Baytrail SD Host Controller"},
106460301d4Schristos     {"INT33BD",     "Intel Baytrail Mailbox Device"},
107460301d4Schristos     {"INT33BE",     "Camera Sensor OV5693"},
108460301d4Schristos     {"INT33C0",     "Intel Serial I/O SPI Host Controller"},
109460301d4Schristos     {"INT33C1",     "Intel Serial I/O SPI Host Controller"},
110460301d4Schristos     {"INT33C2",     "Intel Serial I/O I2C Host Controller"},
111460301d4Schristos     {"INT33C3",     "Intel Serial I/O I2C Host Controller"},
112460301d4Schristos     {"INT33C4",     "Intel Serial I/O UART Host Controller"},
113460301d4Schristos     {"INT33C5",     "Intel Serial I/O UART Host Controller"},
114460301d4Schristos     {"INT33C6",     "Intel SD Host Controller"},
115460301d4Schristos     {"INT33C7",     "Intel Serial I/O GPIO Host Controller"},
116460301d4Schristos     {"INT33C8",     "Intel Smart Sound Technology Host Controller"},
117460301d4Schristos     {"INT33C9",     "Wolfson Microelectronics Audio WM5102"},
118460301d4Schristos     {"INT33CA",     "Intel SPB Peripheral"},
119460301d4Schristos     {"INT33CB",     "Intel Smart Sound Technology Audio Codec"},
120460301d4Schristos     {"INT33D1",     "Intel GPIO Buttons"},
121460301d4Schristos     {"INT33D2",     "Intel GPIO Buttons"},
122460301d4Schristos     {"INT33D3",     "Intel GPIO Buttons"},
123460301d4Schristos     {"INT33D4",     "Intel GPIO Buttons"},
124460301d4Schristos     {"INT33D6",     "Intel Virtual Buttons Device"},
125460301d4Schristos     {"INT33F0",     "Camera Sensor MT9M114"},
126460301d4Schristos     {"INT33F4",     "XPOWER PMIC Controller"},
127460301d4Schristos     {"INT33F5",     "TI PMIC Controller"},
128460301d4Schristos     {"INT33FB",     "MIPI-CSI Camera Sensor OV2722"},
129460301d4Schristos     {"INT33FC",     "Intel Baytrail GPIO Controller"},
130460301d4Schristos     {"INT33FD",     "Intel Baytrail Power Management IC"},
131460301d4Schristos     {"INT33FE",     "XPOWER Battery Device"},
132460301d4Schristos     {"INT3400",     "Intel Dynamic Power Performance Management"},
133460301d4Schristos     {"INT3401",     "Intel Extended Thermal Model CPU"},
134460301d4Schristos     {"INT3403",     "DPTF Temperature Sensor"},
135460301d4Schristos     {"INT3406",     "Intel Dynamic Platform & Thermal Framework Display Participant"},
136460301d4Schristos     {"INT3407",     "DPTF Platform Power Meter"},
137460301d4Schristos     {"INT340E",     "Motherboard Resources"},
138460301d4Schristos     {"INT3420",     "Intel Bluetooth RF Kill"},
139460301d4Schristos     {"INT3F0D",     "ACPI Motherboard Resources"},
140460301d4Schristos     {"INTCF1A",     "Sony IMX175 Camera Sensor"},
141460301d4Schristos     {"INTCFD9",     "Intel Baytrail SOC GPIO Controller"},
142460301d4Schristos     {"INTL9C60",    "Intel Baytrail SOC DMA Controller"},
143460301d4Schristos     {"INVN6500",    "InvenSense MPU-6500 Six Axis Gyroscope and Accelerometer"},
144460301d4Schristos     {"LNXCPU",      "Linux Logical CPU"},
145460301d4Schristos     {"LNXPOWER",    "ACPI Power Resource (power gating)"},
146460301d4Schristos     {"LNXPWRBN",    "System Power Button"},
147460301d4Schristos     {"LNXSYBUS",    "System Bus"},
148460301d4Schristos     {"LNXSYSTM",    "ACPI Root Node"},
149460301d4Schristos     {"LNXTHERM",    "ACPI Thermal Zone"},
150460301d4Schristos     {"LNXVIDEO",    "ACPI Video Controller"},
151460301d4Schristos     {"MAX17047",    "Fuel Gauge Controller"},
152460301d4Schristos     {"MSFT0101",    "TPM 2.0 Security Device"},
153460301d4Schristos     {"NXP5442",     "NXP 5442 Near Field Communications Controller"},
154460301d4Schristos     {"NXP5472",     "NXP NFC"},
155460301d4Schristos     {"PNP0000",     "8259-compatible Programmable Interrupt Controller"},
156460301d4Schristos     {"PNP0001",     "EISA Interrupt Controller"},
157460301d4Schristos     {"PNP0002",     "MCA Interrupt Controller"},
158460301d4Schristos     {"PNP0003",     "IO-APIC Interrupt Controller"},
159460301d4Schristos     {"PNP0100",     "PC-class System Timer"},
160460301d4Schristos     {"PNP0103",     "HPET System Timer"},
161460301d4Schristos     {"PNP0200",     "PC-class DMA Controller"},
162460301d4Schristos     {"PNP0300",     "IBM PC/XT Keyboard Controller (83 key)"},
163460301d4Schristos     {"PNP0301",     "IBM PC/XT Keyboard Controller (86 key)"},
164460301d4Schristos     {"PNP0302",     "IBM PC/XT Keyboard Controller (84 key)"},
165460301d4Schristos     {"PNP0303",     "IBM Enhanced Keyboard (101/102-key, PS/2 Mouse)"},
166460301d4Schristos     {"PNP0400",     "Standard LPT Parallel Port"},
167460301d4Schristos     {"PNP0401",     "ECP Parallel Port"},
168460301d4Schristos     {"PNP0500",     "Standard PC COM Serial Port"},
169460301d4Schristos     {"PNP0501",     "16550A-compatible COM Serial Port"},
170460301d4Schristos     {"PNP0510",     "Generic IRDA-compatible Device"},
171460301d4Schristos     {"PNP0800",     "Microsoft Sound System Compatible Device"},
172460301d4Schristos     {"PNP0A03",     "PCI Bus"},
173460301d4Schristos     {"PNP0A05",     "Generic Container Device"},
174460301d4Schristos     {"PNP0A06",     "Generic Container Device"},
175460301d4Schristos     {"PNP0A08",     "PCI Express Bus"},
176460301d4Schristos     {"PNP0B00",     "AT Real-Time Clock"},
177460301d4Schristos     {"PNP0B01",     "Intel PIIX4-compatible RTC/CMOS Device"},
178460301d4Schristos     {"PNP0B02",     "Dallas Semiconductor-compatible RTC/CMOS Device"},
179460301d4Schristos     {"PNP0C01",     "System Board"},
180460301d4Schristos     {"PNP0C02",     "PNP Motherboard Resources"},
181460301d4Schristos     {"PNP0C04",     "x87-compatible Floating Point Processing Unit"},
182460301d4Schristos     {"PNP0C08",     "ACPI Core Hardware"},
183460301d4Schristos     {"PNP0C09",     "Embedded Controller Device"},
184460301d4Schristos     {"PNP0C0A",     "Control Method Battery"},
185460301d4Schristos     {"PNP0C0B",     "Fan (Thermal Solution)"},
186460301d4Schristos     {"PNP0C0C",     "Power Button Device"},
187460301d4Schristos     {"PNP0C0D",     "Lid Device"},
188460301d4Schristos     {"PNP0C0E",     "Sleep Button Device"},
189460301d4Schristos     {"PNP0C0F",     "PCI Interrupt Link Device"},
190460301d4Schristos     {"PNP0C10",     "System Indicator Device"},
191460301d4Schristos     {"PNP0C11",     "Thermal Zone"},
192460301d4Schristos     {"PNP0C12",     "Device Bay Controller"},
193460301d4Schristos     {"PNP0C14",     "Windows Management Instrumentation Device"},
194460301d4Schristos     {"PNP0C15",     "Docking Station"},
195cfbb7280Schristos     {"PNP0C33",     "Error Device"},
196460301d4Schristos     {"PNP0C40",     "Standard Button Controller"},
197460301d4Schristos     {"PNP0C50",     "HID Protocol Device (I2C bus)"},
198460301d4Schristos     {"PNP0C60",     "Display Sensor Device"},
199460301d4Schristos     {"PNP0C70",     "Dock Sensor Device"},
200460301d4Schristos     {"PNP0C80",     "Memory Device"},
201460301d4Schristos     {"PNP0D10",     "XHCI USB Controller with debug"},
202460301d4Schristos     {"PNP0D15",     "XHCI USB Controller without debug"},
203460301d4Schristos     {"PNP0D20",     "EHCI USB Controller without debug"},
204460301d4Schristos     {"PNP0D25",     "EHCI USB Controller with debug"},
205460301d4Schristos     {"PNP0D40",     "SDA Standard Compliant SD Host Controller"},
206460301d4Schristos     {"PNP0D80",     "Windows-compatible System Power Management Controller"},
207460301d4Schristos     {"PNP0F03",     "Microsoft PS/2-style Mouse"},
208460301d4Schristos     {"PNP0F13",     "PS/2 Mouse"},
209460301d4Schristos     {"RTL8723",     "Realtek Wireless Controller"},
210460301d4Schristos     {"SMB0349",     "Charger"},
211460301d4Schristos     {"SMO91D0",     "Sensor Hub"},
212460301d4Schristos     {"SMSC3750",    "SMSC 3750 USB MUX"},
213460301d4Schristos     {"SSPX0000",    "Intel SSP Device"},
214460301d4Schristos     {"TBQ24296",    "Charger"},
215460301d4Schristos 
216460301d4Schristos     {NULL, NULL}
217460301d4Schristos };
218460301d4Schristos 
219460301d4Schristos 
220460301d4Schristos /*******************************************************************************
221460301d4Schristos  *
222460301d4Schristos  * FUNCTION:    AcpiAhMatchHardwareId
223460301d4Schristos  *
224460301d4Schristos  * PARAMETERS:  HardwareId          - String representation of an _HID or _CID
225460301d4Schristos  *
226460301d4Schristos  * RETURN:      ID info struct. NULL if HardwareId is not found
227460301d4Schristos  *
228460301d4Schristos  * DESCRIPTION: Lookup an _HID/_CID in the device ID table
229460301d4Schristos  *
230460301d4Schristos  ******************************************************************************/
231460301d4Schristos 
232460301d4Schristos const AH_DEVICE_ID *
AcpiAhMatchHardwareId(char * HardwareId)233460301d4Schristos AcpiAhMatchHardwareId (
234460301d4Schristos     char                    *HardwareId)
235460301d4Schristos {
236460301d4Schristos     const AH_DEVICE_ID      *Info;
237460301d4Schristos 
238460301d4Schristos 
239460301d4Schristos     for (Info = AslDeviceIds; Info->Name; Info++)
240460301d4Schristos     {
241c72da027Schristos         if (!strcmp (HardwareId, Info->Name))
242460301d4Schristos         {
243460301d4Schristos             return (Info);
244460301d4Schristos         }
245460301d4Schristos     }
246460301d4Schristos 
247460301d4Schristos     return (NULL);
248460301d4Schristos }
249