drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / ec / apple / acpi / lid.asl
blobec91d8f1069cb70da658528534f382dd222104a3
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Scope(\_SB.PCI0.LPCB.EC)
5         Field(ERAM, ByteAcc, NoLock, Preserve)
6         {
7                 Offset(LIDS_OFFSET),
8                 LIDS, 1,   /* Lid status */
10                 Offset(WKLD_OFFSET),
11                 WKLD, 1,   /* Lid wake */
12         }
14         Device(LID)
15         {
16                 Name(_HID, "PNP0C0D")
18                 Method(_LID, 0, NotSerialized)
19                 {
20                         Return(LIDS)
21                 }
23                 Method(_PRW, 0, NotSerialized)
24                 {
25 #if LIDS_OFFSET == 0x01
26                         Return(Package() { 0x1d, 0x03 })
27 #else
28                         Return(Package() { 0x23, 0x04 })
29 #endif
30                 }
32                 Method(_PSW, 1, NotSerialized)
33                 {
34                         if (Arg0) {
35                                 WKLD = 1
36                         } else {
37                                 WKLD = 0
38                         }
39                 }
40         }