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