mainboard/acpi: Replace constant "One" with actual number

Change-Id: Id1078b14a805eea53d2a7c5a8183a5413f26e115
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71521
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2022-12-26 08:39:35 +01:00
parent ca4b587f95
commit dfbb634ae1
49 changed files with 146 additions and 146 deletions

View File

@@ -131,7 +131,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -158,7 +158,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT7) Scope (\_SB.PCI0.XHCI.HUB7.PRT7)

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -65,7 +65,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT7) Scope (\_SB.PCI0.XHCI.HUB7.PRT7)

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -65,7 +65,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT7) Scope (\_SB.PCI0.XHCI.HUB7.PRT7)

View File

@@ -39,7 +39,7 @@ Scope (\_SB.PCI0.I2C0)
If (Arg1 == 1) /* Arg1 DSM Revision */ If (Arg1 == 1) /* Arg1 DSM Revision */
{ {
/* Revision 1: Function 0 supported */ /* Revision 1: Function 0 supported */
Return(Buffer(One) { 0x03 }) Return(Buffer(1) { 0x03 })
} }
} ElseIf (Arg2 == 1) /* Function 1 : HID Function */ } ElseIf (Arg2 == 1) /* Function 1 : HID Function */
{ {
@@ -47,7 +47,7 @@ Scope (\_SB.PCI0.I2C0)
} }
} }
Return(Buffer(One) { 0x00 }) /* Not supported */ Return(Buffer(1) { 0x00 }) /* Not supported */
} }
Method (_STA) Method (_STA)

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT2) Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT2) Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -48,7 +48,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT4) Scope (\_SB.PCI0.XHCI.HUB7.PRT4)
@@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT7) Scope (\_SB.PCI0.XHCI.HUB7.PRT7)

View File

@@ -158,7 +158,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -183,7 +183,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -208,7 +208,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -233,7 +233,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -258,7 +258,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT4) Scope (\_SB.PCI0.XHCI.HUB7.PRT4)
@@ -65,7 +65,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT6) Scope (\_SB.PCI0.XHCI.HUB7.PRT6)
@@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT6)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.SSP1) Scope (\_SB.PCI0.XHCI.HUB7.SSP1)

View File

@@ -19,30 +19,30 @@ Scope (\_SB.PCI0.I2C1)
// DSM Revision // DSM Revision
If (Arg2 == Zero) If (Arg2 == Zero)
{ {
If (Arg1 == One) If (Arg1 == 1)
{ {
Return (Buffer (One) Return (Buffer (1)
{ {
0x03 0x03
}) })
} }
Else Else
{ {
Return (Buffer (One) Return (Buffer (1)
{ {
0x00 0x00
}) })
} }
} }
// HID Function // HID Function
If (Arg2 == One) If (Arg2 == 1)
{ {
Return (0x20) Return (0x20)
} }
} }
Else Else
{ {
Return (Buffer (One) Return (Buffer (1)
{ {
0x00 0x00
}) })

View File

@@ -156,7 +156,7 @@ Device (DPTF)
Method (_STA) Method (_STA)
{ {
If (\DPTE == One) { If (\DPTE == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@@ -52,7 +52,7 @@ Device (TSR0)
Method (_STA) Method (_STA)
{ {
If (\DPTE == One) { If (\DPTE == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)
@@ -120,7 +120,7 @@ Device (TSR1)
Method (_STA) Method (_STA)
{ {
If (\DPTE == One) { If (\DPTE == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)
@@ -188,7 +188,7 @@ Device (TSR2)
Method (_STA) Method (_STA)
{ {
If (\DPTE == One) { If (\DPTE == 1) {
Return (0xF) Return (0xF)
} Else { } Else {
Return (0x0) Return (0x0)

View File

@@ -90,22 +90,22 @@ Scope (\_SB.PCI0.I2C2)
If (Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de")) { If (Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de")) {
If (Arg2 == Zero) { If (Arg2 == Zero) {
/* Function 0 - Query */ /* Function 0 - Query */
If (Arg1 == One) { If (Arg1 == 1) {
/* Revision 1 Function 1 */ /* Revision 1 Function 1 */
Return (Buffer (One) { 0x03 }) Return (Buffer (1) { 0x03 })
} Else { } Else {
/* Revision 2+ not supported */ /* Revision 2+ not supported */
Return (Buffer (One) { 0x00 }) Return (Buffer (1) { 0x00 })
} }
} ElseIf (Arg2 == One) { } ElseIf (Arg2 == 1) {
/* Function 1 - HID Descriptor Addr */ /* Function 1 - HID Descriptor Addr */
Return (0x0001) Return (0x0001)
} Else { } Else {
/* Function 2+ not supported */ /* Function 2+ not supported */
Return (Buffer (One) { 0x00 }) Return (Buffer (1) { 0x00 })
} }
} Else { } Else {
Return (Buffer (One) { 0x00 }) Return (Buffer (1) { 0x00 })
} }
} }
} }

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.HS01)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.RHUB.HS02) Scope (\_SB.PCI0.XHCI.RHUB.HS02)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.HS02)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.RHUB.HS03) Scope (\_SB.PCI0.XHCI.RHUB.HS03)
@@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.HS05)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.RHUB.HS07) Scope (\_SB.PCI0.XHCI.RHUB.HS07)

View File

@@ -159,7 +159,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -184,7 +184,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -209,7 +209,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -234,7 +234,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -259,7 +259,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -159,7 +159,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -184,7 +184,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -209,7 +209,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -234,7 +234,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -259,7 +259,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -159,7 +159,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -184,7 +184,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -209,7 +209,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -234,7 +234,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -259,7 +259,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT4) Scope (\_SB.PCI0.XHCI.HUB7.PRT4)
@@ -65,7 +65,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT6) Scope (\_SB.PCI0.XHCI.HUB7.PRT6)
@@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT6)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT7) Scope (\_SB.PCI0.XHCI.HUB7.PRT7)

