soc/intel/xeon_sp/include/soc/acpi_asl.h: Convert to ASL 2.0

Change-Id: Ie1d31b9d02584b97b85afe970894cfe557174733
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50324
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
Elyes HAOUAS 2021-02-05 20:10:24 +01:00 committed by Michael Niewöhner
parent 9edeb31d4a
commit 93329d8189
1 changed files with 6 additions and 6 deletions

View File

@ -44,22 +44,22 @@
IRQ (Level, ActiveLow, Shared) {} \
}) \
CreateWordField (RTLA, 1, IRQ0) \
Store (Zero, IRQ0) \
IRQ0 = 0 \
\
/* Set the bit from PIRQ Routing Register */ \
ShiftLeft (1, And (^^PIR##id, ^^IREM), IRQ0) \
IRQ0 = 1 << (^^PIR##id & ^^IREM) \
Return (RTLA) \
} \
Method (_SRS, 1, Serialized) \
{ \
CreateWordField (Arg0, 1, IRQ0) \
FindSetRightBit (IRQ0, Local0) \
Decrement (Local0) \
Store (Local0, ^^PIR##id) \
Local0-- \
^^PIR##id = Local0 \
} \
Method (_STA, 0, Serialized) \
{ \
If (And (^^PIR##id, ^^IREN)) { \
If (^^PIR##id & ^^IREN) { \
Return (0x9) \
} Else { \
Return (0xb) \
@ -67,7 +67,7 @@
} \
Method (_DIS, 0, Serialized) \
{ \
Or (^^PIR##id, ^^IREN, ^^PIR##id) \
^^PIR##id |= ^^IREN \
} \
}