Revert "usb-tablet: Don't claim wakeup capability for USB-2 version"
[qemu/ar7.git] / hw / i386 / ssdt-pcihp.dsl
blobd29a5b95d29bfa6b3e9c3c894f42cf3400b2cc59
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with this program; if not, see <http://www.gnu.org/licenses/>.
14  */
16 ACPI_EXTRACT_ALL_CODE ssdp_pcihp_aml
18 DefinitionBlock ("ssdt-pcihp.aml", "SSDT", 0x01, "BXPC", "BXSSDTPCIHP", 0x1)
21 /****************************************************************
22  * PCI hotplug
23  ****************************************************************/
25     /* Objects supplied by DSDT */
26     External(\_SB.PCI0, DeviceObj)
27     External(\_SB.PCI0.PCEJ, MethodObj)
29     Scope(\_SB.PCI0) {
31         /* Bulk generated PCI hotplug devices */
32         ACPI_EXTRACT_DEVICE_START ssdt_pcihp_start
33         ACPI_EXTRACT_DEVICE_END ssdt_pcihp_end
34         ACPI_EXTRACT_DEVICE_STRING ssdt_pcihp_name
36         // Method _EJ0 can be patched by BIOS to EJ0_
37         // at runtime, if the slot is detected to not support hotplug.
38         // Extract the offset of the address dword and the
39         // _EJ0 name to allow this patching.
40         Device(SAA) {
41             ACPI_EXTRACT_NAME_BYTE_CONST ssdt_pcihp_id
42             Name(_SUN, 0xAA)
43             ACPI_EXTRACT_NAME_DWORD_CONST ssdt_pcihp_adr
44             Name(_ADR, 0xAA0000)
45             ACPI_EXTRACT_METHOD_STRING ssdt_pcihp_ej0
46             Method(_EJ0, 1) {
47                 Return (PCEJ(_SUN))
48             }
49         }
50     }