View File

@@ -267,7 +267,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -292,7 +292,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -317,7 +317,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -342,7 +342,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -367,7 +367,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -156,7 +156,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -177,7 +177,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -33,7 +33,7 @@ Scope (\_SB.PCI0.EHC1.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
@@ -54,7 +54,7 @@ Scope (\_SB.PCI0.EHC1.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
@@ -74,7 +74,7 @@ Scope (\_SB.PCI0.EHC1.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.RHUB.PRT2) Scope (\_SB.PCI0.XHCI.RHUB.PRT2)
@@ -50,7 +50,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.RHUB.PRT2) Scope (\_SB.PCI0.XHCI.RHUB.PRT2)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.RHUB.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.RHUB.PRT3) Scope (\_SB.PCI0.XHCI.RHUB.PRT3)

View File

@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)
@@ -82,7 +82,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT5)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT7) Scope (\_SB.PCI0.XHCI.HUB7.PRT7)

View File

@@ -14,7 +14,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT2) Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
@@ -31,7 +31,7 @@ Scope (\_SB.PCI0.XHCI.HUB7.PRT2)
// Visible // Visible
Method (_PLD, 0, NotSerialized) Method (_PLD, 0, NotSerialized)
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
Scope (\_SB.PCI0.XHCI.HUB7.PRT3) Scope (\_SB.PCI0.XHCI.HUB7.PRT3)

View File

@@ -88,7 +88,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes", "data-lanes",
Package (0x04) Package (0x04)
{ {
One, 1,
0x02, 0x02,
0x03, 0x03,
0x04 0x04
@@ -126,7 +126,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes", "data-lanes",
Package (0x02) Package (0x02)
{ {
One, 1,
0x02 0x02
} }
}, },
@@ -304,7 +304,7 @@ Scope (\_SB.PCI0.I2C3)
"data-lanes", "data-lanes",
Package (0x04) Package (0x04)
{ {
One, 1,
0x02, 0x02,
0x03, 0x03,
0x04 0x04
@@ -449,12 +449,12 @@ Scope (\_SB.PCI0.I2C3)
Package (0x02) Package (0x02)
{ {
"pagesize", "pagesize",
One 1
}, },
Package (0x02) Package (0x02)
{ {
"read-only", "read-only",
One 1
}, },
Package (0x02) Package (0x02)
{ {
@@ -622,7 +622,7 @@ Scope (\_SB.PCI0.I2C2)
"data-lanes", "data-lanes",
Package (0x02) Package (0x02)
{ {
One, 1,
0x02 0x02
} }
}, },
@@ -640,7 +640,7 @@ Scope (\_SB.PCI0.I2C2)
Package (0x03) Package (0x03)
{ {
IPU0, IPU0,
One, 1,
Zero Zero
} }
} }

