summaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83627hf/acpi
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-25 07:55:38 +0100
committerElyes Haouas <ehaouas@noos.fr>2022-12-26 20:43:25 +0000
commit1e9344481a2c6bf3fb8481c8a82917200f1efaab (patch)
treeda048e290ce86ce2334860794874880671f56ebe /src/superio/winbond/w83627hf/acpi
parent8171364d064afe5e714e4d6faee3cf44d843eb19 (diff)
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>
Diffstat (limited to 'src/superio/winbond/w83627hf/acpi')
-rw-r--r--src/superio/winbond/w83627hf/acpi/superio.asl24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/superio/winbond/w83627hf/acpi/superio.asl b/src/superio/winbond/w83627hf/acpi/superio.asl
index 1da3bbf035..fcf6f8e756 100644
--- a/src/superio/winbond/w83627hf/acpi/superio.asl
+++ b/src/superio/winbond/w83627hf/acpi/superio.asl
@@ -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