mb/lippert: Convert to ASL 2.0 syntax

Built provides same dsdt.dsl file for  lippert/frontrunner-af

Change-Id: I61d8af98e2003547e332f463b23c1e1cf79f7f00
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46083
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
Elyes HAOUAS 2020-10-06 13:37:25 +02:00 committed by Michael Niewöhner
parent f6676df8b5
commit a59b5f8ca3
2 changed files with 102 additions and 102 deletions

View File

@ -2,134 +2,134 @@
Method(UCOC, 0) { Method(UCOC, 0) {
Sleep(20) Sleep(20)
Store(0x13,CMTI) CMTI = 0x13
Store(0,GPSL) GPSL = 0
} }
/* USB Port 0 overcurrent uses Gpm 0 */ /* USB Port 0 overcurrent uses Gpm 0 */
If(LLessEqual(UOM0,9)) { If (UOM0 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L13) { Method (_L13) {
UCOC() UCOC()
if(LEqual(GPB0,PLC0)) { if (GPB0 == PLC0) {
Not(PLC0,PLC0) PLC0 = ~PLC0
Store(PLC0, \_SB.PT0D) \_SB.PT0D = PLC0
} }
} }
} }
} }
/* USB Port 1 overcurrent uses Gpm 1 */ /* USB Port 1 overcurrent uses Gpm 1 */
If (LLessEqual(UOM1,9)) { If (UOM1 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L14) { Method (_L14) {
UCOC() UCOC()
if (LEqual(GPB1,PLC1)) { if (GPB1 == PLC1) {
Not(PLC1,PLC1) PLC1 = ~PLC1
Store(PLC1, \_SB.PT1D) \_SB.PT1D = PLC1
} }
} }
} }
} }
/* USB Port 2 overcurrent uses Gpm 2 */ /* USB Port 2 overcurrent uses Gpm 2 */
If (LLessEqual(UOM2,9)) { If (UOM2 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L15) { Method (_L15) {
UCOC() UCOC()
if (LEqual(GPB2,PLC2)) { if (GPB2 == PLC2) {
Not(PLC2,PLC2) PLC2 = ~PLC2
Store(PLC2, \_SB.PT2D) \_SB.PT2D = PLC2
} }
} }
} }
} }
/* USB Port 3 overcurrent uses Gpm 3 */ /* USB Port 3 overcurrent uses Gpm 3 */
If (LLessEqual(UOM3,9)) { If (UOM3 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L16) { Method (_L16) {
UCOC() UCOC()
if (LEqual(GPB3,PLC3)) { if (GPB3 == PLC3) {
Not(PLC3,PLC3) PLC3 = ~PLC3
Store(PLC3, \_SB.PT3D) \_SB.PT3D = PLC3
} }
} }
} }
} }
/* USB Port 4 overcurrent uses Gpm 4 */ /* USB Port 4 overcurrent uses Gpm 4 */
If (LLessEqual(UOM4,9)) { If (UOM4 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L19) { Method (_L19) {
UCOC() UCOC()
if (LEqual(GPB4,PLC4)) { if (GPB4 == PLC4) {
Not(PLC4,PLC4) PLC4 = ~PLC4
Store(PLC4, \_SB.PT4D) \_SB.PT4D = PLC4
} }
} }
} }
} }
/* USB Port 5 overcurrent uses Gpm 5 */ /* USB Port 5 overcurrent uses Gpm 5 */
If (LLessEqual(UOM5,9)) { If (UOM5 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L1A) { Method (_L1A) {
UCOC() UCOC()
if (LEqual(GPB5,PLC5)) { if (GPB5 == PLC5) {
Not(PLC5,PLC5) PLC5 = ~PLC5
Store(PLC5, \_SB.PT5D) \_SB.PT5D = PLC5
} }
} }
} }
} }
/* USB Port 6 overcurrent uses Gpm 6 */ /* USB Port 6 overcurrent uses Gpm 6 */
If (LLessEqual(UOM6,9)) { If (UOM6 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
/* Method (_L1C) { */ /* Method (_L1C) { */
Method (_L06) { Method (_L06) {
UCOC() UCOC()
if (LEqual(GPB6,PLC6)) { if (GPB6 == PLC6) {
Not(PLC6,PLC6) PLC6 = ~PLC6
Store(PLC6, \_SB.PT6D) \_SB.PT6D = PLC6
} }
} }
} }
} }
/* USB Port 7 overcurrent uses Gpm 7 */ /* USB Port 7 overcurrent uses Gpm 7 */
If (LLessEqual(UOM7,9)) { If (UOM7 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
/* Method (_L1D) { */ /* Method (_L1D) { */
Method (_L07) { Method (_L07) {
UCOC() UCOC()
if (LEqual(GPB7,PLC7)) { if (GPB7 == PLC7) {
Not(PLC7,PLC7) PLC7 = ~PLC7
Store(PLC7, \_SB.PT7D) \_SB.PT7D = PLC7
} }
} }
} }
} }
/* USB Port 8 overcurrent uses Gpm 8 */ /* USB Port 8 overcurrent uses Gpm 8 */
If (LLessEqual(UOM8,9)) { If (UOM8 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L17) { Method (_L17) {
if (LEqual(G8IS,PLC8)) { if (G8IS == PLC8) {
Not(PLC8,PLC8) PLC8 = ~PLC8
Store(PLC8, \_SB.PT8D) \_SB.PT8D = PLC8
} }
} }
} }
} }
/* USB Port 9 overcurrent uses Gpm 9 */ /* USB Port 9 overcurrent uses Gpm 9 */
If (LLessEqual(UOM9,9)) { If (UOM9 <= 9) {
Scope (\_GPE) { Scope (\_GPE) {
Method (_L0E) { Method (_L0E) {
if (LEqual(G9IS,0)) { if (G9IS == 0) {
Store(1,\_SB.PT9D) \_SB.PT9D = 1
} }
} }
} }

View File

@ -369,20 +369,20 @@ DefinitionBlock (
Method(OSFL, 0){ Method(OSFL, 0){
if(LNotEqual(OSVR, Ones)) {Return(OSVR)} /* OS version was already detected */ if (OSVR != Ones) {Return(OSVR)} /* OS version was already detected */
if(CondRefOf(\_OSI)) if(CondRefOf(\_OSI))
{ {
Store(1, OSVR) /* Assume some form of XP */ OSVR = 1 /* Assume some form of XP */
if (\_OSI("Windows 2006")) /* Vista */ if (\_OSI("Windows 2006")) /* Vista */
{ {
Store(2, OSVR) OSVR = 2
} }
} else { } else {
If(WCMP(\_OS,"Linux")) { If(WCMP(\_OS,"Linux")) {
Store(3, OSVR) /* Linux */ OSVR = 3 /* Linux */
} Else { } Else {
Store(4, OSVR) /* Gotta be WinCE */ OSVR = 4 /* Gotta be WinCE */
} }
} }
Return(OSVR) Return(OSVR)
@ -394,17 +394,17 @@ DefinitionBlock (
{ {
\_SB.CIRQ() \_SB.CIRQ()
} }
Store(Arg0, PMOD) PMOD = Arg0
} }
Method(CIRQ, 0x00, NotSerialized){ Method(CIRQ, 0x00, NotSerialized){
Store(0, PIRA) PIRA = 0
Store(0, PIRB) PIRB = 0
Store(0, PIRC) PIRC = 0
Store(0, PIRD) PIRD = 0
Store(0, PIRE) PIRE = 0
Store(0, PIRF) PIRF = 0
Store(0, PIRG) PIRG = 0
Store(0, PIRH) PIRH = 0
} }
Name(IRQB, ResourceTemplate(){ Name(IRQB, ResourceTemplate(){
@ -432,7 +432,7 @@ DefinitionBlock (
} /* End Method(_SB.INTA._STA) */ } /* End Method(_SB.INTA._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRA) PIRA = 0
} /* End Method(_SB.INTA._DIS) */ } /* End Method(_SB.INTA._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -441,7 +441,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRA, IRQN) IRQN = 1 << PIRA
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTA._CRS) */ } /* Method(_SB.INTA._CRS) */
@ -451,9 +451,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRA) PIRA = Local0
} /* End Method(_SB.INTA._SRS) */ } /* End Method(_SB.INTA._SRS) */
} /* End Device(INTA) */ } /* End Device(INTA) */
@ -470,7 +470,7 @@ DefinitionBlock (
} /* End Method(_SB.INTB._STA) */ } /* End Method(_SB.INTB._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRB) PIRB = 0
} /* End Method(_SB.INTB._DIS) */ } /* End Method(_SB.INTB._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -479,7 +479,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRB, IRQN) IRQN = 1 << PIRB
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTB._CRS) */ } /* Method(_SB.INTB._CRS) */
@ -489,9 +489,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRB) PIRB = Local0
} /* End Method(_SB.INTB._SRS) */ } /* End Method(_SB.INTB._SRS) */
} /* End Device(INTB) */ } /* End Device(INTB) */
@ -508,7 +508,7 @@ DefinitionBlock (
} /* End Method(_SB.INTC._STA) */ } /* End Method(_SB.INTC._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRC) PIRC = 0
} /* End Method(_SB.INTC._DIS) */ } /* End Method(_SB.INTC._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -517,7 +517,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRC, IRQN) IRQN = 1 << PIRC
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTC._CRS) */ } /* Method(_SB.INTC._CRS) */
@ -527,9 +527,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRC) PIRC = Local0
} /* End Method(_SB.INTC._SRS) */ } /* End Method(_SB.INTC._SRS) */
} /* End Device(INTC) */ } /* End Device(INTC) */
@ -546,7 +546,7 @@ DefinitionBlock (
} /* End Method(_SB.INTD._STA) */ } /* End Method(_SB.INTD._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRD) PIRD = 0
} /* End Method(_SB.INTD._DIS) */ } /* End Method(_SB.INTD._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -555,7 +555,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRD, IRQN) IRQN = 1 << PIRD
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTD._CRS) */ } /* Method(_SB.INTD._CRS) */
@ -565,9 +565,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRD) PIRD = Local0
} /* End Method(_SB.INTD._SRS) */ } /* End Method(_SB.INTD._SRS) */
} /* End Device(INTD) */ } /* End Device(INTD) */
@ -584,7 +584,7 @@ DefinitionBlock (
} /* End Method(_SB.INTE._STA) */ } /* End Method(_SB.INTE._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRE) PIRE = 0
} /* End Method(_SB.INTE._DIS) */ } /* End Method(_SB.INTE._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -593,7 +593,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRE, IRQN) IRQN = 1 << PIRE
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTE._CRS) */ } /* Method(_SB.INTE._CRS) */
@ -603,9 +603,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRE) PIRE = Local0
} /* End Method(_SB.INTE._SRS) */ } /* End Method(_SB.INTE._SRS) */
} /* End Device(INTE) */ } /* End Device(INTE) */
@ -622,7 +622,7 @@ DefinitionBlock (
} /* End Method(_SB.INTF._STA) */ } /* End Method(_SB.INTF._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRF) PIRF = 0
} /* End Method(_SB.INTF._DIS) */ } /* End Method(_SB.INTF._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -631,7 +631,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRF, IRQN) IRQN = 1 << PIRF
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTF._CRS) */ } /* Method(_SB.INTF._CRS) */
@ -641,9 +641,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRF) PIRF = Local0
} /* End Method(_SB.INTF._SRS) */ } /* End Method(_SB.INTF._SRS) */
} /* End Device(INTF) */ } /* End Device(INTF) */
@ -660,7 +660,7 @@ DefinitionBlock (
} /* End Method(_SB.INTG._STA) */ } /* End Method(_SB.INTG._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRG) PIRG = 0
} /* End Method(_SB.INTG._DIS) */ } /* End Method(_SB.INTG._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -669,7 +669,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRG, IRQN) IRQN = 1 << PIRG
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTG._CRS) */ } /* Method(_SB.INTG._CRS) */
@ -679,9 +679,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRG) PIRG = Local0
} /* End Method(_SB.INTG._SRS) */ } /* End Method(_SB.INTG._SRS) */
} /* End Device(INTG) */ } /* End Device(INTG) */
@ -698,7 +698,7 @@ DefinitionBlock (
} /* End Method(_SB.INTH._STA) */ } /* End Method(_SB.INTH._STA) */
Method(_DIS ,0) { Method(_DIS ,0) {
Store(0, PIRH) PIRH = 0
} /* End Method(_SB.INTH._DIS) */ } /* End Method(_SB.INTH._DIS) */
Method(_PRS ,0) { Method(_PRS ,0) {
@ -707,7 +707,7 @@ DefinitionBlock (
Method(_CRS ,0) { Method(_CRS ,0) {
CreateWordField(IRQB, 0x1, IRQN) CreateWordField(IRQB, 0x1, IRQN)
ShiftLeft(1, PIRH, IRQN) IRQN = 1 << PIRH
Return(IRQB) Return(IRQB)
} /* Method(_SB.INTH._CRS) */ } /* Method(_SB.INTH._CRS) */
@ -717,9 +717,9 @@ DefinitionBlock (
/* Use lowest available IRQ */ /* Use lowest available IRQ */
FindSetRightBit(IRQM, Local0) FindSetRightBit(IRQM, Local0)
if (Local0) { if (Local0) {
Decrement(Local0) Local0--
} }
Store(Local0, PIRH) PIRH = Local0
} /* End Method(_SB.INTH._SRS) */ } /* End Method(_SB.INTH._SRS) */
} /* End Device(INTH) */ } /* End Device(INTH) */
@ -750,13 +750,13 @@ DefinitionBlock (
Method(\_PTS, 1) { Method(\_PTS, 1) {
/* Don't allow PCIRST# to reset USB */ /* Don't allow PCIRST# to reset USB */
if (LEqual(Arg0,3)){ if (Arg0 == 3){
Store(0,URRE) URRE = 0
} }
/* Clear wake status structure. */ /* Clear wake status structure. */
Store(0, Index(WKST,0)) WKST [0] = 0
Store(0, Index(WKST,1)) WKST [1] = 0
} /* End Method(\_PTS) */ } /* End Method(\_PTS) */
/* /*
@ -777,16 +777,16 @@ DefinitionBlock (
Method(\_WAK, 1) { Method(\_WAK, 1) {
/* Re-enable HPET */ /* Re-enable HPET */
Store(1,HPDE) HPDE = 1
/* Restore PCIRST# so it resets USB */ /* Restore PCIRST# so it resets USB */
if (LEqual(Arg0,3)){ if (Arg0 == 3){
Store(1,URRE) URRE = 1
} }
/* Arbitrarily clear PciExpWakeStatus */ /* Arbitrarily clear PciExpWakeStatus */
Store(PWST, Local1) Local1 = PWST
Store(Local1, PWST) PWST = Local1
Return(WKST) Return(WKST)
} /* End Method(\_WAK) */ } /* End Method(\_WAK) */
@ -861,7 +861,7 @@ DefinitionBlock (
Method (_OSC, 4) Method (_OSC, 4)
{ {
/* Check for PCI/PCI-X/PCIe GUID */ /* Check for PCI/PCI-X/PCIe GUID */
If (LEqual (Arg0, ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))) If (Arg0 == ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))
{ {
/* Let OS control everything */ /* Let OS control everything */
Return (Arg3) Return (Arg3)
@ -870,7 +870,7 @@ DefinitionBlock (
{ {
/* Unrecognized UUID, so set bit 2 of Arg3 to 1 */ /* Unrecognized UUID, so set bit 2 of Arg3 to 1 */
CreateDWordField (Arg3, 0, CDW1) CreateDWordField (Arg3, 0, CDW1)
Or (CDW1, 4, CDW1) CDW1 |= 4
Return (Arg3) Return (Arg3)
} }
} /* End _OSC */ } /* End _OSC */
@ -1210,10 +1210,10 @@ DefinitionBlock (
* 32bit (0x00000000 - TOM1) will wrap and give the same * 32bit (0x00000000 - TOM1) will wrap and give the same
* result as 64bit (0x100000000 - TOM1). * result as 64bit (0x100000000 - TOM1).
*/ */
Store(TOM1, MM1B) MM1B = TOM1
ShiftLeft(0x10000000, 4, Local0) Local0 = 0x10000000 << 4
Subtract(Local0, TOM1, Local0) Local0 -= TOM1
Store(Local0, MM1L) MM1L = Local0
Return(CRES) /* note to change the Name buffer */ Return(CRES) /* note to change the Name buffer */
} /* end of Method(_SB.PCI0._CRS) */ } /* end of Method(_SB.PCI0._CRS) */