• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3/* Scope is \_SB.PCI0.LPCB */
4
5Device (SIO)
6{
7	Name (_UID, 0)
8	Name (_ADR, 0)
9
10	Device (COM1)
11	{
12		Name (_HID, EisaId ("PNP0501"))
13		Name (_UID, 1)
14
15		Method (_STA, 0, NotSerialized)
16		{
17#if CONFIG(DRIVERS_UART_8250IO)
18			Return (0x0f)
19#else
20			Return (0)
21#endif
22		}
23
24		Name (_CRS, ResourceTemplate ()
25		{
26			IO (Decode16, 0x03F8, 0x3F8, 0x08, 0x08)
27			IRQNoFlags () {4}
28		})
29	}
30}
31
32Scope (\_SB.PCI0)
33{
34	Device (PS2K)
35	{
36		Name (_HID, "GOOG000A")
37		Name (_CID, Package() { EISAID("PNP0303"), EISAID("PNP030B") })
38		Name (_UID, 0)
39
40		Method (_STA, 0, NotSerialized)
41		{
42#ifdef SIO_EC_ENABLE_PS2K
43			Return (0x0f)
44#else
45			Return (0)
46#endif
47		}
48
49		Name (_CRS, ResourceTemplate()
50		{
51			IO (Decode16, 0x60, 0x60, 0x01, 0x01)
52			IO (Decode16, 0x64, 0x64, 0x01, 0x01)
53			IRQ (Edge, ActiveHigh, Exclusive) {1}
54		})
55	}
56
57	Device (PS2M)
58	{
59		Name (_HID, EisaId ("PNP0F13"))
60		Name (_UID, 0)
61
62		Method (_STA, 0, NotSerialized)
63		{
64#ifdef SIO_EC_ENABLE_PS2M
65			Return (0x0f)
66#else
67			Return (0)
68#endif
69		}
70
71		Name (_CRS, ResourceTemplate()
72		{
73			IRQ (Edge, ActiveHigh, Exclusive) {12}
74		})
75	}
76}
77