Debian Codegraph @

src/ec/starlabs/merlin/acpi/dock.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 Device (VBTN)
4 {
5 Name (_HID, "INT33D6")
6 Name (_UID, 1)
7 Name (_DDN, "Intel Virtual Button Driver")
8
9 Method (_STA, 0, NotSerialized)
10 {
11 Return (0x0f)
12 }
13
14 Method (VBDL)
15 {
16 }
17
18 Method (UPDK, 0, Serialized)
19 {
20 Local0 = VGBS()
21
22 If (Local0 == 0) {
23 Printf ("Tablet Mode")
24 Notify (HIDD, 0xcc) /* Tablet */
25 } Else {
26 Printf ("Docked")
27 Notify (HIDD, 0xcd) /* Docked */
28 }
29 Return (Local0)
30 }
31
32 Method (VGBS, 0)
33 {
34 If (!GRXS (GPP_F15))
35 {
36 Return (0x40)
37 }
38 Return (0x00)
39 }
40 }
41
42 Device (VBTO)
43 {
44 Name (_HID, "INT33D3")
45 Name (_CID, "PNP0C60")
46 Name (_UID, 1)
47 Name (_DDN, "Laptop/tablet mode indicator driver")
48
49 Method (_STA, 0)
50 {
51 Return (0xf)
52 }
53 }