pc: acpi: piix4: move PCI0._PRT() into SSDT
[qemu/ar7.git] / hw / i386 / acpi-dsdt.dsl
blob5d741dd53695e8f7cfcda038053c72d8f31d3062
1 /*
2  * Bochs/QEMU ACPI DSDT ASL definition
3  *
4  * Copyright (c) 2006 Fabrice Bellard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License version 2 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
20 ACPI_EXTRACT_ALL_CODE AcpiDsdtAmlCode
22 DefinitionBlock (
23     "acpi-dsdt.aml",    // Output Filename
24     "DSDT",             // Signature
25     0x01,               // DSDT Compliance Revision
26     "BXPC",             // OEMID
27     "BXDSDT",           // TABLE ID
28     0x1                 // OEM Revision
29     )
32     Scope(\_SB) {
33         Device(PCI0) {
34             Name(_HID, EisaId("PNP0A03"))
35             Name(_ADR, 0x00)
36             Name(_UID, 1)
37 //#define PX13 S0B_
38 //            External(PX13, DeviceObj)
39         }
40     }
42 /****************************************************************
43  * PCI hotplug
44  ****************************************************************/
46     Scope(\_SB.PCI0) {
47         OperationRegion(PCST, SystemIO, 0xae00, 0x08)
48         Field(PCST, DWordAcc, NoLock, WriteAsZeros) {
49             PCIU, 32,
50             PCID, 32,
51         }
53         OperationRegion(SEJ, SystemIO, 0xae08, 0x04)
54         Field(SEJ, DWordAcc, NoLock, WriteAsZeros) {
55             B0EJ, 32,
56         }
58         OperationRegion(BNMR, SystemIO, 0xae10, 0x04)
59         Field(BNMR, DWordAcc, NoLock, WriteAsZeros) {
60             BNUM, 32,
61         }
63         /* Lock to protect access to fields above. */
64         Mutex(BLCK, 0)
66         /* Methods called by bulk generated PCI devices below */
68         /* Methods called by hotplug devices */
69         Method(PCEJ, 2, NotSerialized) {
70             // _EJ0 method - eject callback
71             Acquire(BLCK, 0xFFFF)
72             Store(Arg0, BNUM)
73             Store(ShiftLeft(1, Arg1), B0EJ)
74             Release(BLCK)
75             Return (0x0)
76         }
78         /* Hotplug notification method supplied by SSDT */
79         External(\_SB.PCI0.PCNT, MethodObj)
80     }