{drivers,superio}/acpi: Replace ShiftRight(a,b) with ASL 2.0 syntax

Replace `ShiftRight (a, b)` with `a >> b`.

Change-Id: I0751d00186e8dff38e02e7bf7d8ebf5a17514a58
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70628
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2022-12-12 01:47:52 +01:00
parent 447c399d35
commit eb99f62456
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@
Sleep (1) Sleep (1)
If (And (ASLC, 0x2) == 0) { If (And (ASLC, 0x2) == 0) {
/* Request has been processed, check status: */ /* Request has been processed, check status: */
And (ShiftRight (ASLC, 12), 0x3, Local1) And (ASLC >> 12, 0x3, Local1)
If (Local1 == 0) { If (Local1 == 0) {
Return (Zero) Return (Zero)
} Else { } Else {

View File

@ -117,7 +117,7 @@
#define PNP_WRITE_IO(IO_TO, RESOURCE, IO_TAG) \ #define PNP_WRITE_IO(IO_TO, RESOURCE, IO_TAG) \
CreateWordField (RESOURCE, IO_TAG._MIN, IO_TAG##I)\ CreateWordField (RESOURCE, IO_TAG._MIN, IO_TAG##I)\
Store (And(IO_TAG##I, 0xff), IO_TO##_LOW_BYTE)\ Store (And(IO_TAG##I, 0xff), IO_TO##_LOW_BYTE)\
Store (ShiftRight(IO_TAG##I, 8), IO_TO##_HIGH_BYTE) Store (IO_TAG##I >> 8, IO_TO##_HIGH_BYTE)
#define PNP_WRITE_IRQ(IRQ_TO, RESOURCE, IRQ_TAG) \ #define PNP_WRITE_IRQ(IRQ_TO, RESOURCE, IRQ_TAG) \
CreateWordField (RESOURCE, IRQ_TAG._INT, IRQ_TAG##W)\ CreateWordField (RESOURCE, IRQ_TAG._INT, IRQ_TAG##W)\