blob: 45ed8518501fc35a75921addbde262c409d8a0cb [file] [log] [blame]
Jeremy Soller9037f0a2021-04-09 10:51:31 -06001/* SPDX-License-Identifier: GPL-2.0-only */
2
3Device (LID0)
4{
5 Name (_HID, EisaId ("PNP0C0D"))
6 Name (_PRW, Package () { 0x13 /* GPP_C19 */, 3 })
7
8 Method (_LID, 0, NotSerialized) {
Felix Singerfcdb03d2022-12-25 17:22:41 +01009 Printf ("LID: _LID")
Jeremy Soller9037f0a2021-04-09 10:51:31 -060010 If (^^PCI0.LPCB.EC0.ECOK) {
11 Return (^^PCI0.LPCB.EC0.LSTE)
12 } Else {
Felix Singerdfbb6342022-12-26 08:39:35 +010013 Return (1)
Jeremy Soller9037f0a2021-04-09 10:51:31 -060014 }
15 }
16
17 Method (_PSW, 1, NotSerialized) {
Felix Singerfcdb03d2022-12-25 17:22:41 +010018 Printf ("LID: _PSW: %o", ToHexString(Arg0))
Jeremy Soller9037f0a2021-04-09 10:51:31 -060019 If (^^PCI0.LPCB.EC0.ECOK) {
20 ^^PCI0.LPCB.EC0.LWKE = Arg0
21 }
22 }
23}