Vladimir Serbinenko | ad3bd9d | 2013-12-10 01:28:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (c) 2013 Vladimir Serbinenko |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of |
| 9 | * the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Vladimir Serbinenko | ad3bd9d | 2013-12-10 01:28:04 +0100 | [diff] [blame] | 15 | */ |
| 16 | Device (PS2K) // Keyboard |
| 17 | { |
| 18 | Name(_HID, EISAID("PNP0303")) |
| 19 | Name(_CID, EISAID("PNP030B")) |
| 20 | |
| 21 | Name(_CRS, ResourceTemplate() |
| 22 | { |
| 23 | IO (Decode16, 0x60, 0x60, 0x01, 0x01) |
| 24 | IO (Decode16, 0x64, 0x64, 0x01, 0x01) |
| 25 | IRQ (Edge, ActiveHigh, Exclusive) { 0x01 } // IRQ 1 |
| 26 | }) |
| 27 | |
| 28 | Method (_STA, 0) |
| 29 | { |
| 30 | Return (0xf) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | Device (PS2M) // Mouse |
| 35 | { |
| 36 | Name(_HID, EISAID("PNP0F13")) |
| 37 | Name(_CRS, ResourceTemplate() |
| 38 | { |
| 39 | IRQ (Edge, ActiveHigh, Exclusive) { 0x0c } // IRQ 12 |
| 40 | }) |
| 41 | |
| 42 | Method(_STA, 0) |
| 43 | { |
| 44 | Return (0xf) |
| 45 | } |
| 46 | } |