pc: acpi: move LPT device from DSDT to SSDT
[qemu/cris-port.git] / hw / i386 / acpi-dsdt-isa.dsl
blobcc5e8f9be11704857497e9395a1d1aee4b6714e8
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(COM1) {
20         Name(_HID, EisaId("PNP0501"))
21         Name(_UID, 0x01)
22         Method(_STA, 0, NotSerialized) {
23             Store(CAEN, Local0)
24             If (LEqual(Local0, 0)) {
25                 Return (0x00)
26             } Else {
27                 Return (0x0F)
28             }
29         }
30         Name(_CRS, ResourceTemplate() {
31             IO(Decode16, 0x03F8, 0x03F8, 0x00, 0x08)
32             IRQNoFlags() { 4 }
33         })
34     }
36     Device(COM2) {
37         Name(_HID, EisaId("PNP0501"))
38         Name(_UID, 0x02)
39         Method(_STA, 0, NotSerialized) {
40             Store(CBEN, Local0)
41             If (LEqual(Local0, 0)) {
42                 Return (0x00)
43             } Else {
44                 Return (0x0F)
45             }
46         }
47         Name(_CRS, ResourceTemplate() {
48             IO(Decode16, 0x02F8, 0x02F8, 0x00, 0x08)
49             IRQNoFlags() { 3 }
50         })
51     }