sio/winbond/w83627hf/acpi: Replace Divide(a,b,c,d) with ASL 2.0 syntax
Replace Divide (a,b,c,d) with: c = a % b d = a / b Change-Id: I0e9fdabbb4b5bd9698968cd8acb497dcde14e433 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71508 Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
8171364d06
commit
1e9344481a
|
@ -379,7 +379,8 @@ Device(SIO) {
|
|||
CreateByteField (Arg0, IRQ0._INT, IRQL)
|
||||
CreateByteField (Arg0, DMA0._DMA, DMCH)
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
|
||||
ENTER_CONFIG_MODE (0)
|
||||
IO1L = Local0
|
||||
|
@ -570,7 +571,8 @@ Device(SIO) {
|
|||
Local2 = 0x1
|
||||
}
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
|
||||
ENTER_CONFIG_MODE (1)
|
||||
/* IO port */
|
||||
|
@ -699,7 +701,8 @@ Device(SIO) {
|
|||
CreateWordField (Arg0, IO0._MIN, IOA0)
|
||||
CreateWordField (Arg0, IRQX._INT, IRQL)
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
|
||||
Local3 = FindSetLeftBit (IRQL) - 1
|
||||
|
||||
|
@ -824,7 +827,8 @@ Device(SIO) {
|
|||
CreateWordField (Arg0, IO0._MIN, IOA0)
|
||||
CreateByteField (Arg0, IRQX._INT, IRQL)
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
|
||||
Local3 = FindSetLeftBit (IRQL) - 1
|
||||
|
||||
|
@ -949,7 +953,8 @@ Device(SIO) {
|
|||
CreateWordField (Arg0, IO0._MIN, IOA0)
|
||||
CreateByteField (Arg0, IRQX._INT, IRQL)
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
|
||||
Local3 = FindSetLeftBit (IRQL) - 1
|
||||
|
||||
|
@ -1036,7 +1041,8 @@ Device(SIO) {
|
|||
CreateWordField (Arg0, IO0._MIN, IOA0)
|
||||
CreateByteField (Arg0, IRQX._INT, IRQL)
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
|
||||
Local3 = FindSetLeftBit (IRQL) - 1
|
||||
|
||||
|
@ -1140,8 +1146,10 @@ Device(SIO) {
|
|||
CreateWordField (Arg0, IO1._MIN, IOA1)
|
||||
CreateWordField (Arg0, IRQX._INT, IRQL)
|
||||
|
||||
Divide(IOA0, 256, Local0, Local1)
|
||||
Divide(IOA1, 256, Local2, Local3)
|
||||
Local0 = IOA0 % 256
|
||||
Local1 = IOA0 / 256
|
||||
Local2 = IOA1 % 256
|
||||
Local3 = IOA1 / 256
|
||||
|
||||
Local4 = FindSetLeftBit (IRQL) - 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue