Debian Codegraph @

src/ec/lenovo/h8/acpi/lid.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 Field(ERAM, ByteAcc, NoLock, Preserve)
4 {
5 Offset (0x32),
6 , 2,
7 WKLD, 1,
8 Offset (0x46),
9 , 2,
10 LIDS, 1
11 }
12
13 Device(LID)
14 {
15 Name(_HID, "PNP0C0D")
16
17 Method(_LID, 0, NotSerialized)
18 {
19 return (LIDS)
20 }
21
22 Method(_PRW, 0, NotSerialized)
23 {
24 Return (Package() { 0x18, 0x03 })
25 }
26
27 Method(_PSW, 1, NotSerialized)
28 {
29 if (Arg0) {
30 WKLD = 1
31 } else {
32 WKLD = 0
33 }
34 }
35 }