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)
17 ACCH, 1, // AC connected (charger present)
18 B1PR, 1, // battery 1 present
19 B2PR, 1, // battery 2 present
20 B1CH, 1, // battery 1 charged
21 B2CH, 1, // battery 2 charged
23 B1CG, 1, // battery 1 charging
24 B2CG, 1, // battery 2 charging
25 B1LO, 1, // battery 1 low
26 B2LO, 1, // battery 2 low
28 B1DW, 16, // battery 1 design capacity
29 B1FW, 16, // battery 1 last full charge capacity
30 B1DV, 16, // battery 1 design voltage
31 B1PW, 16, // battery 1 present capacity
33 B1PV, 16, // battery 1 present voltage
35 B2DW, 16, // battery 2 design capacity
36 B2FW, 16, // battery 2 last full charge capacity
37 B2DV, 16, // battery 2 design voltage
38 B2PW, 16, // battery 2 present capacity
40 B2PV, 16, // battery 2 present voltage
42 FDDI, 1, // floppy on lpt indicator?
43 LIDC, 1, // LID switch
45 TCPU, 8, // T_CPU in deg Celsius
47 /* exact purpose of these three is guessed,
48 but it's something about cooling */
49 ALRL, 1, // active cooling low limit
50 ALRH, 1, // active cooling high limit
51 ALRC, 1, // active cooling clear
53 B1RW, 16, // battery 1 remaining capacity
54 B2RW, 16, // battery 2 remaining capacity
59 Name (ECMD, ResourceTemplate()
61 IO (Decode16, 0x62, 0x62, 1, 1)
62 IO (Decode16, 0x66, 0x66, 1, 1)
70 // This method is needed by Windows XP/2000 for
71 // EC initialization before a driver is loaded
82 Printf ("_Q11: Fn-F8 (Sleep Button) pressed")
88 Printf ("_Q30: AC In")
89 Notify(ADP1, 0x80) // Tell the Power Adapter
90 PNOT() // and the CPU and Battery
95 Printf ("_Q31: AC Out")
96 Notify(ADP1, 0x80) // Tell the Power Adapter
97 PNOT() // and the CPU and Battery
102 Printf ("_Q32: Bat1 In")
108 Printf ("_Q33: Bat1 Out")
114 Printf ("_Q34: Bat2 In")
120 Printf ("_Q35: Bat2 Out")
126 Printf ("_Q36: Bat1 Low Power")
132 Printf ("_Q37: Bat1 Full Charge")
138 Printf ("_Q38: Bat2 Low Power")
144 Printf ("_Q39: Bat2 Full Charge")
150 Printf ("_Q40: LID Open/Close")
156 Printf ("_Q41: Floppy on Parallel Port: Call the Museum!")
161 Printf ("_Q50: Processor is hot")
162 Notify(\_TZ.THRM, 0x80)
167 Printf ("_Q51: Processor is boiling")
168 Notify(\_TZ.THRM, 0x80)
173 Printf ("_Q52: Processor is burning")
174 Notify(\_TZ.THRM, 0x80)