1/*
2 * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier:	GPL-2.0+
5 */
6
7/* Power Button */
8Device (PWRB)
9{
10	Name(_HID, EISAID("PNP0C0C"))
11}
12
13/* PS/2 keyboard and mouse */
14Scope (\_SB.PCI0.LPCB)
15{
16	/* 8042 Keyboard */
17	Device (PS2K)
18	{
19		Name(_HID, EISAID("PNP0303"))
20		Name(_CRS, ResourceTemplate()
21		{
22			IO(Decode16, 0x60, 0x60, 0x00, 0x01)
23			IO(Decode16, 0x64, 0x64, 0x00, 0x01)
24			IRQNoFlags() { 1 }
25		})
26
27		Method(_STA, 0, Serialized)
28		{
29			Return (STA_VISIBLE)
30		}
31	}
32
33	/* 8042 Mouse */
34	Device (PS2M)
35	{
36		Name(_HID, EISAID("PNP0F03"))
37		Name(_CRS, ResourceTemplate()
38		{
39			IO(Decode16, 0x60, 0x60, 0x00, 0x01)
40			IO(Decode16, 0x64, 0x64, 0x00, 0x01)
41			IRQNoFlags() { 12 }
42		})
43
44		Method(_STA, 0, Serialized)
45		{
46			Return (STA_VISIBLE)
47		}
48	}
49}
50