Angel Pons | 210a008 | 2020-04-02 23:48:24 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | 7e56855 | 2013-03-13 17:03:04 -0700 | [diff] [blame] | 2 | |
| 3 | // Scope is \_SB.PCI0.LPCB |
| 4 | |
| 5 | Device (SIO) |
| 6 | { |
Matt DeVillier | c924f39 | 2017-09-17 14:24:58 -0500 | [diff] [blame] | 7 | Name (_HID, EisaId("PNP0A05")) |
Stefan Reinauer | 7e56855 | 2013-03-13 17:03:04 -0700 | [diff] [blame] | 8 | Name (_UID, 0) |
Stefan Reinauer | 7e56855 | 2013-03-13 17:03:04 -0700 | [diff] [blame] | 9 | |
| 10 | #ifdef SIO_EC_ENABLE_PS2K |
| 11 | Device (PS2K) // Keyboard |
| 12 | { |
| 13 | Name (_UID, 0) |
Stefan Reinauer | 7e56855 | 2013-03-13 17:03:04 -0700 | [diff] [blame] | 14 | Name (_HID, EISAID("PNP0303")) |
| 15 | Name (_CID, EISAID("PNP030B")) |
| 16 | |
| 17 | Method (_STA, 0, NotSerialized) |
| 18 | { |
| 19 | Return (0x0F) |
| 20 | } |
| 21 | |
| 22 | Name (_CRS, ResourceTemplate() |
| 23 | { |
| 24 | FixedIO (0x60, 0x01) |
| 25 | FixedIO (0x64, 0x01) |
| 26 | IRQNoFlags () {1} |
| 27 | }) |
Stefan Reinauer | 7e56855 | 2013-03-13 17:03:04 -0700 | [diff] [blame] | 28 | } |
| 29 | #endif |
| 30 | |
| 31 | #ifdef SIO_ENABLE_PS2M |
| 32 | Device (PS2M) // Mouse |
| 33 | { |
| 34 | Name (_HID, EISAID("PNP0F13")) |
| 35 | |
| 36 | Method (_STA, 0, NotSerialized) |
| 37 | { |
| 38 | Return (0x0F) |
| 39 | } |
| 40 | |
| 41 | Name (_CRS, ResourceTemplate() |
| 42 | { |
| 43 | FixedIO (0x60, 0x01) |
| 44 | FixedIO (0x64, 0x01) |
| 45 | IRQNoFlags () {12} |
| 46 | }) |
Stefan Reinauer | 7e56855 | 2013-03-13 17:03:04 -0700 | [diff] [blame] | 47 | } |
| 48 | #endif |
| 49 | |
| 50 | } |