Debian Codegraph @

src/mainboard/system76/kbl-u/acpi/lid.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 Device (LID0)
4 {
5 Name (_HID, EisaId ("PNP0C0D"))
6 Name (_PRW, Package () { 0x13 /* GPP_C19 */, 3 })
7
8 Method (_LID, 0, NotSerialized) {
9 Printf ("LID: _LID")
10 If (^^PCI0.LPCB.EC0.ECOK) {
11 Return (^^PCI0.LPCB.EC0.LSTE)
12 } Else {
13 Return (1)
14 }
15 }
16
17 Method (_PSW, 1, NotSerialized) {
18 Printf ("LID: _PSW: %o", ToHexString(Arg0))
19 If (^^PCI0.LPCB.EC0.ECOK) {
20 ^^PCI0.LPCB.EC0.LWKE = Arg0
21 }
22 }
23 }