Contribute
Register

Issues compiling DSDT for MacBook Air 11' 2011 (Windows 7)

Status
Not open for further replies.
Joined
Jun 26, 2012
Messages
3
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Hello all,

I was not sure if this was the right place to ask this question, if I am in the wrong place, please let me know.

I am trying to compile the DSDT (trying to DSDT override to extend the root bridge into 36-bit space) and is giving me the following issues:

dsdt_MacBookA.dsl 5806: Method (_WAK, 1, NotSerialized)
Warning 1081 - ^ Reserved method must return a value (_
WAK)

dsdt_MacBookA.dsl 5829: \_SB.PCI0.EHC2.HRST (0x00, \_SB.PCI0.EHC2.H
RST (0x01, PNOT (), Return (Package (0x02)
Error 4096 - parse error,
expecting `','' or `')'' ^


The following part is the code giving me issues:

Method (_WAK, 1, NotSerialized)
{
Store (0x01, UH2D)
Store (0x01, UH3D)
Store (0x01, UH4D)
Store (0x01, UH6D)
Store (0x01, UH7D)
P8XH (0x00, 0x00)
Store (0x00, \_SB.PCI0.LPCB.EC.ECSS)
If (OSDW ()) {}
Store (\_SB.PCI0.LPCB.EC.ELSW, LIDS)
Store (\_SB.PCI0.LPCB.EC.ELSW, \_SB.PCI0.IGPU.CLID)
Store (\_SB.PCI0.LPCB.EC.EACP, PWRS)
If (LNot (OSDW ()))
{
Store (0x00, \_SB.PCI0.LPCB.EC.LWE0)
Store (0x00, \_SB.PCI0.LPCB.EC.LWE1)
Store (0x00, \_SB.PCI0.LPCB.EC.LWE2)
Store (0x00, \_SB.PCI0.LPCB.EC.LWE3)
}

If (LAnd (LNot (OSDW ()), LEqual (Arg0, 0x04)))
{
\_SB.PCI0.EHC2.HRST (0x00, \_SB.PCI0.EHC2.HRST (0x01, PNOT (), Return (Package (0x02)
{
0x00,
0x00
})))
}
}

Please if someone can point me out that would be great!

Thank you for your time.
 
Would this be the right answer?

Method (_WAK, 1, NotSerialized)
{
Store (0x01, UH2D)
Store (0x01, UH3D)
Store (0x01, UH4D)
Store (0x01, UH6D)
Store (0x01, UH7D)
P8XH (0x00, 0x00)
Store (0x00, \_SB.PCI0.LPCB.EC.ECSS)
If (OSDW ()) {}
Store (\_SB.PCI0.LPCB.EC.ELSW, LIDS)
Store (\_SB.PCI0.LPCB.EC.ELSW, \_SB.PCI0.IGPU.CLID)
Store (\_SB.PCI0.LPCB.EC.EACP, PWRS)
If (LNot (OSDW ()))
{
Store (0x00, \_SB.PCI0.LPCB.EC.LWE0)
Store (0x00, \_SB.PCI0.LPCB.EC.LWE1)
Store (0x00, \_SB.PCI0.LPCB.EC.LWE2)
Store (0x00, \_SB.PCI0.LPCB.EC.LWE3)
}

If (LAnd (LNot (OSDW ()), LEqual (Arg0, 0x04)))
{
\_SB.PCI0.EHC2.HRST (0x00, \_SB.PCI0.EHC2.HRST (0x01, PNOT (), Return (Package (0x02))))
{
0x00,
0x00
}

}
}
 
Status
Not open for further replies.
Back
Top