1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Name (_HID, EisaId ("PNP0C0A"))
7 Name (_PCL, Package () { \_SB })
11 Name (PBIF, Package () {
12 0x00000001, /* 0x00: Power Unit: mAh */
13 0xFFFFFFFF, /* 0x01: Design Capacity */
14 0xFFFFFFFF, /* 0x02: Last Full Charge Capacity */
15 0x00000001, /* 0x03: Battery Technology: Rechargeable */
16 0xFFFFFFFF, /* 0x04: Design Voltage */
17 0x00000003, /* 0x05: Design Capacity of Warning */
18 0xFFFFFFFF, /* 0x06: Design Capacity of Low */
19 0x00000001, /* 0x07: Capacity Granularity 1 */
20 0x00000001, /* 0x08: Capacity Granularity 2 */
21 "Razer Blade Stealth",
28 Name (PBST, Package () {
29 0x00000000, /* 0x00: Battery State */
30 0xFFFFFFFF, /* 0x01: Battery Present Rate */
31 0xFFFFFFFF, /* 0x02: Battery Remaining Capacity */
32 0xFFFFFFFF, /* 0x03: Battery Present Voltage */
35 Method (_STA, 0, Serialized)
40 Method (_BIF, 0, Serialized)
42 /* Last Full Charge Capacity */
51 /* Design Capacity of Warning */
54 /* Design Capacity of Low */
57 PBIF [10] = ToString (BSER, Ones)
62 Method (_BST, 0, Serialized)
69 * bit 2 = critical level
72 /* Check if AC is present */
74 /* Read battery status from EC */
77 /* Always discharging when on battery power */
83 /* Notify if battery state has changed since last time */
90 * 1: BATTERY PRESENT RATE
95 * 2: BATTERY REMAINING CAPACITY
100 * 3: BATTERY PRESENT VOLTAGE