1 /* SPDX-License-Identifier: GPL-2.0-only */
10 Name(_HID, EisaId("PNP0C0A"))
13 Name(_PCL, Package(){ \_SB })
15 Name(PBST, Package() { 0x00, 0x04b0, 0x0bb8, 0x03e8 })
21 If (\_SB.PCI0.LPCB.EC0.BAT) {
29 Method(_BIF, 0, Serialized)
31 Name(PBIF, Package() {
54 PBIF [1] = \_SB.PCI0.LPCB.EC0.BDC0
55 PBIF [4] = \_SB.PCI0.LPCB.EC0.BDV0
57 Local0 = \_SB.PCI0.LPCB.EC0.BFC0
66 If (\_SB.PCI0.LPCB.EC0.BTYP) {
78 If (\_SB.PCI0.LPCB.EC0.BAT) {
79 PBST [3] = \_SB.PCI0.LPCB.EC0.BPV0
81 Local3 = \_SB.PCI0.LPCB.EC0.BRC0 * 100
82 Local0 = Local3 / \_SB.PCI0.LPCB.EC0.BFC0
83 Local3 = \_SB.PCI0.LPCB.EC0.BFC0 * Local0
88 Local3 = \_SB.PCI0.LPCB.EC0.BRC0
89 Local0 = \_SB.PCI0.LPCB.EC0.BPR0
90 Local0 = ~Local0 & 0xFFFF
93 // AC Power connected?
94 If (\_SB.PCI0.LPCB.EC0.ADP) {
95 If (\_SB.PCI0.LPCB.EC0.CHRG) {
115 Name(_HID, EisaId("PNP0C0A"))
118 Name(_PCL, Package(){ \_SB })
120 Name(PBST, Package() { 0x00, 0x04b0, 0x0bb8, 0x03e8 })
126 If (\_SB.PCI0.LPCB.EC0.BAT2) {
134 Method(_BIF, 0, Serialized)
136 Name(PBIF, Package() {
159 PBIF [1] = \_SB.PCI0.LPCB.EC0.BDC2
160 PBIF [4] = \_SB.PCI0.LPCB.EC0.BDV2
162 Local0 = \_SB.PCI0.LPCB.EC0.BFC2
171 If (\_SB.PCI0.LPCB.EC0.BTY2) {
183 If (\_SB.PCI0.LPCB.EC0.BAT2) {
184 PBST [3] = \_SB.PCI0.LPCB.EC0.BPV2
186 Local3 = \_SB.PCI0.LPCB.EC0.BRC2 * 100
187 Local0 = Local3 / \_SB.PCI0.LPCB.EC0.BRC2
188 Local3 = \_SB.PCI0.LPCB.EC0.BFC2 * Local0
189 Local0 = Local3 / 100
193 Local3 = \_SB.PCI0.LPCB.EC0.BRC2
194 Local0 = \_SB.PCI0.LPCB.EC0.BPR2
195 Local0 = ~Local0 & 0xFFFF
198 // AC Power connected?
199 If (\_SB.PCI0.LPCB.EC0.ADP) {
200 If (\_SB.PCI0.LPCB.EC0.CRG2) {
222 Name (_HID, "ACPI0003")
229 Local0 = \_SB.PCI0.LPCB.EC0.ADP
237 Name(_PCL, Package(){