soc/intel/acpi: Replace Decrement(a) with ASL 2.0 syntax
Replace `Decrement (a)` with `a--`. Change-Id: I5c9290aaa9fc969368d5934e4f48a75d915ca5ff Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70592 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
parent
5cbf2be43a
commit
43b5730962
|
@ -27,7 +27,7 @@ Device (TCHG)
|
||||||
{
|
{
|
||||||
/* Convert size of PPSS table to index */
|
/* Convert size of PPSS table to index */
|
||||||
Store (SizeOf (\_SB.CHPS), Local0)
|
Store (SizeOf (\_SB.CHPS), Local0)
|
||||||
Decrement (Local0)
|
Local0--
|
||||||
|
|
||||||
/* Check if charging is disabled (AC removed) */
|
/* Check if charging is disabled (AC removed) */
|
||||||
If (LEqual (\PWRS, Zero)) {
|
If (LEqual (\PWRS, Zero)) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ Device (TCPU)
|
||||||
{
|
{
|
||||||
If (CondRefOf (\_SB.CP00._TSS)) {
|
If (CondRefOf (\_SB.CP00._TSS)) {
|
||||||
Store (SizeOf (\_SB.CP00._TSS ()), Local0)
|
Store (SizeOf (\_SB.CP00._TSS ()), Local0)
|
||||||
Decrement (Local0)
|
Local0--
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0)
|
Return (0)
|
||||||
|
@ -117,7 +117,7 @@ Device (TCPU)
|
||||||
Return (\_SB.MPDL)
|
Return (\_SB.MPDL)
|
||||||
} ElseIf (CondRefOf (\_SB.CP00._PSS)) {
|
} ElseIf (CondRefOf (\_SB.CP00._PSS)) {
|
||||||
Store (SizeOf (\_SB.CP00._PSS ()), Local0)
|
Store (SizeOf (\_SB.CP00._PSS ()), Local0)
|
||||||
Decrement (Local0)
|
Local0--
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0)
|
Return (0)
|
||||||
|
|
|
@ -44,7 +44,7 @@ Device (LNKA)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTA)
|
Store(Local0, PRTA)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ Device (LNKB)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTB)
|
Store(Local0, PRTB)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ Device (LNKC)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTC)
|
Store(Local0, PRTC)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ Device (LNKD)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTD)
|
Store(Local0, PRTD)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ Device (LNKE)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTE)
|
Store(Local0, PRTE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +339,7 @@ Device (LNKF)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTF)
|
Store(Local0, PRTF)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ Device (LNKG)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTG)
|
Store(Local0, PRTG)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,7 +457,7 @@ Device (LNKH)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTH)
|
Store(Local0, PRTH)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ Device (TCHG)
|
||||||
{
|
{
|
||||||
/* Convert size of PPSS table to index */
|
/* Convert size of PPSS table to index */
|
||||||
Store (SizeOf (\_SB.CHPS), Local0)
|
Store (SizeOf (\_SB.CHPS), Local0)
|
||||||
Decrement (Local0)
|
Local0--
|
||||||
|
|
||||||
/* Check if charging is disabled (AC removed) */
|
/* Check if charging is disabled (AC removed) */
|
||||||
If (LEqual (\_SB.PCI0.LPCB.EC0.ACEX, Zero)) {
|
If (LEqual (\_SB.PCI0.LPCB.EC0.ACEX, Zero)) {
|
||||||
|
|
|
@ -101,7 +101,7 @@ Device (B0DB)
|
||||||
{
|
{
|
||||||
If (CondRefOf (\_SB.CP00._TSS)) {
|
If (CondRefOf (\_SB.CP00._TSS)) {
|
||||||
Store (SizeOf (\_SB.CP00._TSS ()), Local0)
|
Store (SizeOf (\_SB.CP00._TSS ()), Local0)
|
||||||
Decrement (Local0)
|
Local0--
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0)
|
Return (0)
|
||||||
|
@ -144,7 +144,7 @@ Device (B0DB)
|
||||||
Return (\_SB.MPDL)
|
Return (\_SB.MPDL)
|
||||||
} ElseIf (CondRefOf (\_SB.CP00._PSS)) {
|
} ElseIf (CondRefOf (\_SB.CP00._PSS)) {
|
||||||
Store (SizeOf (\_SB.CP00._PSS ()), Local0)
|
Store (SizeOf (\_SB.CP00._PSS ()), Local0)
|
||||||
Decrement (Local0)
|
Local0--
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
} Else {
|
} Else {
|
||||||
Return (0)
|
Return (0)
|
||||||
|
|
|
@ -44,7 +44,7 @@ Device (LNKA)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTA)
|
Store(Local0, PRTA)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ Device (LNKB)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTB)
|
Store(Local0, PRTB)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ Device (LNKC)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTC)
|
Store(Local0, PRTC)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ Device (LNKD)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTD)
|
Store(Local0, PRTD)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,7 +280,7 @@ Device (LNKE)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTE)
|
Store(Local0, PRTE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +339,7 @@ Device (LNKF)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTF)
|
Store(Local0, PRTF)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ Device (LNKG)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTG)
|
Store(Local0, PRTG)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,7 +457,7 @@ Device (LNKH)
|
||||||
/* Which bit is set? */
|
/* Which bit is set? */
|
||||||
FindSetRightBit(IRQ0, Local0)
|
FindSetRightBit(IRQ0, Local0)
|
||||||
|
|
||||||
Decrement(Local0)
|
Local0--
|
||||||
Store(Local0, PRTH)
|
Store(Local0, PRTH)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue