• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3
4Device (SIO1)
5{
6	Name (_HID, EISAID("PNP0A05"))
7	Name (_UID, 1)
8
9	Device (UAR1)
10	{
11		Name(_HID, EISAID("PNP0501"))
12		Name(_UID, 1)
13		Name(_DDN, "COM1")
14
15		Method (_STA, 0)
16		{
17			// always enable for now
18			Return (0x0f)
19		}
20
21		Method (_CRS, 0)
22		{
23			Return(ResourceTemplate() {
24				IO(Decode16, 0x3f8, 0x3f8, 0x8, 0x8)
25				IRQNoFlags() { 4 }
26			})
27		}
28		// Some methods need an implementation here:
29		// missing: _STA, _DIS, _CRS, _PRS,
30		// missing: _SRS, _PS0, _PS3
31	}
32
33	Device (UAR2)
34	{
35		Name(_HID, EISAID("PNP0501"))
36		Name(_UID, 2)
37		Name(_DDN, "COM2")
38
39		Method (_STA, 0)
40		{
41			// always enable for now
42			Return (0x0f)
43		}
44
45		Method (_CRS, 0)
46		{
47			Return(ResourceTemplate() {
48				IO(Decode16, 0x2f8, 0x2f8, 0x8, 0x8)
49				IRQNoFlags() { 3 }
50			})
51		}
52		// Some methods need an implementation here:
53		// missing: _STA, _DIS, _CRS, _PRS,
54		// missing: _SRS, _PS0, _PS3
55	}
56}
57