1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Name (_HID, EisaId ("PNP0C09"))
7 Name (_GPE, 0x50) // Copied over
9 Name (_CRS, ResourceTemplate () {
10 IO (Decode16, 0x62, 0x62, 0, 1)
11 IO (Decode16, 0x66, 0x66, 0, 1)
16 OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
17 Field (ERAM, ByteAcc, NoLock, Preserve)
30 BSER, 256, // BAT Serial Number
33 BDCP, 16, // BAT Design Capacity
34 BFCP, 16, // BAT Full Capacity
35 BRCH, 16, // BAT Rechargeable
36 BDVT, 16, // BAT Design Voltage
41 BCST, 16, // BAT Current State
42 BCRT, 16, // BAT Current Rate
43 BRCP, 16, // BAT Remaining Capacity
44 BCVT, 16, // BAT Current Voltage
45 PWRS, 8, // Power State (?)
56 Method (_REG, 2, NotSerialized)
58 /* Initialize AC power state */
61 /* Initialize LID switch state */
67 Method (_Q14, 0, NotSerialized)
74 Method (_Q15, 0, NotSerialized)
82 Method (_Q13, 0, NotSerialized)
85 Notify (BAT, 0x80) // Status Change
86 Notify (BAT, 0x81) // Information Change
87 Notify (AC, 0x80) // Status Change
91 #include "battery.asl"