{acpi,arch,soc}/acpi: Replace constant "One" with actual number

Change-Id: I3dfd7dd1de3bd27c35c195bd43c4a5b8c5a2dc53
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71522
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2022-12-26 08:45:56 +01:00
parent dfbb634ae1
commit 7b8ac0030c
32 changed files with 88 additions and 88 deletions

View File

@@ -37,9 +37,9 @@ Device (HDAS)
* if NHLT address and length are set in NVS.
*/
If ((Arg1 == 1) && (NHLA != 0) && (NHLL != 0)) {
Return (Buffer (One) { 0x03 })
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -40,10 +40,10 @@ Device (HDAS)
* if NHLT address and length are set in NVS.
*/
If (Arg1 == 1 && NHLA != 0 && NHLL != 0) {
Return (Buffer (One) { 0x03 })
Return (Buffer (1) { 0x03 })
}
Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -65,6 +65,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -155,11 +155,11 @@ Method (_CRS, 0, Serialized)
CreateDWordField (MCRS, ^LMEM._MIN, LMIN)
CreateDWordField (MCRS, ^LMEM._MAX, LMAX)
CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
If (LPFW != Zero && LPEN == One)
If (LPFW != Zero && LPEN == 1)
{
LMIN = LPFW
LLEN = 0x00100000
LMAX = LMIN + LLEN - One
LMAX = LMIN + LLEN - 1
}
Else
{

View File

@@ -21,7 +21,7 @@ Device (XHCI)
REV = 0x02
// VISI: Port visibility to user per port
CreateField (DerefOf (PCKG[0]), 0x40, One, VISI)
CreateField (DerefOf (PCKG[0]), 0x40, 1, VISI)
VISI = Arg0
Return (PCKG)
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -154,7 +154,7 @@ Method (_CRS, 0, Serialized)
CreateDWordField (MCRS, LMEM._MIN, LMIN)
CreateDWordField (MCRS, LMEM._MAX, LMAX)
CreateDWordField (MCRS, LMEM._LEN, LLEN)
If (LPFW != Zero && LPEN == One)
If (LPFW != Zero && LPEN == 1)
{
LMIN = LPFW
LMAX = LMIN + 0x001FFFFF

View File

@@ -37,9 +37,9 @@ Device (HDAS)
* if NHLT address and length are set in NVS.
*/
If (Arg1 == 1 && NHLA != 0 && NHLL != 0) {
Return (Buffer (One) { 0x03 })
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -46,7 +46,7 @@ Method (UWES, 3, Serialized)
{
Local0 = Arg0
While (One) {
While (1) {
FindSetRightBit (Local0, Local1)
If (Local1 == Zero) {
Break

View File

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

View File

@@ -36,10 +36,10 @@ Device (HDAS)
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
If ((Arg1 == One) && ((NHLA != Zero) && (NHLL != Zero))) {
Return (Buffer (One) { 0x03 })
If ((Arg1 == 1) && ((NHLA != Zero) && (NHLL != Zero))) {
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -50,7 +50,7 @@ Device (HDAS)
*
* Returns a pointer to NHLT table in memory.
*/
If (Arg2 == One) {
If (Arg2 == 1) {
CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -36,10 +36,10 @@ Device (HDAS)
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
If (Arg1 == One && NHLA != Zero && NHLL != Zero) {
Return (Buffer (One) { 0x03 })
If (Arg1 == 1 && NHLA != Zero && NHLL != Zero) {
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -50,7 +50,7 @@ Device (HDAS)
*
* Returns a pointer to NHLT table in memory.
*/
If (Arg2 == One) {
If (Arg2 == 1) {
CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -36,10 +36,10 @@ Device (HDAS)
* NHLT Query only supported for revision 1 and
* if NHLT address and length are set in NVS.
*/
If ((Arg1 == One) && ((NHLA != Zero) && (NHLL != Zero))) {
Return (Buffer (One) { 0x03 })
If ((Arg1 == 1) && ((NHLA != Zero) && (NHLL != Zero))) {
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -50,7 +50,7 @@ Device (HDAS)
*
* Returns a pointer to NHLT table in memory.
*/
If (Arg2 == One) {
If (Arg2 == 1) {
CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -37,9 +37,9 @@ Device (HDAS)
* if NHLT address and length are set in NVS.
*/
If ((Arg1 == 1) && (NHLA != 0) && (NHLL != 0)) {
Return (Buffer (One) { 0x03 })
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -44,7 +44,7 @@ Method (UWES, 3, Serialized)
{
Local0 = Arg0
While (One) {
While (1) {
FindSetRightBit (Local0, Local1)
If (Local1 == Zero) {
Break
@@ -225,7 +225,7 @@ Device (XHCI)
REV = 0x02
// VISI: Port visibility to user per port
CreateField (DerefOf (PCKG[0]), 0x40, One, VISI)
CreateField (DerefOf (PCKG[0]), 0x40, 1, VISI)
VISI = Arg0
Return (PCKG)

View File

@@ -37,9 +37,9 @@ Device (HDAS)
* if NHLT address and length are set in NVS.
*/
If ((Arg1 == 1) && (NHLA != 0) && (NHLL != 0)) {
Return (Buffer (One) { 0x03 })
Return (Buffer (1) { 0x03 })
} Else {
Return (Buffer (One) { 0x01 })
Return (Buffer (1) { 0x01 })
}
}
@@ -63,6 +63,6 @@ Device (HDAS)
}
}
Return (Buffer (One) { 0x00 })
Return (Buffer (1) { 0x00 })
}
}

View File

@@ -43,7 +43,7 @@
CTRL &= 0x1D \
/* Disable Native PCIe AER handling from OS */ \
CTRL &= 0x17 \
If ((Arg1 != One)) /* unknown revision */ \
If ((Arg1 != 1)) /* unknown revision */ \
{ \
CDW1 |= 0x08 \
} \