1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Name (_HID, EISAID("PNP0C09"))
11 OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100)
12 Field (ERAM, ByteAcc, NoLock, Preserve)
15 PAGE, 8, /* Information Page Selector */
22 B0PR, 1, /* Battery 0 present */
23 B0CH, 1, /* Battery 0 charging */
24 B0DI, 1, /* Battery 0 discharging */
33 Method(_LID, 0, NotSerialized)
39 Method(_Q52, 0, NotSerialized)
44 Method(_Q53, 0, NotSerialized)
50 Field (ERAM, ByteAcc, NoLock, Preserve)
53 BARC, 16, /* Battery remaining capacity */
54 BAFC, 16, /* Battery full charge capacity */
56 BAPR, 16, /* Battery present rate */
57 BAVO, 16, /* Battery Voltage */
61 Field (ERAM, ByteAcc, NoLock, Preserve)
64 BADC, 16, /* Design Capacity */
65 BADV, 16, /* Design voltage */
70 Field (ERAM, ByteAcc, NoLock, Preserve)
73 BANA, 128, /* Battery name */
77 Field (ERAM, ByteAcc, NoLock, Preserve)
80 BATY, 128, /* Battery type */
84 Field (ERAM, ByteAcc, NoLock, Preserve)
87 BAOE, 128, /* Battery OEM info */
90 Method (_CRS, 0, Serialized)
92 Name (ECMD, ResourceTemplate()
94 IO (Decode16, 0x62, 0x62, 1, 1)
95 IO (Decode16, 0x66, 0x66, 1, 1)
99 Method (_INI, 0, NotSerialized)
103 /* Decrease brightness. */
104 Method(_Q1D, 0, NotSerialized)
106 \_SB.PCI0.GFX0.DECB()
108 /* Increase brightness. */
109 Method(_Q1C, 0, NotSerialized)
111 \_SB.PCI0.GFX0.INCB()
114 #include "battery.asl"
116 #include "thermal.asl"