1 /* SPDX-License-Identifier: GPL-2.0-only */
8 Name(_HID, EisaId("PNP0C0A"))
11 Name(_PCL, Package(){ _SB })
13 Name(PBIF, Package() {
28 Name(PBST, Package() { 0x01, 0x16, 0x64, 0x2b5c })
33 If(\_SB.PCI0.LPCB.EC0.ECON) {
34 If(\_SB.PCI0.LPCB.EC0.P62S) {
47 If(\_SB.PCI0.LPCB.EC0.ECON) {
48 If(\_SB.PCI0.LPCB.EC0.P62S) {
62 If(\_SB.PCI0.LPCB.EC0.ECON) {
69 /* Update Battery Info */
78 PBIF [12] = "Panasonic"
83 Local0 = \_SB.PCI0.LPCB.EC0.QEVT
90 If (Local0 != 0xeeee) {
100 PBST [3] = DerefOf (PBIF [4])
116 If (\_SB.PCI0.LPCB.EC0.P63S) {
123 // Invalidate Battery Info
126 PBIF [1] = 0xffffffff
127 PBIF [2] = 0xffffffff
128 PBIF [4] = 0xffffffff
139 PBST [1] = 0xffffffff
140 PBST [2] = 0xffffffff
141 PBST [3] = 0xffffffff
148 Name(_HID, EisaId("PNP0C0A"))
151 Name(_PCL, Package(){ _SB })
153 Name(PBIF, Package() {
168 Name(PBST, Package() { 0x01, 0x16, 0x64, 0x2b5c })
173 If(\_SB.PCI0.LPCB.EC0.ECON) {
174 If(\_SB.PCI0.LPCB.EC0.P63S) {
187 If(\_SB.PCI0.LPCB.EC0.ECON) {
188 If(\_SB.PCI0.LPCB.EC0.P63S) {
202 If(\_SB.PCI0.LPCB.EC0.ECON) {
209 /* Update Battery Info */
218 PBIF [12] = "Panasonic"
223 Local0 = \_SB.PCI0.LPCB.EC0.QEVT
230 If (Local0 != 0xeeee) {
231 If (Local0 <= 0x64) {
240 PBST [3] = DerefOf (PBIF [4])
256 If (\_SB.PCI0.LPCB.EC0.P62S) {
263 // Invalidate Battery Info
266 PBIF [1] = 0xffffffff
267 PBIF [2] = 0xffffffff
268 PBIF [4] = 0xffffffff
279 PBST [1] = 0xffffffff
280 PBST [2] = 0xffffffff
281 PBST [3] = 0xffffffff
287 \_SB.PCI0.LPCB.EC0.SMAD = 0x16
288 \_SB.PCI0.LPCB.EC0.SMCM = Arg0
289 \_SB.PCI0.LPCB.EC0.SMPR = 0x09
290 While (\_SB.PCI0.LPCB.EC0.SMPR != 0x00) {
294 Return (\_SB.PCI0.LPCB.EC0.SMW0)
299 Name (_HID, "ACPI0003")
302 If (\_SB.PCI0.LPCB.EC0.ECON) {
303 Local0 = \_SB.PCI0.LPCB.EC0.P60S