1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Name (_HID, EISAID("PNP0C09"))
8 Name (_GPE, 23) // GPI07 / GPE23 -> Runtime SCI
12 OperationRegion(ERAM, EmbeddedControl, 0x00, 0xff)
13 Field (ERAM, ByteAcc, NoLock, Preserve)
15 Offset(0x04), // Command interface
20 Offset(0x18), // SMBus
39 Offset(0x83), // Thermal
52 Name (ECMD, ResourceTemplate()
54 IO (Decode16, 0x62, 0x62, 1, 1)
55 IO (Decode16, 0x66, 0x66, 1, 1)
63 // This method is needed by Windows XP/2000 for
64 // EC initialization before a driver is loaded
75 Printf ("_Q11: Fn-F8 (Sleep Button) pressed")
81 Printf ("_Q12: Fn-F9 (Display Switch) pressed")
82 Notify (\_SB.PCI0.GFX0, 0x82)
88 Printf ("_Q30: AC In/Out")
89 Notify(ADP1, 0x80) // Tell the Power Adapter
90 PNOT() // and the CPU and Battery
91 // Notify the Batteries
92 Notify(BAT1, 0x80) // Execute BAT1 _BST
93 Notify(BAT2, 0x80) // Execute BAT2 _BST
98 Printf ("_Q31: LID Open/Close")
104 Printf ("_Q32: Battery 1 In/Out")
115 Printf ("_Q33: Battery 2 In/Out")
126 Printf ("_Q34: LPT/FDD")
132 Printf ("_Q35: Processor is hot")
137 Printf ("_Q36: Thermal Warning")
147 Printf ("_Q38: Thermal")
152 Printf ("_Q39: Thermal")
155 // TODO Scope _SB devices for AC power, LID, Power button