1 ACPI_EXTRACT_ALL_CODE ssdp_pcihp_aml
3 DefinitionBlock ("ssdt-pcihp.aml", "SSDT", 0x01, "BXPC", "BXSSDTPCIHP", 0x1)
6 /****************************************************************
8 ****************************************************************/
10 /* Objects supplied by DSDT */
11 External (\_SB.PCI0, DeviceObj)
12 External (\_SB.PCI0.PCEJ, MethodObj)
15 /* Bulk generated PCI hotplug devices */
16 // Method _EJ0 can be patched by BIOS to EJ0_
17 // at runtime, if the slot is detected to not support hotplug.
18 // Extract the offset of the address dword and the
19 // _EJ0 name to allow this patching.
20 #define hotplug_slot(slot) \
22 ACPI_EXTRACT_NAME_DWORD_CONST aml_adr_dword \
23 Name (_ADR, 0x##slot##0000) \
24 ACPI_EXTRACT_METHOD_STRING aml_ej0_name \
25 Method (_EJ0, 1) { Return(PCEJ(0x##slot)) } \
26 Name (_SUN, 0x##slot) \
61 #define gen_pci_hotplug(slot) \
62 If (LEqual(Arg0, 0x##slot)) { Notify(S##slot, Arg1) }