]>
Commit | Line | Data |
---|---|---|
74523b85 MT |
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. | |
6 | ||
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. | |
11 | ||
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 | */ | |
15 | ||
16 | ACPI_EXTRACT_ALL_CODE ssdp_pcihp_aml | |
17 | ||
18 | DefinitionBlock ("ssdt-pcihp.aml", "SSDT", 0x01, "BXPC", "BXSSDTPCIHP", 0x1) | |
19 | { | |
20 | ||
21 | /**************************************************************** | |
22 | * PCI hotplug | |
23 | ****************************************************************/ | |
24 | ||
25 | /* Objects supplied by DSDT */ | |
26 | External(\_SB.PCI0, DeviceObj) | |
27 | External(\_SB.PCI0.PCEJ, MethodObj) | |
28 | ||
29 | Scope(\_SB.PCI0) { | |
30 | ||
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 | |
35 | ||
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 | } | |
51 | } |