1 /* SPDX-License-Identifier: GPL-2.0-only */
2 Name (FLAP, 0x40) /* Flag indicating device is in laptop mode */
5 Name (VTBL, 0xcc) /* Tablet Mode */
6 Name (VLAP, 0xcd) /* Laptop Mode */
10 Name (_HID, "INT33D6")
12 Name (_DDN, "Intel Virtual Button Driver")
15 * This method is called at driver probe time and must exist or
16 * the driver will not load.
23 * This method returns flags indicating tablet and dock modes.
24 * It is called at driver probe time so the OS knows what the
25 * state of the device is at boot.
44 If (\_SB.PCI0.GRXS (120)) {
45 Printf ("VBTN: tablet mode")
46 Return (0) /* Tablet mode */
48 Printf ("VBTN: laptop mode")
49 Return (1) /* Laptop mode */
55 /* Notify the new state */
57 Notify (^^VBTN, ^^VLAP)
59 Notify (^^VBTN, ^^VTBL)