1 /* SPDX-License-Identifier: GPL-2.0-only */
7 Name (_HID, EISAID ("PNP0C0A"))
9 Name (_PCL, Package () { \_SB })
13 // Default Static Battery Information
15 Name (PBIF, Package (13)
18 4800, // 1: Design Capacity
19 4650, // 2: Last Full Charge Capacity
20 1, // 3: Battery Technology(Rechargeable)
21 12608, // 4: Design Voltage 10.8V
22 0, // 5: Design capacity of warning
23 0, // 6: Design capacity of low
24 0, // 7: Battery capacity granularity 1
25 0, // 8: Battery capacity granularity 2
26 "BAT0", // 9: Model Number
27 "RT672", // 10: Serial Number
28 "LiON", // 11: Battery Type
29 "ASP" // 12: OEM Information
33 Name (PBST, Package (4)
35 0x00000000, // Battery State
36 0xffffffff, // Battery Present Rate
37 0xffffffff, // Battery Remaining Capacity
38 0xffffffff, // Battery Present Voltage
42 // Battery Slot Status
43 Method (_STA, 0, Serialized)
45 Printf ("-----> BAT0: _STA")
55 Printf ("<----- BAT0: _STA")
60 Method (_BIF, 0, Serialized)
62 Printf ("-----> BAT0: _BIF")
65 PBIF[5] = (B0FC * 6) / 100
66 PBIF[6] = (B0FC * 3) / 100
68 Printf ("<----- BAT0: _BIF")
73 Method (_BST, 0, Serialized)
75 Printf ("-----> BAT0: _BST")
97 Local1 = 0x00010000 - Local1
104 Printf ("<----- BAT0: _BST")