View File

@@ -88,7 +88,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes", "data-lanes",
Package (0x02) Package (0x02)
{ {
One, 1,
0x02 0x02
} }
}, },
@@ -246,7 +246,7 @@ Scope (\_SB.PCI0.I2C2)
"data-lanes", "data-lanes",
Package (0x02) Package (0x02)
{ {
One, 1,
0x02 0x02
} }
}, },
@@ -264,7 +264,7 @@ Scope (\_SB.PCI0.I2C2)
Package (0x03) Package (0x03)
{ {
IPU0, IPU0,
One, 1,
Zero Zero
} }
} }
@@ -312,12 +312,12 @@ Scope (\_SB.PCI0.I2C2)
Package (0x02) Package (0x02)
{ {
"pagesize", "pagesize",
One 1
}, },
Package (0x02) Package (0x02)
{ {
"read-only", "read-only",
One 1
}, },
Package (0x02) Package (0x02)
{ {

View File

@@ -101,7 +101,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -122,7 +122,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -143,7 +143,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -164,7 +164,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -185,7 +185,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -120,7 +120,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -141,7 +141,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -162,7 +162,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -183,7 +183,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -204,7 +204,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -3,7 +3,7 @@
{ {
Device (TPAD) Device (TPAD)
{ {
Name(_ADR, One) Name(_ADR, 1)
Name (_HID, "ALPS0001") Name (_HID, "ALPS0001")
Name (_CID, "PNP0C50") Name (_CID, "PNP0C50")
Name (_DDN, "ALPS Touchpad") Name (_DDN, "ALPS Touchpad")
@@ -41,22 +41,22 @@
If(Arg2 == Zero) If(Arg2 == Zero)
{ {
// Revision 1 // Revision 1
If(Arg1 == One) If(Arg1 == 1)
{ {
Return (Buffer (One) {0x03}) Return (Buffer (1) {0x03})
} }
Else Else
{ {
Return (Buffer (One) {0x00}) Return (Buffer (1) {0x00})
} }
} ElseIf (Arg2 == One) { // Function 1 : HID Function } ElseIf (Arg2 == 1) { // Function 1 : HID Function
// HID Descriptor Address (IHV Specific) // HID Descriptor Address (IHV Specific)
Return(0x0020) Return(0x0020)
} Else { } Else {
Return (Buffer (One) {0x00}) Return (Buffer (1) {0x00})
} }
} Else { } Else {
Return (Buffer (One) {0x00}) Return (Buffer (1) {0x00})
} }
} }
} }

View File

