{superio,ec}/acpi: Replace constant "Zero" with actual number
Change-Id: I449ec5b0bbf3f24d51688efef151d3018d2848b2 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71524 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
fa06bcba06
commit
42efd7f593
|
@ -30,7 +30,7 @@ Device (BATX)
|
||||||
0xFFFFFFFF, // Battery Remaining Capacity
|
0xFFFFFFFF, // Battery Remaining Capacity
|
||||||
0xFFFFFFFF, // Battery Present Voltage
|
0xFFFFFFFF, // Battery Present Voltage
|
||||||
})
|
})
|
||||||
Name (BTNM, Zero) // Battery number
|
Name (BTNM, 0) // Battery number
|
||||||
|
|
||||||
// Workaround for full battery status, enabled by default
|
// Workaround for full battery status, enabled by default
|
||||||
Name (BFWK, 1)
|
Name (BFWK, 1)
|
||||||
|
|
|
@ -7,12 +7,12 @@ Mutex (BATM, 0)
|
||||||
|
|
||||||
// Wait for desired battery index to be presented in shared memory
|
// Wait for desired battery index to be presented in shared memory
|
||||||
// Arg0 = battery index
|
// Arg0 = battery index
|
||||||
// Returns Zero on success, 1 on error.
|
// Returns 0 on success, 1 on error.
|
||||||
Method (BTSW, 1)
|
Method (BTSW, 1)
|
||||||
{
|
{
|
||||||
#ifdef EC_ENABLE_SECOND_BATTERY_DEVICE
|
#ifdef EC_ENABLE_SECOND_BATTERY_DEVICE
|
||||||
If (BTIX == Arg0) {
|
If (BTIX == Arg0) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
If (Arg0 >= BTCN) {
|
If (Arg0 >= BTCN) {
|
||||||
Return (1)
|
Return (1)
|
||||||
|
@ -33,7 +33,7 @@ Method (BTSW, 1)
|
||||||
Return (1)
|
Return (1)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// _STA implementation.
|
// _STA implementation.
|
||||||
|
@ -41,7 +41,7 @@ Method (BTSW, 1)
|
||||||
Method (BSTA, 1, Serialized)
|
Method (BSTA, 1, Serialized)
|
||||||
{
|
{
|
||||||
If (Acquire (^BATM, 1000)) {
|
If (Acquire (^BATM, 1000)) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
If (~BTSW (Arg0) & BTEX) {
|
If (~BTSW (Arg0) & BTEX) {
|
||||||
|
@ -159,7 +159,7 @@ Method (BBST, 4, Serialized)
|
||||||
// bit 1 = charging
|
// bit 1 = charging
|
||||||
// bit 2 = critical level
|
// bit 2 = critical level
|
||||||
//
|
//
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
|
|
||||||
// Check if AC is present
|
// Check if AC is present
|
||||||
If (ACEX) {
|
If (ACEX) {
|
||||||
|
@ -277,10 +277,10 @@ Device (BAT0)
|
||||||
0xFFFFFFFF, // 0x02: Battery Remaining Capacity
|
0xFFFFFFFF, // 0x02: Battery Remaining Capacity
|
||||||
0xFFFFFFFF, // 0x03: Battery Present Voltage
|
0xFFFFFFFF, // 0x03: Battery Present Voltage
|
||||||
})
|
})
|
||||||
Name (BSTP, Zero)
|
Name (BSTP, 0)
|
||||||
|
|
||||||
// Workaround for full battery status, disabled by default
|
// Workaround for full battery status, disabled by default
|
||||||
Name (BFWK, Zero)
|
Name (BFWK, 0)
|
||||||
|
|
||||||
// Method to enable full battery workaround
|
// Method to enable full battery workaround
|
||||||
Method (BFWE)
|
Method (BFWE)
|
||||||
|
@ -291,7 +291,7 @@ Device (BAT0)
|
||||||
// Method to disable full battery workaround
|
// Method to disable full battery workaround
|
||||||
Method (BFWD)
|
Method (BFWD)
|
||||||
{
|
{
|
||||||
BFWK = Zero
|
BFWK = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
|
@ -367,10 +367,10 @@ Device (BAT1)
|
||||||
0xFFFFFFFF, // 0x02: Battery Remaining Capacity
|
0xFFFFFFFF, // 0x02: Battery Remaining Capacity
|
||||||
0xFFFFFFFF, // 0x03: Battery Present Voltage
|
0xFFFFFFFF, // 0x03: Battery Present Voltage
|
||||||
})
|
})
|
||||||
Name (BSTP, Zero)
|
Name (BSTP, 0)
|
||||||
|
|
||||||
// Workaround for full battery status, disabled by default
|
// Workaround for full battery status, disabled by default
|
||||||
Name (BFWK, Zero)
|
Name (BFWK, 0)
|
||||||
|
|
||||||
// Method to enable full battery workaround
|
// Method to enable full battery workaround
|
||||||
Method (BFWE)
|
Method (BFWE)
|
||||||
|
@ -381,7 +381,7 @@ Device (BAT1)
|
||||||
// Method to disable full battery workaround
|
// Method to disable full battery workaround
|
||||||
Method (BFWD)
|
Method (BFWD)
|
||||||
{
|
{
|
||||||
BFWK = Zero
|
BFWK = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_STA, 0, Serialized)
|
Method (_STA, 0, Serialized)
|
||||||
|
|
|
@ -198,22 +198,22 @@ Device (EC0)
|
||||||
|
|
||||||
/* Check for sensor not calibrated */
|
/* Check for sensor not calibrated */
|
||||||
If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) {
|
If (Local0 == \_SB.PCI0.LPCB.EC0.TNCA) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for sensor not present */
|
/* Check for sensor not present */
|
||||||
If (Local0 == \_SB.PCI0.LPCB.EC0.TNPR) {
|
If (Local0 == \_SB.PCI0.LPCB.EC0.TNPR) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for sensor not powered */
|
/* Check for sensor not powered */
|
||||||
If (Local0 == \_SB.PCI0.LPCB.EC0.TNOP) {
|
If (Local0 == \_SB.PCI0.LPCB.EC0.TNOP) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for sensor bad reading */
|
/* Check for sensor bad reading */
|
||||||
If (Local0 == \_SB.PCI0.LPCB.EC0.TBAD) {
|
If (Local0 == \_SB.PCI0.LPCB.EC0.TBAD) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust by offset to get Kelvin */
|
/* Adjust by offset to get Kelvin */
|
||||||
|
|
|
@ -10,7 +10,7 @@ Method (ESTA, 1, Serialized)
|
||||||
} ElseIf (Arg0 == 2) {
|
} ElseIf (Arg0 == 2) {
|
||||||
Local0 = R (P3B2)
|
Local0 = R (P3B2)
|
||||||
} Else {
|
} Else {
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Indicate battery is present */
|
/* Indicate battery is present */
|
||||||
|
@ -42,7 +42,7 @@ Method (BSTR, 1, Serialized)
|
||||||
|
|
||||||
/* Fill buffer until NUL or max string length is read */
|
/* Fill buffer until NUL or max string length is read */
|
||||||
Name (IBUF, Buffer (Local0 + 1) {})
|
Name (IBUF, Buffer (Local0 + 1) {})
|
||||||
For (Local1 = Zero, Local1 < Local0, Local1++) {
|
For (Local1 = 0, Local1 < Local0, Local1++) {
|
||||||
Local2 = R (BSBS)
|
Local2 = R (BSBS)
|
||||||
If (!Local2) {
|
If (!Local2) {
|
||||||
Break
|
Break
|
||||||
|
@ -53,7 +53,7 @@ Method (BSTR, 1, Serialized)
|
||||||
/* Truncate and NUL terminate */
|
/* Truncate and NUL terminate */
|
||||||
Local1++
|
Local1++
|
||||||
Name (OBUF, Buffer (Local1) {})
|
Name (OBUF, Buffer (Local1) {})
|
||||||
OBUF = Concatenate (IBUF, Zero)
|
OBUF = Concatenate (IBUF, 0)
|
||||||
|
|
||||||
Return (OBUF)
|
Return (OBUF)
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,9 @@ Device (EC0)
|
||||||
Name (_UID, 1)
|
Name (_UID, 1)
|
||||||
Name (_GPE, EC_SCI_GPI)
|
Name (_GPE, EC_SCI_GPI)
|
||||||
Name (_STA, 0xf)
|
Name (_STA, 0xf)
|
||||||
Name (DBUG, Zero)
|
Name (DBUG, 0)
|
||||||
Name (ISSX, Zero) /* Is the EC in S0ix mode? */
|
Name (ISSX, 0) /* Is the EC in S0ix mode? */
|
||||||
Name (UCEP, Zero) /* Is there a pending UCSI event? */
|
Name (UCEP, 0) /* Is there a pending UCSI event? */
|
||||||
|
|
||||||
Name (_CRS, ResourceTemplate() {
|
Name (_CRS, ResourceTemplate() {
|
||||||
IO (Decode16,
|
IO (Decode16,
|
||||||
|
@ -22,7 +22,7 @@ Device (EC0)
|
||||||
})
|
})
|
||||||
|
|
||||||
/* Handle registration of EmbeddedControl region */
|
/* Handle registration of EmbeddedControl region */
|
||||||
Name (EREG, Zero)
|
Name (EREG, 0)
|
||||||
OperationRegion (ERAM, EmbeddedControl, 0, 0xff)
|
OperationRegion (ERAM, EmbeddedControl, 0, 0xff)
|
||||||
Method (_REG, 2)
|
Method (_REG, 2)
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ Device (EC0)
|
||||||
W (CSOS, 1)
|
W (CSOS, 1)
|
||||||
|
|
||||||
/* Tell EC to stop emulating PS/2 mouse */
|
/* Tell EC to stop emulating PS/2 mouse */
|
||||||
W (PS2M, Zero)
|
W (PS2M, 0)
|
||||||
|
|
||||||
/* Enable DPTF support if enabled in devicetree */
|
/* Enable DPTF support if enabled in devicetree */
|
||||||
If (\DPTE == 1) {
|
If (\DPTE == 1) {
|
||||||
|
@ -77,7 +77,7 @@ Device (EC0)
|
||||||
Method (ECRW, 2, Serialized, 2)
|
Method (ECRW, 2, Serialized, 2)
|
||||||
{
|
{
|
||||||
If (!EREG) {
|
If (!EREG) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Local0 = DeRefOf (Arg0[0]) /* Byte offset */
|
Local0 = DeRefOf (Arg0[0]) /* Byte offset */
|
||||||
|
@ -115,7 +115,7 @@ Device (EC0)
|
||||||
}
|
}
|
||||||
BYT1 = Arg1
|
BYT1 = Arg1
|
||||||
}
|
}
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -124,7 +124,7 @@ Device (EC0)
|
||||||
*/
|
*/
|
||||||
Method (R, 1, Serialized, 2)
|
Method (R, 1, Serialized, 2)
|
||||||
{
|
{
|
||||||
Return (ECRW (Arg0, Zero))
|
Return (ECRW (Arg0, 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -155,7 +155,7 @@ Device (EC0)
|
||||||
R (EVT1)
|
R (EVT1)
|
||||||
} Else {
|
} Else {
|
||||||
Printf ("EC Exit S0ix")
|
Printf ("EC Exit S0ix")
|
||||||
W (CSEX, Zero)
|
W (CSEX, 0)
|
||||||
|
|
||||||
/* If UCSI event happened during S0ix send it now. */
|
/* If UCSI event happened during S0ix send it now. */
|
||||||
If (^UCEP == 1) {
|
If (^UCEP == 1) {
|
||||||
|
|
|
@ -139,10 +139,10 @@ Method (_Q66, 0, Serialized)
|
||||||
/* UCSI SCI uses a unique event code */
|
/* UCSI SCI uses a unique event code */
|
||||||
Method (_Q79, 0, Serialized)
|
Method (_Q79, 0, Serialized)
|
||||||
{
|
{
|
||||||
If (ISSX == Zero) {
|
If (ISSX == 0) {
|
||||||
Printf ("EC _Q79 UCSI Event")
|
Printf ("EC _Q79 UCSI Event")
|
||||||
Notify (^UCSI, 0x80)
|
Notify (^UCSI, 0x80)
|
||||||
^UCEP = Zero
|
^UCEP = 0
|
||||||
} Else {
|
} Else {
|
||||||
Printf ("EC _Q79 UCSI Event Masked in S0ix")
|
Printf ("EC _Q79 UCSI Event Masked in S0ix")
|
||||||
^UCEP = 1
|
^UCEP = 1
|
||||||
|
|
|
@ -9,8 +9,8 @@ Method (GPVD, 0, Serialized)
|
||||||
/* Read Privacy Screen Status */
|
/* Read Privacy Screen Status */
|
||||||
Method (GPVX, 0, Serialized)
|
Method (GPVX, 0, Serialized)
|
||||||
{
|
{
|
||||||
If (R (EPST) == Zero) {
|
If (R (EPST) == 0) {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Return (1)
|
Return (1)
|
||||||
|
@ -25,5 +25,5 @@ Method (EPVX, 0, Serialized)
|
||||||
/* Disable Privacy Screen */
|
/* Disable Privacy Screen */
|
||||||
Method (DPVX, 0, Serialized)
|
Method (DPVX, 0, Serialized)
|
||||||
{
|
{
|
||||||
W (EPCT, Zero)
|
W (EPCT, 0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ Device (SIO)
|
||||||
#if CONFIG(DRIVERS_UART_8250IO)
|
#if CONFIG(DRIVERS_UART_8250IO)
|
||||||
Return (0x0f)
|
Return (0x0f)
|
||||||
#else
|
#else
|
||||||
Return (Zero)
|
Return (0)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ Scope (\_SB.PCI0)
|
||||||
#ifdef SIO_EC_ENABLE_PS2K
|
#ifdef SIO_EC_ENABLE_PS2K
|
||||||
Return (0x0f)
|
Return (0x0f)
|
||||||
#else
|
#else
|
||||||
Return (Zero)
|
Return (0)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ Scope (\_SB.PCI0)
|
||||||
#ifdef SIO_EC_ENABLE_PS2M
|
#ifdef SIO_EC_ENABLE_PS2M
|
||||||
Return (0x0f)
|
Return (0x0f)
|
||||||
#else
|
#else
|
||||||
Return (Zero)
|
Return (0)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,12 +69,12 @@ Device (UCSI)
|
||||||
Method (_DSM, 4, Serialized)
|
Method (_DSM, 4, Serialized)
|
||||||
{
|
{
|
||||||
If (Arg0 != ToUUID ("6f8398c2-7ca4-11e4-ad36-631042b5008f")) {
|
If (Arg0 != ToUUID ("6f8398c2-7ca4-11e4-ad36-631042b5008f")) {
|
||||||
Return (Buffer (1) { Zero })
|
Return (Buffer (1) { 0 })
|
||||||
}
|
}
|
||||||
|
|
||||||
Switch (ToInteger (Arg2))
|
Switch (ToInteger (Arg2))
|
||||||
{
|
{
|
||||||
Case (Zero)
|
Case (0)
|
||||||
{
|
{
|
||||||
Return (Buffer (1) { 0x07 })
|
Return (Buffer (1) { 0x07 })
|
||||||
}
|
}
|
||||||
|
@ -138,6 +138,6 @@ Device (UCSI)
|
||||||
^CCI3 = R (^^UCI3)
|
^CCI3 = R (^^UCI3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Return (Buffer (1) { Zero })
|
Return (Buffer (1) { 0 })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ Device (VBTN)
|
||||||
*/
|
*/
|
||||||
Method (VGBS)
|
Method (VGBS)
|
||||||
{
|
{
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
|
|
||||||
/* Check EC orientation for tablet mode flag */
|
/* Check EC orientation for tablet mode flag */
|
||||||
If (R (OTBL)) {
|
If (R (OTBL)) {
|
||||||
|
|
|
@ -319,9 +319,9 @@ Device(EC)
|
||||||
{
|
{
|
||||||
If (Arg0) {
|
If (Arg0) {
|
||||||
FAND = 1
|
FAND = 1
|
||||||
FANA = Zero
|
FANA = 0
|
||||||
} Else {
|
} Else {
|
||||||
FAND = Zero
|
FAND = 0
|
||||||
FANA = 1
|
FANA = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,8 +118,8 @@ External (\PPKG, MethodObj)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
\_SB.PCI0.LPCB.EC.FANE(Zero)
|
\_SB.PCI0.LPCB.EC.FANE(0)
|
||||||
\FLVL = Zero
|
\FLVL = 0
|
||||||
Notify (\_TZ.THM0, NOTIFY_TZ_TRIPPTCHG)
|
Notify (\_TZ.THM0, NOTIFY_TZ_TRIPPTCHG)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,17 +36,17 @@ Device (HKEY)
|
||||||
{
|
{
|
||||||
Local0 = BTN
|
Local0 = BTN
|
||||||
If (Local0 != 0) {
|
If (Local0 != 0) {
|
||||||
BTN = Zero
|
BTN = 0
|
||||||
Local0 += 0x1000
|
Local0 += 0x1000
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
Local0 = BTAB
|
Local0 = BTAB
|
||||||
If (Local0 != 0) {
|
If (Local0 != 0) {
|
||||||
BTAB = Zero
|
BTAB = 0
|
||||||
Local0 += 0x5000
|
Local0 += 0x5000
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Report event */
|
/* Report event */
|
||||||
|
@ -75,8 +75,8 @@ Device (HKEY)
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
EMSK = Zero
|
EMSK = 0
|
||||||
ETAB = Zero
|
ETAB = 0
|
||||||
}
|
}
|
||||||
EN = Arg0
|
EN = Arg0
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* = 2: Secondary battery
|
* = 2: Secondary battery
|
||||||
* = Others: Reserved (0)
|
* = Others: Reserved (0)
|
||||||
* Bit 31-10: Reserved (0)
|
* Bit 31-10: Reserved (0)
|
||||||
* Must be Zero
|
* Must be 0
|
||||||
*
|
*
|
||||||
* Out Parameter:
|
* Out Parameter:
|
||||||
* DWORD
|
* DWORD
|
||||||
|
@ -110,7 +110,7 @@ Method (BCCS, 1, NotSerialized)
|
||||||
* DWORD
|
* DWORD
|
||||||
* Bit 7-0:BatteryID
|
* Bit 7-0:BatteryID
|
||||||
* Bit 31-8: Reserved (0)
|
* Bit 31-8: Reserved (0)
|
||||||
* Must be Zero
|
* Must be 0
|
||||||
*
|
*
|
||||||
* Out Parameter:
|
* Out Parameter:
|
||||||
* DWORD
|
* DWORD
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
Device (BAT0)
|
Device (BAT0)
|
||||||
{
|
{
|
||||||
Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID
|
Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID
|
||||||
Name (_UID, Zero) // _UID: Unique ID
|
Name (_UID, 0) // _UID: Unique ID
|
||||||
Name (_PCL, Package (0x01) // _PCL: Power Consumer List
|
Name (_PCL, Package (0x01) // _PCL: Power Consumer List
|
||||||
{
|
{
|
||||||
_SB
|
_SB
|
||||||
})
|
})
|
||||||
Name (BFCC, Zero)
|
Name (BFCC, 0)
|
||||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||||
{
|
{
|
||||||
If (^^PCI0.LPCB.EC0.ECOK)
|
If (^^PCI0.LPCB.EC0.ECOK)
|
||||||
|
@ -37,8 +37,8 @@ Device (BAT0)
|
||||||
0xFFFFFFFF, // 2 - Last Full Charge Capacity
|
0xFFFFFFFF, // 2 - Last Full Charge Capacity
|
||||||
1, // 3 - Battery Technology
|
1, // 3 - Battery Technology
|
||||||
BATTERY_DESIGN_VOLTAGE_MV, // 4 - Design Voltage
|
BATTERY_DESIGN_VOLTAGE_MV, // 4 - Design Voltage
|
||||||
Zero, // 5 - Design Capacity of Warning
|
0, // 5 - Design Capacity of Warning
|
||||||
Zero, // 6 - Design Capacity of Low
|
0, // 6 - Design Capacity of Low
|
||||||
0x40, // 7 - Battery Capacity Granularity 1
|
0x40, // 7 - Battery Capacity Granularity 1
|
||||||
0x40, // 8 - Battery Capacity Granularity 2
|
0x40, // 8 - Battery Capacity Granularity 2
|
||||||
"BAT", // 9 - Model Number
|
"BAT", // 9 - Model Number
|
||||||
|
@ -55,7 +55,7 @@ Device (BAT0)
|
||||||
PBIF [10] = " "
|
PBIF [10] = " "
|
||||||
PBIF [11] = " "
|
PBIF [11] = " "
|
||||||
PBIF [12] = " "
|
PBIF [12] = " "
|
||||||
BFCC = Zero
|
BFCC = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (UPBI, 0, NotSerialized)
|
Method (UPBI, 0, NotSerialized)
|
||||||
|
@ -100,14 +100,14 @@ Device (BAT0)
|
||||||
|
|
||||||
Name (PBST, Package (0x04)
|
Name (PBST, Package (0x04)
|
||||||
{
|
{
|
||||||
Zero, // 0 - Battery state
|
0, // 0 - Battery state
|
||||||
0xFFFFFFFF, // 1 - Battery present rate
|
0xFFFFFFFF, // 1 - Battery present rate
|
||||||
0xFFFFFFFF, // 2 - Battery remaining capacity
|
0xFFFFFFFF, // 2 - Battery remaining capacity
|
||||||
BATTERY_DESIGN_VOLTAGE_MV // 3 - Battery present voltage
|
BATTERY_DESIGN_VOLTAGE_MV // 3 - Battery present voltage
|
||||||
})
|
})
|
||||||
Method (IVBS, 0, NotSerialized)
|
Method (IVBS, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
PBST [0] = Zero
|
PBST [0] = 0
|
||||||
PBST [1] = 0xFFFFFFFF
|
PBST [1] = 0xFFFFFFFF
|
||||||
PBST [2] = 0xFFFFFFFF
|
PBST [2] = 0xFFFFFFFF
|
||||||
PBST [3] = 0x2710
|
PBST [3] = 0x2710
|
||||||
|
@ -117,8 +117,8 @@ Device (BAT0)
|
||||||
{
|
{
|
||||||
If (^^PCI0.LPCB.EC0.BAT0)
|
If (^^PCI0.LPCB.EC0.BAT0)
|
||||||
{
|
{
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
If (^^AC.ACFG)
|
If (^^AC.ACFG)
|
||||||
{
|
{
|
||||||
If (((^^PCI0.LPCB.EC0.BST0 & 0x02) == 0x02))
|
If (((^^PCI0.LPCB.EC0.BST0 & 0x02) == 0x02))
|
||||||
|
|
|
@ -31,7 +31,7 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
|
|
||||||
#include "ec_ram.asl"
|
#include "ec_ram.asl"
|
||||||
|
|
||||||
Name (ECOK, Zero)
|
Name (ECOK, 0)
|
||||||
Method (_REG, 2, Serialized) // _REG: Region Availability
|
Method (_REG, 2, Serialized) // _REG: Region Availability
|
||||||
{
|
{
|
||||||
Printf ("EC: _REG %o %o", ToHexString(Arg0), ToHexString(Arg1))
|
Printf ("EC: _REG %o %o", ToHexString(Arg0), ToHexString(Arg1))
|
||||||
|
@ -49,8 +49,8 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
^^^^BAT0.UPBS()
|
^^^^BAT0.UPBS()
|
||||||
|
|
||||||
// Notify of changes
|
// Notify of changes
|
||||||
Notify(^^^^AC, Zero)
|
Notify(^^^^AC, 0)
|
||||||
Notify(^^^^BAT0, Zero)
|
Notify(^^^^BAT0, 0)
|
||||||
|
|
||||||
PNOT ()
|
PNOT ()
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
Printf ("EC: PTS: %o", ToHexString(Arg0))
|
Printf ("EC: PTS: %o", ToHexString(Arg0))
|
||||||
If (ECOK) {
|
If (ECOK) {
|
||||||
// Clear wake cause
|
// Clear wake cause
|
||||||
WFNO = Zero
|
WFNO = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
^^^^BAT0.UPBS()
|
^^^^BAT0.UPBS()
|
||||||
|
|
||||||
// Notify of changes
|
// Notify of changes
|
||||||
Notify(^^^^AC, Zero)
|
Notify(^^^^AC, 0)
|
||||||
Notify(^^^^BAT0, Zero)
|
Notify(^^^^BAT0, 0)
|
||||||
|
|
||||||
// Reset Librem EC Device
|
// Reset Librem EC Device
|
||||||
^^^^LIEC.RSET()
|
^^^^LIEC.RSET()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
|
OperationRegion (ERAM, EmbeddedControl, 0, 0xFF)
|
||||||
Field (ERAM, ByteAcc, Lock, Preserve)
|
Field (ERAM, ByteAcc, Lock, Preserve)
|
||||||
{
|
{
|
||||||
Offset (0x03),
|
Offset (0x03),
|
||||||
|
|
|
@ -3,19 +3,19 @@
|
||||||
Device (HIDD)
|
Device (HIDD)
|
||||||
{
|
{
|
||||||
Name (_HID, "INT33D5")
|
Name (_HID, "INT33D5")
|
||||||
Name (HBSY, Zero)
|
Name (HBSY, 0)
|
||||||
Name (HIDX, Zero)
|
Name (HIDX, 0)
|
||||||
Name (HRDY, Zero)
|
Name (HRDY, 0)
|
||||||
|
|
||||||
Method (HDEM, 0, Serialized)
|
Method (HDEM, 0, Serialized)
|
||||||
{
|
{
|
||||||
HBSY = Zero
|
HBSY = 0
|
||||||
Return (HIDX)
|
Return (HIDX)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (HDMM, 0, Serialized)
|
Method (HDMM, 0, Serialized)
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (HDSM, 1, Serialized)
|
Method (HDSM, 1, Serialized)
|
||||||
|
@ -29,7 +29,7 @@ Device (HIDD)
|
||||||
HIDX = Arg0
|
HIDX = Arg0
|
||||||
|
|
||||||
Notify (HIDD, 0xC0)
|
Notify (HIDD, 0xC0)
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
While ((Local0 < 0xFA) && HBSY)
|
While ((Local0 < 0xFA) && HBSY)
|
||||||
{
|
{
|
||||||
Sleep (0x04)
|
Sleep (0x04)
|
||||||
|
@ -38,13 +38,13 @@ Device (HIDD)
|
||||||
|
|
||||||
If (HBSY == 1)
|
If (HBSY == 1)
|
||||||
{
|
{
|
||||||
HBSY = Zero
|
HBSY = 0
|
||||||
HIDX = Zero
|
HIDX = 0
|
||||||
Return (1)
|
Return (1)
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,7 @@ Device (LIEC) {
|
||||||
^^PCI0.LPCB.EC0.FDAT = 1
|
^^PCI0.LPCB.EC0.FDAT = 1
|
||||||
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
||||||
Local0 = ^^PCI0.LPCB.EC0.FBUF
|
Local0 = ^^PCI0.LPCB.EC0.FBUF
|
||||||
^^PCI0.LPCB.EC0.FCMD = Zero
|
^^PCI0.LPCB.EC0.FCMD = 0
|
||||||
}
|
}
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ Device (LIEC) {
|
||||||
// Set KB Led
|
// Set KB Led
|
||||||
Method (SKBL, 1, Serialized) {
|
Method (SKBL, 1, Serialized) {
|
||||||
If (^^PCI0.LPCB.EC0.ECOK) {
|
If (^^PCI0.LPCB.EC0.ECOK) {
|
||||||
^^PCI0.LPCB.EC0.FDAT = Zero
|
^^PCI0.LPCB.EC0.FDAT = 0
|
||||||
^^PCI0.LPCB.EC0.FBUF = Arg0
|
^^PCI0.LPCB.EC0.FBUF = Arg0
|
||||||
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ Device (BAT)
|
||||||
0xFFFFFFFF, /* 0x02: Battery Remaining Capacity */
|
0xFFFFFFFF, /* 0x02: Battery Remaining Capacity */
|
||||||
0xFFFFFFFF, /* 0x03: Battery Present Voltage */
|
0xFFFFFFFF, /* 0x03: Battery Present Voltage */
|
||||||
})
|
})
|
||||||
Name (BSTP, Zero)
|
Name (BSTP, 0)
|
||||||
|
|
||||||
/* Battery Capacity warning at 15% */
|
/* Battery Capacity warning at 15% */
|
||||||
Name (DWRN, 15)
|
Name (DWRN, 15)
|
||||||
|
|
|
@ -36,7 +36,7 @@ Device (EC)
|
||||||
IO (Decode16, 0x66, 0x66, 0, 1)
|
IO (Decode16, 0x66, 0x66, 0, 1)
|
||||||
})
|
})
|
||||||
|
|
||||||
OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
|
OperationRegion (ERAM, EmbeddedControl, 0, 0xFF)
|
||||||
Field (ERAM, ByteAcc, Lock, Preserve)
|
Field (ERAM, ByteAcc, Lock, Preserve)
|
||||||
{
|
{
|
||||||
Offset (0x13),
|
Offset (0x13),
|
||||||
|
|
|
@ -215,7 +215,7 @@ Device (EC0)
|
||||||
Method (_Q11, 0, NotSerialized)
|
Method (_Q11, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Printf ("AC Detach Event 0x11")
|
Printf ("AC Detach Event 0x11")
|
||||||
\PWRS = Zero
|
\PWRS = 0
|
||||||
Notify (AC, 0x80)
|
Notify (AC, 0x80)
|
||||||
Notify (BATX, 0x80)
|
Notify (BATX, 0x80)
|
||||||
\PNOT ()
|
\PNOT ()
|
||||||
|
|
|
@ -13,7 +13,7 @@ Device (BATX)
|
||||||
// Battery X Information
|
// Battery X Information
|
||||||
// Battery X Status
|
// Battery X Status
|
||||||
//
|
//
|
||||||
Name (BXST, Zero)
|
Name (BXST, 0)
|
||||||
|
|
||||||
//
|
//
|
||||||
// Default Static Battery Information
|
// Default Static Battery Information
|
||||||
|
@ -55,7 +55,7 @@ Device (BATX)
|
||||||
// Method to disable full battery workaround
|
// Method to disable full battery workaround
|
||||||
Method (BFWD)
|
Method (BFWD)
|
||||||
{
|
{
|
||||||
BFWK = Zero
|
BFWK = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method to wait for EC to be ready after changing the Battery Info ID
|
// Method to wait for EC to be ready after changing the Battery Info ID
|
||||||
|
@ -111,7 +111,7 @@ Device (BATX)
|
||||||
//
|
//
|
||||||
// Information ID 0 -
|
// Information ID 0 -
|
||||||
//
|
//
|
||||||
HIID = Zero
|
HIID = 0
|
||||||
WAEC ()
|
WAEC ()
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -228,7 +228,7 @@ Device (BATX)
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ Device (BATX)
|
||||||
Local0 |= 4
|
Local0 |= 4
|
||||||
}
|
}
|
||||||
|
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
|
|
||||||
// Check if AC is present
|
// Check if AC is present
|
||||||
If (ACPW)
|
If (ACPW)
|
||||||
|
@ -270,7 +270,7 @@ Device (BATX)
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
// Error
|
// Error
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
|
@ -278,7 +278,7 @@ Device (BATX)
|
||||||
If (!(Local0 & 2))
|
If (!(Local0 & 2))
|
||||||
{
|
{
|
||||||
// Battery is not charging
|
// Battery is not charging
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -602,7 +602,7 @@ Device (EC0)
|
||||||
// AC Power Removed
|
// AC Power Removed
|
||||||
Method (_Q27, 0, NotSerialized)
|
Method (_Q27, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
\PWRS = Zero
|
\PWRS = 0
|
||||||
Notify (AC, 0x80)
|
Notify (AC, 0x80)
|
||||||
\PNOT ()
|
\PNOT ()
|
||||||
}
|
}
|
||||||
|
@ -617,7 +617,7 @@ Device (EC0)
|
||||||
// LID Close (Suspend Trigger)
|
// LID Close (Suspend Trigger)
|
||||||
Method (_Q2B)
|
Method (_Q2B)
|
||||||
{
|
{
|
||||||
\LIDS = Zero
|
\LIDS = 0
|
||||||
Notify (\_SB.LID0, 0x80)
|
Notify (\_SB.LID0, 0x80)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ Device (BAT0)
|
||||||
0xFFFFFFFF, // Battery Remaining Capacity
|
0xFFFFFFFF, // Battery Remaining Capacity
|
||||||
0xFFFFFFFF, // Battery Present Voltage
|
0xFFFFFFFF, // Battery Present Voltage
|
||||||
})
|
})
|
||||||
Name (BSTP, Zero)
|
Name (BSTP, 0)
|
||||||
|
|
||||||
// Workaround for full battery status, enabled by default
|
// Workaround for full battery status, enabled by default
|
||||||
Name (BFWK, 1)
|
Name (BFWK, 1)
|
||||||
|
@ -53,7 +53,7 @@ Device (BAT0)
|
||||||
// Method to disable full battery workaround
|
// Method to disable full battery workaround
|
||||||
Method (BFWD)
|
Method (BFWD)
|
||||||
{
|
{
|
||||||
BFWK = Zero
|
BFWK = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Swap bytes in a word
|
// Swap bytes in a word
|
||||||
|
@ -106,7 +106,7 @@ Device (BAT0)
|
||||||
|
|
||||||
// Get battery state from EC
|
// Get battery state from EC
|
||||||
Local0 = BTST
|
Local0 = BTST
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
|
|
||||||
// Check if AC is present
|
// Check if AC is present
|
||||||
If (ACEX) {
|
If (ACEX) {
|
||||||
|
|
|
@ -78,7 +78,7 @@ Device (EC0)
|
||||||
If (\FLVL <= 0) {
|
If (\FLVL <= 0) {
|
||||||
Return (1)
|
Return (1)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
|
@ -90,7 +90,7 @@ Device (EC0)
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (FCOS) {
|
If (FCOS) {
|
||||||
FSL0 = Zero
|
FSL0 = 0
|
||||||
\FLVL = 1
|
\FLVL = 1
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ Device (EC0)
|
||||||
If (\FLVL <= 1) {
|
If (\FLVL <= 1) {
|
||||||
Return (1)
|
Return (1)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
|
@ -115,7 +115,7 @@ Device (EC0)
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (FCOS) {
|
If (FCOS) {
|
||||||
FSL1 = Zero
|
FSL1 = 0
|
||||||
\FLVL = 2
|
\FLVL = 2
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ Device (EC0)
|
||||||
If (\FLVL <= 2) {
|
If (\FLVL <= 2) {
|
||||||
Return (1)
|
Return (1)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
|
@ -140,7 +140,7 @@ Device (EC0)
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (FCOS) {
|
If (FCOS) {
|
||||||
FSL2 = Zero
|
FSL2 = 0
|
||||||
\FLVL = 3
|
\FLVL = 3
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ Device (EC0)
|
||||||
If (\FLVL <= 3) {
|
If (\FLVL <= 3) {
|
||||||
Return (1)
|
Return (1)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
|
@ -165,7 +165,7 @@ Device (EC0)
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (FCOS) {
|
If (FCOS) {
|
||||||
FSL3 = Zero
|
FSL3 = 0
|
||||||
\FLVL = 4
|
\FLVL = 4
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ Device (EC0)
|
||||||
If (\FLVL <= 4) {
|
If (\FLVL <= 4) {
|
||||||
Return (1)
|
Return (1)
|
||||||
} Else {
|
} Else {
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Method (_ON) {
|
Method (_ON) {
|
||||||
|
@ -190,7 +190,7 @@ Device (EC0)
|
||||||
}
|
}
|
||||||
Method (_OFF) {
|
Method (_OFF) {
|
||||||
If (FCOS) {
|
If (FCOS) {
|
||||||
FSL4 = Zero
|
FSL4 = 0
|
||||||
\FLVL = 5
|
\FLVL = 5
|
||||||
Notify (\_TZ.THRM, 0x81)
|
Notify (\_TZ.THRM, 0x81)
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ Device (EC0)
|
||||||
// AC Power Removed
|
// AC Power Removed
|
||||||
Method (_Q52, 0, NotSerialized)
|
Method (_Q52, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
\PWRS = Zero
|
\PWRS = 0
|
||||||
Notify (AC, 0x80)
|
Notify (AC, 0x80)
|
||||||
\PNOT ()
|
\PNOT ()
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
Device (BAT0)
|
Device (BAT0)
|
||||||
{
|
{
|
||||||
Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID
|
Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID
|
||||||
Name (_UID, Zero) // _UID: Unique ID
|
Name (_UID, 0) // _UID: Unique ID
|
||||||
Name (_PCL, Package (0x01) // _PCL: Power Consumer List
|
Name (_PCL, Package (0x01) // _PCL: Power Consumer List
|
||||||
{
|
{
|
||||||
_SB
|
_SB
|
||||||
})
|
})
|
||||||
Name (BFCC, Zero)
|
Name (BFCC, 0)
|
||||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||||
{
|
{
|
||||||
If (^^PCI0.LPCB.EC0.ECOK)
|
If (^^PCI0.LPCB.EC0.ECOK)
|
||||||
|
@ -35,8 +35,8 @@ Device (BAT0)
|
||||||
0xFFFFFFFF, // 2 - Last Full Charge Capacity
|
0xFFFFFFFF, // 2 - Last Full Charge Capacity
|
||||||
1, // 3 - Battery Technology
|
1, // 3 - Battery Technology
|
||||||
0xFFFFFFFF, // 4 - Design Voltage
|
0xFFFFFFFF, // 4 - Design Voltage
|
||||||
Zero, // 5 - Design Capacity of Warning
|
0, // 5 - Design Capacity of Warning
|
||||||
Zero, // 6 - Design Capacity of Low
|
0, // 6 - Design Capacity of Low
|
||||||
0x40, // 7 - Battery Capacity Granularity 1
|
0x40, // 7 - Battery Capacity Granularity 1
|
||||||
0x40, // 8 - Battery Capacity Granularity 2
|
0x40, // 8 - Battery Capacity Granularity 2
|
||||||
" ", // 9 - Model Number
|
" ", // 9 - Model Number
|
||||||
|
@ -53,7 +53,7 @@ Device (BAT0)
|
||||||
PBIF [10] = " "
|
PBIF [10] = " "
|
||||||
PBIF [11] = " "
|
PBIF [11] = " "
|
||||||
PBIF [12] = " "
|
PBIF [12] = " "
|
||||||
BFCC = Zero
|
BFCC = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (UPBI, 0, NotSerialized)
|
Method (UPBI, 0, NotSerialized)
|
||||||
|
@ -176,14 +176,14 @@ Device (BAT0)
|
||||||
|
|
||||||
Name (PBST, Package (0x04)
|
Name (PBST, Package (0x04)
|
||||||
{
|
{
|
||||||
Zero, // 0 - Battery state
|
0, // 0 - Battery state
|
||||||
0xFFFFFFFF, // 1 - Battery present rate
|
0xFFFFFFFF, // 1 - Battery present rate
|
||||||
0xFFFFFFFF, // 2 - Battery remaining capacity
|
0xFFFFFFFF, // 2 - Battery remaining capacity
|
||||||
0xFFFFFFFF // 3 - Battery present voltage
|
0xFFFFFFFF // 3 - Battery present voltage
|
||||||
})
|
})
|
||||||
Method (IVBS, 0, NotSerialized)
|
Method (IVBS, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
PBST [0] = Zero
|
PBST [0] = 0
|
||||||
PBST [1] = 0xFFFFFFFF
|
PBST [1] = 0xFFFFFFFF
|
||||||
PBST [2] = 0xFFFFFFFF
|
PBST [2] = 0xFFFFFFFF
|
||||||
PBST [3] = 0xFFFFFFFF
|
PBST [3] = 0xFFFFFFFF
|
||||||
|
@ -193,8 +193,8 @@ Device (BAT0)
|
||||||
{
|
{
|
||||||
If (^^PCI0.LPCB.EC0.BAT0)
|
If (^^PCI0.LPCB.EC0.BAT0)
|
||||||
{
|
{
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
Local1 = Zero
|
Local1 = 0
|
||||||
If (^^AC.ACFG)
|
If (^^AC.ACFG)
|
||||||
{
|
{
|
||||||
If (((^^PCI0.LPCB.EC0.BST0 & 0x02) == 0x02))
|
If (((^^PCI0.LPCB.EC0.BST0 & 0x02) == 0x02))
|
||||||
|
|
|
@ -31,7 +31,7 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
|
|
||||||
#include "ec_ram.asl"
|
#include "ec_ram.asl"
|
||||||
|
|
||||||
Name (ECOK, Zero)
|
Name (ECOK, 0)
|
||||||
Method (_REG, 2, Serialized) // _REG: Region Availability
|
Method (_REG, 2, Serialized) // _REG: Region Availability
|
||||||
{
|
{
|
||||||
Debug = Concatenate("EC: _REG", Concatenate(ToHexString(Arg0), Concatenate(" ", ToHexString(Arg1))))
|
Debug = Concatenate("EC: _REG", Concatenate(ToHexString(Arg0), Concatenate(" ", ToHexString(Arg1))))
|
||||||
|
@ -49,8 +49,8 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
^^^^BAT0.UPBS()
|
^^^^BAT0.UPBS()
|
||||||
|
|
||||||
// Notify of changes
|
// Notify of changes
|
||||||
Notify(^^^^AC, Zero)
|
Notify(^^^^AC, 0)
|
||||||
Notify(^^^^BAT0, Zero)
|
Notify(^^^^BAT0, 0)
|
||||||
|
|
||||||
PNOT ()
|
PNOT ()
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Name (S3OS, Zero)
|
Name (S3OS, 0)
|
||||||
Method (PTS, 1, Serialized) {
|
Method (PTS, 1, Serialized) {
|
||||||
Debug = Concatenate("EC: PTS: ", ToHexString(Arg0))
|
Debug = Concatenate("EC: PTS: ", ToHexString(Arg0))
|
||||||
If (ECOK) {
|
If (ECOK) {
|
||||||
|
@ -70,7 +70,7 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
S3OS = ECOS
|
S3OS = ECOS
|
||||||
|
|
||||||
// Clear wake cause
|
// Clear wake cause
|
||||||
WFNO = Zero
|
WFNO = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,8 +88,8 @@ Device (\_SB.PCI0.LPCB.EC0)
|
||||||
^^^^BAT0.UPBS()
|
^^^^BAT0.UPBS()
|
||||||
|
|
||||||
// Notify of changes
|
// Notify of changes
|
||||||
Notify(^^^^AC, Zero)
|
Notify(^^^^AC, 0)
|
||||||
Notify(^^^^BAT0, Zero)
|
Notify(^^^^BAT0, 0)
|
||||||
|
|
||||||
// Reset System76 Device
|
// Reset System76 Device
|
||||||
^^^^S76D.RSET()
|
^^^^S76D.RSET()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
|
|
||||||
OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
|
OperationRegion (ERAM, EmbeddedControl, 0, 0xFF)
|
||||||
Field (ERAM, ByteAcc, Lock, Preserve)
|
Field (ERAM, ByteAcc, Lock, Preserve)
|
||||||
{
|
{
|
||||||
Offset (0x03),
|
Offset (0x03),
|
||||||
|
|
|
@ -3,19 +3,19 @@
|
||||||
Device (HIDD)
|
Device (HIDD)
|
||||||
{
|
{
|
||||||
Name (_HID, "INT33D5")
|
Name (_HID, "INT33D5")
|
||||||
Name (HBSY, Zero)
|
Name (HBSY, 0)
|
||||||
Name (HIDX, Zero)
|
Name (HIDX, 0)
|
||||||
Name (HRDY, Zero)
|
Name (HRDY, 0)
|
||||||
|
|
||||||
Method (HDEM, 0, Serialized)
|
Method (HDEM, 0, Serialized)
|
||||||
{
|
{
|
||||||
HBSY = Zero
|
HBSY = 0
|
||||||
Return (HIDX)
|
Return (HIDX)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (HDMM, 0, Serialized)
|
Method (HDMM, 0, Serialized)
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (HDSM, 1, Serialized)
|
Method (HDSM, 1, Serialized)
|
||||||
|
@ -29,7 +29,7 @@ Device (HIDD)
|
||||||
HIDX = Arg0
|
HIDX = Arg0
|
||||||
|
|
||||||
Notify (HIDD, 0xC0)
|
Notify (HIDD, 0xC0)
|
||||||
Local0 = Zero
|
Local0 = 0
|
||||||
While ((Local0 < 0xFA) && HBSY)
|
While ((Local0 < 0xFA) && HBSY)
|
||||||
{
|
{
|
||||||
Sleep (0x04)
|
Sleep (0x04)
|
||||||
|
@ -38,13 +38,13 @@ Device (HIDD)
|
||||||
|
|
||||||
If (HBSY == 1)
|
If (HBSY == 1)
|
||||||
{
|
{
|
||||||
HBSY = Zero
|
HBSY = 0
|
||||||
HIDX = Zero
|
HIDX = 0
|
||||||
Return (1)
|
Return (1)
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ Device (S76D) {
|
||||||
^^PCI0.LPCB.EC0.FDAT = 1
|
^^PCI0.LPCB.EC0.FDAT = 1
|
||||||
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
||||||
Local0 = ^^PCI0.LPCB.EC0.FBUF
|
Local0 = ^^PCI0.LPCB.EC0.FBUF
|
||||||
^^PCI0.LPCB.EC0.FCMD = Zero
|
^^PCI0.LPCB.EC0.FCMD = 0
|
||||||
}
|
}
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ Device (S76D) {
|
||||||
// Set KB Led
|
// Set KB Led
|
||||||
Method (SKBL, 1, Serialized) {
|
Method (SKBL, 1, Serialized) {
|
||||||
If (^^PCI0.LPCB.EC0.ECOK) {
|
If (^^PCI0.LPCB.EC0.ECOK) {
|
||||||
^^PCI0.LPCB.EC0.FDAT = Zero
|
^^PCI0.LPCB.EC0.FDAT = 0
|
||||||
^^PCI0.LPCB.EC0.FBUF = Arg0
|
^^PCI0.LPCB.EC0.FBUF = Arg0
|
||||||
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
^^PCI0.LPCB.EC0.FCMD = 0xCA
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
#define PNP_GENERIC_DIS(LDN) \
|
#define PNP_GENERIC_DIS(LDN) \
|
||||||
ENTER_CONFIG_MODE (LDN)\
|
ENTER_CONFIG_MODE (LDN)\
|
||||||
PNP_DEVICE_ACTIVE = Zero \
|
PNP_DEVICE_ACTIVE = 0 \
|
||||||
EXIT_CONFIG_MODE ()\
|
EXIT_CONFIG_MODE ()\
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ Device (SUPERIO_ID(KBD, SUPERIO_KBC_LDN)) {
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (SUPERIO_KBC_LDN)
|
ENTER_CONFIG_MODE (SUPERIO_KBC_LDN)
|
||||||
PNP_DEVICE_ACTIVE = Zero
|
PNP_DEVICE_ACTIVE = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
#if defined(SUPERIO_KBC_PS2LDN)
|
#if defined(SUPERIO_KBC_PS2LDN)
|
||||||
Notify (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN), 1)
|
Notify (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN), 1)
|
||||||
|
@ -166,7 +166,7 @@ Device (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN)) {
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (SUPERIO_KBC_PS2LDN)
|
ENTER_CONFIG_MODE (SUPERIO_KBC_PS2LDN)
|
||||||
PNP_DEVICE_ACTIVE = Zero
|
PNP_DEVICE_ACTIVE = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ Method (DSTA, 1, NotSerialized)
|
||||||
Local0 = PNP_DEVICE_ACTIVE
|
Local0 = PNP_DEVICE_ACTIVE
|
||||||
If (Local0 == 0xFF)
|
If (Local0 == 0xFF)
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Local0 &= 1
|
Local0 &= 1
|
||||||
|
@ -60,7 +60,7 @@ Method (DSTA, 1, NotSerialized)
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
|
@ -154,7 +154,7 @@ Method (GIOB, 1, NotSerialized)
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read IRQ resource */
|
/* Read IRQ resource */
|
||||||
|
@ -239,7 +239,7 @@ Method (SIRQ, 2, NotSerialized)
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,12 +270,12 @@ Method (SDMA, 2, NotSerialized)
|
||||||
If (Local0 != Local1)
|
If (Local0 != Local1)
|
||||||
{
|
{
|
||||||
PNP_ADDR_REG = Local3
|
PNP_ADDR_REG = Local3
|
||||||
PNP_DATA_REG = Zero
|
PNP_DATA_REG = 0
|
||||||
Break
|
Break
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ Method (SDMA, 2, NotSerialized)
|
||||||
Local0 += 0x51
|
Local0 += 0x51
|
||||||
PNP_ADDR_REG = Local0
|
PNP_ADDR_REG = Local0
|
||||||
PNP_DATA_REG = (0x80 | CGLD (Arg0))
|
PNP_DATA_REG = (0x80 | CGLD (Arg0))
|
||||||
Return (Zero)
|
Return (0)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Device Current Resource Settings */
|
/* Device Current Resource Settings */
|
||||||
|
@ -299,9 +299,9 @@ Method (DCRS, 2, NotSerialized)
|
||||||
IO12 = IO11
|
IO12 = IO11
|
||||||
LEN1 = 0x08
|
LEN1 = 0x08
|
||||||
IRQM = GIRQ (Arg0)
|
IRQM = GIRQ (Arg0)
|
||||||
If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero))
|
If ((GDMA (Arg0) > 0x03) || (Arg1 == 0))
|
||||||
{
|
{
|
||||||
DMAM = Zero
|
DMAM = 0
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
@ -319,9 +319,9 @@ Method (DCRS, 2, NotSerialized)
|
||||||
IO12 = IO11
|
IO12 = IO11
|
||||||
LEN1 = 0x08
|
LEN1 = 0x08
|
||||||
IRQM = GIRQ (Arg0)
|
IRQM = GIRQ (Arg0)
|
||||||
If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero))
|
If ((GDMA (Arg0) > 0x03) || (Arg1 == 0))
|
||||||
{
|
{
|
||||||
DMAM = Zero
|
DMAM = 0
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
@ -353,9 +353,9 @@ Method (DCRS, 2, NotSerialized)
|
||||||
}
|
}
|
||||||
|
|
||||||
IRQE = GIRQ (Arg0)
|
IRQE = GIRQ (Arg0)
|
||||||
If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero))
|
If ((GDMA (Arg0) > 0x03) || (Arg1 == 0))
|
||||||
{
|
{
|
||||||
DMAM = Zero
|
DMAM = 0
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
@ -395,9 +395,9 @@ Method (DCRS, 2, NotSerialized)
|
||||||
IO32 = IO31 /* \_SB_.PCI0.LPCB.SIO1.IO31 */
|
IO32 = IO31 /* \_SB_.PCI0.LPCB.SIO1.IO31 */
|
||||||
LEN3 = 1
|
LEN3 = 1
|
||||||
IRQE = GIRQ (Arg0)
|
IRQE = GIRQ (Arg0)
|
||||||
If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero))
|
If ((GDMA (Arg0) > 0x03) || (Arg1 == 0))
|
||||||
{
|
{
|
||||||
DMAM = Zero
|
DMAM = 0
|
||||||
}
|
}
|
||||||
Else
|
Else
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,7 +56,7 @@ Device(SIO1) {
|
||||||
Name (IOST, 0x0001) /* IO decoding status */
|
Name (IOST, 0x0001) /* IO decoding status */
|
||||||
Name (MSFG, 1) /* Mouse wake config */
|
Name (MSFG, 1) /* Mouse wake config */
|
||||||
Name (KBFG, 1) /* Keyboard wake config */
|
Name (KBFG, 1) /* Keyboard wake config */
|
||||||
Name (PMFG, Zero) /* Wake config */
|
Name (PMFG, 0) /* Wake config */
|
||||||
|
|
||||||
/* SuperIO configuration ports */
|
/* SuperIO configuration ports */
|
||||||
OperationRegion (CREG, SystemIO, SUPERIO_PNP_BASE, 0x02)
|
OperationRegion (CREG, SystemIO, SUPERIO_PNP_BASE, 0x02)
|
||||||
|
@ -316,7 +316,7 @@ Device(SIO1) {
|
||||||
While (KRDY) {}
|
While (KRDY) {}
|
||||||
KP60 = 0xED
|
KP60 = 0xED
|
||||||
While (KRDY) {}
|
While (KRDY) {}
|
||||||
KP60 = Zero
|
KP60 = 0
|
||||||
While (KRDY) {}
|
While (KRDY) {}
|
||||||
KP60 = 0xF4
|
KP60 = 0xF4
|
||||||
Sleep (1)
|
Sleep (1)
|
||||||
|
@ -383,17 +383,17 @@ Device(SIO1) {
|
||||||
Name (_UID, SUPERIO_UID(SER, SUPERIO_UARTA_LDN))
|
Name (_UID, SUPERIO_UID(SER, SUPERIO_UARTA_LDN))
|
||||||
Method (_STA, 0, NotSerialized)
|
Method (_STA, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (DSTA (Zero))
|
Return (DSTA (0))
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_DIS, 0, NotSerialized)
|
Method (_DIS, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
DCNT (Zero, Zero)
|
DCNT (0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_CRS, 0, NotSerialized)
|
Method (_CRS, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (DCRS (Zero, Zero))
|
Return (DCRS (0, 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_SRS, 1, NotSerialized)
|
Method (_SRS, 1, NotSerialized)
|
||||||
|
@ -402,9 +402,9 @@ Device(SIO1) {
|
||||||
CreateWordField (Arg0, 0x09, IRQM)
|
CreateWordField (Arg0, 0x09, IRQM)
|
||||||
ENTER_CONFIG_MODE (SUPERIO_LPC_LDN)
|
ENTER_CONFIG_MODE (SUPERIO_LPC_LDN)
|
||||||
STIO (0x6A, IO11)
|
STIO (0x6A, IO11)
|
||||||
SIRQ (Zero, IRQM)
|
SIRQ (0, IRQM)
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
DCNT (Zero, 1)
|
DCNT (0, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
Name (_PRS, ResourceTemplate ()
|
Name (_PRS, ResourceTemplate ()
|
||||||
|
@ -481,12 +481,12 @@ Device(SIO1) {
|
||||||
|
|
||||||
Method (_DIS, 0, NotSerialized)
|
Method (_DIS, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
DCNT (1, Zero)
|
DCNT (1, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_CRS, 0, NotSerialized)
|
Method (_CRS, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (DCRS (1, Zero))
|
Return (DCRS (1, 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_SRS, 1, NotSerialized)
|
Method (_SRS, 1, NotSerialized)
|
||||||
|
|
|
@ -179,7 +179,7 @@ Device(SIO) {
|
||||||
/* PM: Switch to D0 by setting IPD low */
|
/* PM: Switch to D0 by setting IPD low */
|
||||||
Method (_PS0) {
|
Method (_PS0) {
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
IPD = Zero
|
IPD = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,14 +233,14 @@ Device(SIO) {
|
||||||
/* Enable power saving mode */
|
/* Enable power saving mode */
|
||||||
Method (_PS3) {
|
Method (_PS3) {
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
FDPW = Zero
|
FDPW = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (0)
|
ENTER_CONFIG_MODE (0)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -343,25 +343,25 @@ Device(SIO) {
|
||||||
Sleep(0x64)
|
Sleep(0x64)
|
||||||
If (SIFR) { FD1 = 1 }
|
If (SIFR) { FD1 = 1 }
|
||||||
|
|
||||||
ACT1 = Zero
|
ACT1 = 0
|
||||||
ACT2 = 1
|
ACT2 = 1
|
||||||
SELE = 1
|
SELE = 1
|
||||||
Sleep(0x64)
|
Sleep(0x64)
|
||||||
If (SIFR) { FD2 = 1 }
|
If (SIFR) { FD2 = 1 }
|
||||||
|
|
||||||
ACT2 = Zero
|
ACT2 = 0
|
||||||
ACT3 = 1
|
ACT3 = 1
|
||||||
SELE = 2
|
SELE = 2
|
||||||
Sleep(0x64)
|
Sleep(0x64)
|
||||||
If (SIFR) { FD3 = 1 }
|
If (SIFR) { FD3 = 1 }
|
||||||
|
|
||||||
ACT3 = Zero
|
ACT3 = 0
|
||||||
ACT4 = 1
|
ACT4 = 1
|
||||||
SELE = 3
|
SELE = 3
|
||||||
Sleep(0x64)
|
Sleep(0x64)
|
||||||
If (SIFR) { FD4 = 1 }
|
If (SIFR) { FD4 = 1 }
|
||||||
ACT4 = Zero
|
ACT4 = 0
|
||||||
SELE = Zero
|
SELE = 0
|
||||||
|
|
||||||
Return (FDE)
|
Return (FDE)
|
||||||
}
|
}
|
||||||
|
@ -453,13 +453,13 @@ Device(SIO) {
|
||||||
}
|
}
|
||||||
Method (_PS3) {
|
Method (_PS3) {
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
PRPW = Zero
|
PRPW = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_DIS) {
|
Method (_DIS) {
|
||||||
ENTER_CONFIG_MODE (1)
|
ENTER_CONFIG_MODE (1)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -631,14 +631,14 @@ Device(SIO) {
|
||||||
}
|
}
|
||||||
Method (_PS3) {
|
Method (_PS3) {
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
UAPW = Zero
|
UAPW = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (2)
|
ENTER_CONFIG_MODE (2)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -757,14 +757,14 @@ Device(SIO) {
|
||||||
}
|
}
|
||||||
Method (_PS3) {
|
Method (_PS3) {
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
UBPW = Zero
|
UBPW = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (3)
|
ENTER_CONFIG_MODE (3)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -883,14 +883,14 @@ Device(SIO) {
|
||||||
}
|
}
|
||||||
Method (_PS3) {
|
Method (_PS3) {
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
UBPW = Zero
|
UBPW = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (3)
|
ENTER_CONFIG_MODE (3)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -994,7 +994,7 @@ Device(SIO) {
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (6)
|
ENTER_CONFIG_MODE (6)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1085,7 +1085,7 @@ Device(SIO) {
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (5)
|
ENTER_CONFIG_MODE (5)
|
||||||
ACTR = Zero
|
ACTR = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
Notify(PS2M, 1)
|
Notify(PS2M, 1)
|
||||||
}
|
}
|
||||||
|
@ -1192,7 +1192,7 @@ Device(SIO) {
|
||||||
Method (_DIS)
|
Method (_DIS)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (5)
|
ENTER_CONFIG_MODE (5)
|
||||||
IRQ1 = Zero
|
IRQ1 = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1414,7 +1414,7 @@ Device(SIO) {
|
||||||
Method (_PS3)
|
Method (_PS3)
|
||||||
{
|
{
|
||||||
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
ENTER_CONFIG_MODE (PNP_NO_LDN_CHANGE)
|
||||||
HWPW = Zero
|
HWPW = 0
|
||||||
EXIT_CONFIG_MODE ()
|
EXIT_CONFIG_MODE ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue