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/>.
16 ACPI_EXTRACT_ALL_CODE ssdp_pcihp_aml
18 DefinitionBlock ("ssdt-pcihp.aml", "SSDT", 0x01, "BXPC", "BXSSDTPCIHP", 0x1)
21 /****************************************************************
23 ****************************************************************/
25 /* Objects supplied by DSDT */
26 External(\_SB.PCI0, DeviceObj)
27 External(\_SB.PCI0.PCEJ, MethodObj)
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.
41 ACPI_EXTRACT_NAME_BYTE_CONST ssdt_pcihp_id
43 ACPI_EXTRACT_NAME_DWORD_CONST ssdt_pcihp_adr
45 ACPI_EXTRACT_METHOD_STRING ssdt_pcihp_ej0