summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/intel/sandybridge/acpi/peg.asl12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/northbridge/intel/sandybridge/acpi/peg.asl b/src/northbridge/intel/sandybridge/acpi/peg.asl
index f98a4ce083..fcec00ec67 100644
--- a/src/northbridge/intel/sandybridge/acpi/peg.asl
+++ b/src/northbridge/intel/sandybridge/acpi/peg.asl
@@ -20,8 +20,7 @@ Device (PEGP)
Method (_STA)
{
- ShiftRight (\_SB.PCI0.MCHC.DVEN, 3, Local0)
- Return (And (Local0, 1))
+ Return (((\_SB.PCI0.MCHC.DVEN >> 3) & 1) * 0xf)
}
Device (DEV0)
@@ -36,8 +35,7 @@ Device (PEG1)
Method (_STA)
{
- ShiftRight (\_SB.PCI0.MCHC.DVEN, 2, Local0)
- Return (And (Local0, 1))
+ Return (((\_SB.PCI0.MCHC.DVEN >> 2) & 1) * 0xf)
}
Device (DEV0)
@@ -52,8 +50,7 @@ Device (PEG2)
Method (_STA)
{
- ShiftRight (\_SB.PCI0.MCHC.DVEN, 1, Local0)
- Return (And (Local0, 1))
+ Return (((\_SB.PCI0.MCHC.DVEN >> 1) & 1) * 0xf)
}
Device (DEV0)
@@ -68,8 +65,7 @@ Device (PEG6)
Method (_STA)
{
- ShiftRight (\_SB.PCI0.MCHC.DVEN, 13, Local0)
- Return (And (Local0, 1))
+ Return (((\_SB.PCI0.MCHC.DVEN >> 13) & 1) * 0xf)
}
Device (DEV0)