1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 Name (_HID, EisaId ("PNP0C09"))
8 Name (_GPE, 0x4F) // _GPE: General Purpose Events
9 Name (_CRS, ResourceTemplate () {
10 IO (Decode16, 0x62, 0x62, 1, 1)
11 IO (Decode16, 0x66, 0x66, 1, 1)
14 OperationRegion (ERAM, EmbeddedControl, 0, 0xFF)
15 Field (ERAM, ByteAcc, Lock, Preserve)
45 Method (_REG, 2, NotSerialized)
47 /* Initialize AC power state */
50 /* Initialize LID switch state */
54 /* KEY_BRIGHTNESSUP */
57 Notify(\_SB.PCI0.GFX0.LCD, 0x86)
60 /* KEY_BRIGHTNESSDOWN */
63 Notify(\_SB.PCI0.GFX0.LCD, 0x87)
66 /* Battery Information Event */
86 /* Battery Information Event */
92 /* Battery Status Event */
100 Name (_HID, "ACPI0003")
101 Name (_PCL, Package () { \_SB })
113 #include "battery.asl"