@@ -28,7 +28,7 @@ Scope (\_SB.PCI0.IPU0)
Package (0x02) Package (0x02)
{ {
"port", "port",
One 1
} }
}, },
ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
@@ -88,7 +88,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes", "data-lanes",
Package (0x04) Package (0x04)
{ {
One, 1,
0x02, 0x02,
0x03, 0x03,
0x04 0x04
@@ -126,7 +126,7 @@ Scope (\_SB.PCI0.IPU0)
"data-lanes", "data-lanes",
Package (0x04) Package (0x04)
{ {
One, 1,
0x02, 0x02,
0x03, 0x03,
0x04 0x04
@@ -290,7 +290,7 @@ Scope (\_SB.PCI0.I2C3)
"data-lanes", "data-lanes",
Package (0x04) Package (0x04)
{ {
One, 1,
0x02, 0x02,
0x03, 0x03,
0x04 0x04
@@ -505,7 +505,7 @@ Scope (\_SB.PCI0.I2C5)
"data-lanes", "data-lanes",
Package (0x04) Package (0x04)
{ {
One, 1,
0x02, 0x02,
0x03, 0x03,
0x04 0x04
@@ -526,7 +526,7 @@ Scope (\_SB.PCI0.I2C5)
Package (0x03) Package (0x03)
{ {
IPU0, IPU0,
One, 1,
Zero Zero
} }
} }

View File

@@ -103,7 +103,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -122,7 +122,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -141,7 +141,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -160,7 +160,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -179,7 +179,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -17,7 +17,7 @@ Scope (_GPE)
} }
Method (TINV, 2, Serialized) { Method (TINV, 2, Serialized) {
Local0 = One << Arg1 Local0 = 1 << Arg1
If (Arg0 == Zero) { If (Arg0 == Zero) {
Local0 = ~Local0 Local0 = ~Local0
GIV0 &= Local0 GIV0 &= Local0

View File

@@ -26,7 +26,7 @@ Field (GPCM, ByteAcc, NoLock, Preserve) {
Method(SHYB, 1) { Method(SHYB, 1) {
/* Switch hybrid graphics */ /* Switch hybrid graphics */
if (Arg0 == One) if (Arg0 == 1)
{ {
/* Discrete graphics requested */ /* Discrete graphics requested */
GPLV |= HYG1 GPLV |= HYG1

View File

@@ -2,7 +2,7 @@
Device (COM1) { Device (COM1) {
Name (_HID, EISAID ("PNP0501")) Name (_HID, EISAID ("PNP0501"))
Name (_UID, One) Name (_UID, 1)
Method (_STA, 0, NotSerialized) Method (_STA, 0, NotSerialized)
{ {

View File

@@ -2,7 +2,7 @@
#define EC_SCI_GPI 10 #define EC_SCI_GPI 10
#define PPCM_TURBO Zero #define PPCM_TURBO Zero
#define PPCM_NOTURBO One #define PPCM_NOTURBO 1
#define CRIT_TEMP 105 #define CRIT_TEMP 105
#include <ec/purism/librem/acpi/ec.asl> #include <ec/purism/librem/acpi/ec.asl>

View File

@@ -4,7 +4,7 @@
Method (_L49, 0, Serialized) { Method (_L49, 0, Serialized) {
Printf ("GPE _L49: %o", ToHexString(\_SB.PCI0.LPCB.EC0.WFNO)) Printf ("GPE _L49: %o", ToHexString(\_SB.PCI0.LPCB.EC0.WFNO))
If (\_SB.PCI0.LPCB.EC0.ECOK) { If (\_SB.PCI0.LPCB.EC0.ECOK) {
If (\_SB.PCI0.LPCB.EC0.WFNO == One) { If (\_SB.PCI0.LPCB.EC0.WFNO == 1) {
Notify(\_SB.LID0, 0x80) Notify(\_SB.LID0, 0x80)
} }
} }

View File

@@ -6,7 +6,7 @@ Scope (\_SB.PCI0.LPCB)
{ {
Name (_HID, "ACPI0003") Name (_HID, "ACPI0003")
Name (_PCL, Package () { LPCB }) Name (_PCL, Package () { LPCB })
Name (ACFG, One) Name (ACFG, 1)
Method (_PSR, 0, NotSerialized) Method (_PSR, 0, NotSerialized)
{ {

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#define EC_SCI_GPI 0x50 #define EC_SCI_GPI 0x50
#define PPCM_TURBO One #define PPCM_TURBO 1
#define PPCM_NOTURBO 0x02 #define PPCM_NOTURBO 0x02
#define CRIT_TEMP 100 #define CRIT_TEMP 100

View File

@@ -10,7 +10,7 @@ Scope (\_SB)
{ {
if (\_SB.PCI0.LPCB.EC.LIDS > 1) if (\_SB.PCI0.LPCB.EC.LIDS > 1)
{ {
Return (One) Return (1)
} }
else else
{ {

View File

@@ -33,7 +33,7 @@ Scope (\_SB.PCI0.EHC1.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }
@@ -54,7 +54,7 @@ Scope (\_SB.PCI0.EHC1.HUB7.PRT1)
// Visible // Visible
Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device Method (_PLD, 0, NotSerialized) // _PLD: Physical Location of Device
{ {
Return (GPLD (One)) Return (GPLD (1))
} }
} }

View File

@@ -119,7 +119,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 0) { If (\FLVL <= 0) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -140,7 +140,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 1) { If (\FLVL <= 1) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -161,7 +161,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 2) { If (\FLVL <= 2) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -182,7 +182,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 3) { If (\FLVL <= 3) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }
@@ -203,7 +203,7 @@ Scope (\_TZ)
{ {
Method (_STA) { Method (_STA) {
If (\FLVL <= 4) { If (\FLVL <= 4) {
Return (One) Return (1)
} Else { } Else {
Return (Zero) Return (Zero)
} }

View File

@@ -39,7 +39,7 @@ Scope (\_SB.PCI0.I2C7)
Package (0x02) Package (0x02)
{ {
"linux,probed", "linux,probed",
One 1
} }
} }
}) })

View File

@@ -8,7 +8,7 @@ Device (AC)
_SB _SB
}) })
Name (ACFG, One) Name (ACFG, 1)
Method (_PSR, 0, NotSerialized) // _PSR: Power Source Method (_PSR, 0, NotSerialized) // _PSR: Power Source
{ {

View File

@@ -30,10 +30,10 @@ Device (BAT0)
Name (PBIF, Package (0x0D) Name (PBIF, Package (0x0D)
{ {
One, // 0 - Power Unit 1, // 0 - Power Unit
0xFFFFFFFF, // 1 - Design Capacity 0xFFFFFFFF, // 1 - Design Capacity
0xFFFFFFFF, // 2 - Last Full Charge Capacity 0xFFFFFFFF, // 2 - Last Full Charge Capacity
One, // 3 - Battery Technology 1, // 3 - Battery Technology
0x39D0, // 4 - Design Voltage 0x39D0, // 4 - Design Voltage
Zero, // 5 - Design Capacity of Warning Zero, // 5 - Design Capacity of Warning
Zero, // 6 - Design Capacity of Low Zero, // 6 - Design Capacity of Low
@@ -127,7 +127,7 @@ Device (BAT0)
} }
Else Else
{ {
Local0 |= One Local0 |= 1
Local1 = (^^PCI0.LPCB.EC0.BPR0 & 0xFFFF) Local1 = (^^PCI0.LPCB.EC0.BPR0 & 0xFFFF)
} }

View File

@@ -26,7 +26,7 @@ Device (EC0)
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))))
If ((Arg0 == 0x03) && (Arg1 == One)) { If ((Arg0 == 0x03) && (Arg1 == 1)) {
// Enable hardware touchpad lock, airplane mode, and keyboard backlight keys // Enable hardware touchpad lock, airplane mode, and keyboard backlight keys
ECOS = 1 ECOS = 1

View File

@@ -25,7 +25,7 @@ Device (HIDD)
Method (HPEM, 1, Serialized) Method (HPEM, 1, Serialized)
{ {
HBSY = One HBSY = 1
HIDX = Arg0 HIDX = Arg0
Notify (HIDD, 0xC0) Notify (HIDD, 0xC0)
@@ -36,11 +36,11 @@ Device (HIDD)
Local0++ Local0++
} }
If (HBSY == One) If (HBSY == 1)
{ {
HBSY = Zero HBSY = Zero
HIDX = Zero HIDX = Zero
Return (One) Return (1)
} }
Else Else
{ {

View File

@@ -10,7 +10,7 @@ Device (LID0)
If (^^PCI0.LPCB.EC0.ECOK) { If (^^PCI0.LPCB.EC0.ECOK) {
Return (^^PCI0.LPCB.EC0.LSTE) Return (^^PCI0.LPCB.EC0.LSTE)
} Else { } Else {
Return (One) Return (1)
} }
} }

View File

@@ -65,7 +65,7 @@ Device (S76D) {
Method (GKBL, 0, Serialized) { Method (GKBL, 0, Serialized) {
Local0 = 0 Local0 = 0
If (^^PCI0.LPCB.EC0.ECOK) { If (^^PCI0.LPCB.EC0.ECOK) {
^^PCI0.LPCB.EC0.FDAT = One ^^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 = Zero