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. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 19 | * MA 02110-1301 USA |
| 20 | */ |
| 21 | Device (PS2K) // Keyboard |
| 22 | { |
| 23 | Name(_HID, EISAID("PNP0303")) |
| 24 | Name(_CID, EISAID("PNP030B")) |
| 25 | |
| 26 | Name(_CRS, ResourceTemplate() |
| 27 | { |
| 28 | IO (Decode16, 0x60, 0x60, 0x01, 0x01) |
| 29 | IO (Decode16, 0x64, 0x64, 0x01, 0x01) |
| 30 | IRQ (Edge, ActiveHigh, Exclusive) { 0x01 } // IRQ 1 |
| 31 | }) |
| 32 | |
| 33 | Method (_STA, 0) |
| 34 | { |
| 35 | Return (0xf) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | Device (PS2M) // Mouse |
| 40 | { |
| 41 | Name(_HID, EISAID("PNP0F13")) |
| 42 | Name(_CRS, ResourceTemplate() |
| 43 | { |
| 44 | IRQ (Edge, ActiveHigh, Exclusive) { 0x0c } // IRQ 12 |
| 45 | }) |
| 46 | |
| 47 | Method(_STA, 0) |
| 48 | { |
| 49 | Return (0xf) |
| 50 | } |
| 51 | } |