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/>.
15 #include "hw/acpi/pc-hotplug.h"
17 ACPI_EXTRACT_ALL_CODE ssdp_misc_aml
19 DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
22 /****************************************************************
24 ****************************************************************/
27 ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_start
29 ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_end
31 ACPI_EXTRACT_NAME_BYTE_CONST acpi_pci64_valid
33 ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_start
34 Name(P1S, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
35 ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_end
36 Name(P1E, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
37 ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_length
38 Name(P1L, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
39 ACPI_EXTRACT_NAME_DWORD_CONST ssdt_mctrl_nr_slots
40 Name(MEMORY_SLOTS_NUMBER, 0x12345678)
44 /****************************************************************
46 ****************************************************************/
50 * S3 (suspend-to-ram), S4 (suspend-to-disk) and S5 (power-off) type codes:
51 * must match piix4 emulation.
54 ACPI_EXTRACT_NAME_STRING acpi_s3_name
55 Name(_S3, Package(0x04) {
56 One, /* PM1a_CNT.SLP_TYP */
57 One, /* PM1b_CNT.SLP_TYP */
61 ACPI_EXTRACT_NAME_STRING acpi_s4_name
62 ACPI_EXTRACT_PKG_START acpi_s4_pkg
63 Name(_S4, Package(0x04) {
64 0x2, /* PM1a_CNT.SLP_TYP */
65 0x2, /* PM1b_CNT.SLP_TYP */
69 Name(_S5, Package(0x04) {
70 Zero, /* PM1a_CNT.SLP_TYP */
71 Zero, /* PM1b_CNT.SLP_TYP */
77 External(\_SB.PCI0, DeviceObj)
78 External(\_SB.PCI0.ISA, DeviceObj)
80 Scope(\_SB.PCI0.ISA) {
82 Name(_HID, "QEMU0001")
83 /* PEST will be patched to be Zero if no such device */
84 ACPI_EXTRACT_NAME_WORD_CONST ssdt_isa_pest
86 OperationRegion(PEOR, SystemIO, PEST, 0x01)
87 Field(PEOR, ByteAcc, NoLock, Preserve) {
91 Method(_STA, 0, NotSerialized) {
93 If (LEqual(Local0, Zero)) {
100 Method(RDPT, 0, NotSerialized) {
105 Method(WRPT, 1, NotSerialized) {
109 Name(_CRS, ResourceTemplate() {
110 IO(Decode16, 0x00, 0x00, 0x01, 0x01, IO)
113 CreateWordField(_CRS, IO._MIN, IOMN)
114 CreateWordField(_CRS, IO._MAX, IOMX)
116 Method(_INI, 0, NotSerialized) {