|
楼主 |
发表于 2006-3-19 21:44:23
|
显示全部楼层
我对dsdt.dsl的修改
注释是我加上去的,
原来的dsl编译时报错
1. Method (_WAK, 1, NotSerialized)是个warning
2.UPBI和UPBS是errro 因为它们在随后的代码中出现在if(*)语句中
Method (_WAK, 1, NotSerialized)
{
\_GPE._L26 ()
Store (0x04, \_SB.PCI0.PM.R0B1)
If (LEqual (Arg0, 0x04))
{
Notify (\_SB.PWRB, 0x02)
}
Return(Package(0x02){0x00, 0x00}) //这个是我加上的
}
Method (UPBI, 0, NotSerialized)
{
Store (0x0F50, Index (PBIF, 0x01))
Store (0x0F50, Index (PBIF, 0x02))
Store (0x39D0, Index (PBIF, 0x04))
Store (0x1E, Index (PBIF, 0x05))
Store (0x14, Index (PBIF, 0x06))
Store (0x0A, Index (PBIF, 0x07))
Store (0x0D8E, Index (PBIF, 0x08))
Store ("Bat0", Index (PBIF, 0x09))
Store (" ", Index (PBIF, 0x0A))
Store ("Lion", Index (PBIF, 0x0B))
Store (0x00, Index (PBIF, 0x0C))
Return(0x00) //这个是我加上的
}
Method (UPBS, 0, NotSerialized)
{
Store (0x84, \_SB.PCI0.ISA.BCMD)
Store (Zero, \_SB.PCI0.ISA.SMIC)
Store (\_SB.PCI0.ISA.INF, Local0)
If (LEqual (Local0, 0x00))
{
If (LGreater (BBLO, 0x00))
{
Store (0x64, Local0)
Decrement (BBLO)
}
}
And (\_SB.PCI0.PM.R098, 0x02, Local1)
If (LEqual (Local1, 0x02))
{
If (LNot (LLess (Local0, 0x63)))
{
Store (0x01, Index (PBST, 0x00))
Store (0x64, Local0)
}
Else
{
Store (0x02, Index (PBST, 0x00))
}
}
Else
{
If (LNot (LGreater (Local0, 0x03)))
{
Store (0x05, Index (PBST, 0x00))
}
Else
{
Store (0x01, Index (PBST, 0x00))
}
}
Multiply (Local0, 0x28, Local2)
Store (0xFFFFFFFF, Index (PBST, 0x01))
Store (Local2, Index (PBST, 0x02))
Store (0x39D0, Index (PBST, 0x03))
Return(0x00) //这个是我加上的
} |
|