Kevin O'Connor | e9e7ab4 | 2012-12-02 01:09:17 -0500 | [diff] [blame^] | 1 | /* Common legacy ISA style devices. */ |
| 2 | Scope(\_SB.PCI0.ISA) { |
Gerd Hoffmann | 8d74497 | 2012-11-28 10:17:47 +0100 | [diff] [blame] | 3 | |
Kevin O'Connor | e9e7ab4 | 2012-12-02 01:09:17 -0500 | [diff] [blame^] | 4 | Device(RTC) { |
| 5 | Name(_HID, EisaId("PNP0B00")) |
| 6 | Name(_CRS, ResourceTemplate() { |
| 7 | IO(Decode16, 0x0070, 0x0070, 0x10, 0x02) |
| 8 | IRQNoFlags() { 8 } |
| 9 | IO(Decode16, 0x0072, 0x0072, 0x02, 0x06) |
| 10 | }) |
| 11 | } |
Gerd Hoffmann | 8d74497 | 2012-11-28 10:17:47 +0100 | [diff] [blame] | 12 | |
Kevin O'Connor | e9e7ab4 | 2012-12-02 01:09:17 -0500 | [diff] [blame^] | 13 | Device(KBD) { |
| 14 | Name(_HID, EisaId("PNP0303")) |
| 15 | Method(_STA, 0, NotSerialized) { |
| 16 | Return (0x0f) |
| 17 | } |
| 18 | Name(_CRS, ResourceTemplate() { |
| 19 | IO(Decode16, 0x0060, 0x0060, 0x01, 0x01) |
| 20 | IO(Decode16, 0x0064, 0x0064, 0x01, 0x01) |
| 21 | IRQNoFlags() { 1 } |
| 22 | }) |
| 23 | } |
| 24 | |
| 25 | Device(MOU) { |
| 26 | Name(_HID, EisaId("PNP0F13")) |
| 27 | Method(_STA, 0, NotSerialized) { |
| 28 | Return (0x0f) |
| 29 | } |
| 30 | Name(_CRS, ResourceTemplate() { |
| 31 | IRQNoFlags() { 12 } |
| 32 | }) |
| 33 | } |
| 34 | |
| 35 | Device(FDC0) { |
| 36 | Name(_HID, EisaId("PNP0700")) |
| 37 | Method(_STA, 0, NotSerialized) { |
| 38 | Store(FDEN, Local0) |
| 39 | If (LEqual(Local0, 0)) { |
| 40 | Return (0x00) |
| 41 | } Else { |
| 42 | Return (0x0F) |
| 43 | } |
| 44 | } |
| 45 | Name(_CRS, ResourceTemplate() { |
| 46 | IO(Decode16, 0x03F2, 0x03F2, 0x00, 0x04) |
| 47 | IO(Decode16, 0x03F7, 0x03F7, 0x00, 0x01) |
| 48 | IRQNoFlags() { 6 } |
| 49 | DMA(Compatibility, NotBusMaster, Transfer8) { 2 } |
| 50 | }) |
| 51 | } |
| 52 | |
| 53 | Device(LPT) { |
| 54 | Name(_HID, EisaId("PNP0400")) |
| 55 | Method(_STA, 0, NotSerialized) { |
| 56 | Store(LPEN, Local0) |
| 57 | If (LEqual(Local0, 0)) { |
| 58 | Return (0x00) |
| 59 | } Else { |
| 60 | Return (0x0F) |
| 61 | } |
| 62 | } |
| 63 | Name(_CRS, ResourceTemplate() { |
| 64 | IO(Decode16, 0x0378, 0x0378, 0x08, 0x08) |
| 65 | IRQNoFlags() { 7 } |
| 66 | }) |
| 67 | } |
| 68 | |
| 69 | Device(COM1) { |
| 70 | Name(_HID, EisaId("PNP0501")) |
| 71 | Name(_UID, 0x01) |
| 72 | Method(_STA, 0, NotSerialized) { |
| 73 | Store(CAEN, Local0) |
| 74 | If (LEqual(Local0, 0)) { |
| 75 | Return (0x00) |
| 76 | } Else { |
| 77 | Return (0x0F) |
| 78 | } |
| 79 | } |
| 80 | Name(_CRS, ResourceTemplate() { |
| 81 | IO(Decode16, 0x03F8, 0x03F8, 0x00, 0x08) |
| 82 | IRQNoFlags() { 4 } |
| 83 | }) |
| 84 | } |
| 85 | |
| 86 | Device(COM2) { |
| 87 | Name(_HID, EisaId("PNP0501")) |
| 88 | Name(_UID, 0x01) |
| 89 | Method(_STA, 0, NotSerialized) { |
| 90 | Store(CBEN, Local0) |
| 91 | If (LEqual(Local0, 0)) { |
| 92 | Return (0x00) |
| 93 | } Else { |
| 94 | Return (0x0F) |
| 95 | } |
| 96 | } |
| 97 | Name(_CRS, ResourceTemplate() { |
| 98 | IO(Decode16, 0x02F8, 0x02F8, 0x00, 0x08) |
| 99 | IRQNoFlags() { 3 } |
| 100 | }) |
| 101 | } |
| 102 | } |