pc: acpi: move RTC device from DSDT to SSDT
[qemu/ar7.git] / hw / i386 / acpi-dsdt-isa.dsl
blobf2cbbead6faa6788146bf4604782e8fef2e1be49
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.
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/>.
14  */
16 /* Common legacy ISA style devices. */
17 Scope(\_SB.PCI0.ISA) {
19     Device(KBD) {
20         Name(_HID, EisaId("PNP0303"))
21         Method(_STA, 0, NotSerialized) {
22             Return (0x0f)
23         }
24         Name(_CRS, ResourceTemplate() {
25             IO(Decode16, 0x0060, 0x0060, 0x01, 0x01)
26             IO(Decode16, 0x0064, 0x0064, 0x01, 0x01)
27             IRQNoFlags() { 1 }
28         })
29     }
31     Device(MOU) {
32         Name(_HID, EisaId("PNP0F13"))
33         Method(_STA, 0, NotSerialized) {
34             Return (0x0f)
35         }
36         Name(_CRS, ResourceTemplate() {
37             IRQNoFlags() { 12 }
38         })
39     }
41     Device(FDC0) {
42         Name(_HID, EisaId("PNP0700"))
43         Method(_STA, 0, NotSerialized) {
44             Store(FDEN, Local0)
45             If (LEqual(Local0, 0)) {
46                 Return (0x00)
47             } Else {
48                 Return (0x0F)
49             }
50         }
51         Name(_CRS, ResourceTemplate() {
52             IO(Decode16, 0x03F2, 0x03F2, 0x00, 0x04)
53             IO(Decode16, 0x03F7, 0x03F7, 0x00, 0x01)
54             IRQNoFlags() { 6 }
55             DMA(Compatibility, NotBusMaster, Transfer8) { 2 }
56         })
57     }
59     Device(LPT) {
60         Name(_HID, EisaId("PNP0400"))
61         Method(_STA, 0, NotSerialized) {
62             Store(LPEN, Local0)
63             If (LEqual(Local0, 0)) {
64                 Return (0x00)
65             } Else {
66                 Return (0x0F)
67             }
68         }
69         Name(_CRS, ResourceTemplate() {
70             IO(Decode16, 0x0378, 0x0378, 0x08, 0x08)
71             IRQNoFlags() { 7 }
72         })
73     }
75     Device(COM1) {
76         Name(_HID, EisaId("PNP0501"))
77         Name(_UID, 0x01)
78         Method(_STA, 0, NotSerialized) {
79             Store(CAEN, Local0)
80             If (LEqual(Local0, 0)) {
81                 Return (0x00)
82             } Else {
83                 Return (0x0F)
84             }
85         }
86         Name(_CRS, ResourceTemplate() {
87             IO(Decode16, 0x03F8, 0x03F8, 0x00, 0x08)
88             IRQNoFlags() { 4 }
89         })
90     }
92     Device(COM2) {
93         Name(_HID, EisaId("PNP0501"))
94         Name(_UID, 0x02)
95         Method(_STA, 0, NotSerialized) {
96             Store(CBEN, Local0)
97             If (LEqual(Local0, 0)) {
98                 Return (0x00)
99             } Else {
100                 Return (0x0F)
101             }
102         }
103         Name(_CRS, ResourceTemplate() {
104             IO(Decode16, 0x02F8, 0x02F8, 0x00, 0x08)
105             IRQNoFlags() { 3 }
106         })
107     }