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_misc_aml
18 DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
21 /****************************************************************
23 ****************************************************************/
26 ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_start
28 ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_end
30 ACPI_EXTRACT_NAME_BYTE_CONST acpi_pci64_valid
32 ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_start
33 Name(P1S, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
34 ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_end
35 Name(P1E, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
36 ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_length
37 Name(P1L, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
41 /****************************************************************
43 ****************************************************************/
47 * S3 (suspend-to-ram), S4 (suspend-to-disk) and S5 (power-off) type codes:
48 * must match piix4 emulation.
51 ACPI_EXTRACT_NAME_STRING acpi_s3_name
52 Name(_S3, Package(0x04) {
53 One, /* PM1a_CNT.SLP_TYP */
54 One, /* PM1b_CNT.SLP_TYP */
58 ACPI_EXTRACT_NAME_STRING acpi_s4_name
59 ACPI_EXTRACT_PKG_START acpi_s4_pkg
60 Name(_S4, Package(0x04) {
61 0x2, /* PM1a_CNT.SLP_TYP */
62 0x2, /* PM1b_CNT.SLP_TYP */
66 Name(_S5, Package(0x04) {
67 Zero, /* PM1a_CNT.SLP_TYP */
68 Zero, /* PM1b_CNT.SLP_TYP */
74 External(\_SB.PCI0, DeviceObj)
75 External(\_SB.PCI0.ISA, DeviceObj)
77 Scope(\_SB.PCI0.ISA) {
79 Name(_HID, "QEMU0001")
80 /* PEST will be patched to be Zero if no such device */
81 ACPI_EXTRACT_NAME_WORD_CONST ssdt_isa_pest
83 OperationRegion(PEOR, SystemIO, PEST, 0x01)
84 Field(PEOR, ByteAcc, NoLock, Preserve) {
88 Method(_STA, 0, NotSerialized) {
90 If (LEqual(Local0, Zero)) {
97 Method(RDPT, 0, NotSerialized) {
102 Method(WRPT, 1, NotSerialized) {
106 Name(_CRS, ResourceTemplate() {
107 IO(Decode16, 0x00, 0x00, 0x01, 0x01, IO)
110 CreateWordField(_CRS, IO._MIN, IOMN)
111 CreateWordField(_CRS, IO._MAX, IOMX)
113 Method(_INI, 0, NotSerialized) {