acpiled.asl
来自「AWARD BIOS源代码,支持的CHIPSET请看文件,有同型号的板子烧上去就」· ASL 代码 · 共 73 行
ASL
73 行
OperationRegion (WIN1, SystemIO, 0x3F0, 0x2)
Field (WIN1, ByteAcc, NoLock, Preserve)
{
IND,8, //field named INDX is 8 bits wide
DAT,8 //field named DATA is 8 bits wide
}
Method(ENFG,0)
{ // Enter Config Mode for W977TF
Store(0x87,IND)
Store(0x87,IND)
} // end ENFG method
Method(EXFG,0)
{ // Exit Config Mode for W977TF
Store(0xAA,IND)
} // end EXFG method
Method(SALD,1)
{
IF(LEqual(Arg0, 0x0)) // S0 state
{
ENFG() // Enter Config Mode for W977TF
Store(0x2B, IND)
Or(DAT, 0x01, DAT)
Store(0x07, IND)
Store(0x07, DAT)
Store(0xE3, IND)
Or(DAT, 0x02, DAT)
Store(0x07, IND)
Store(0x08, DAT)
Store(0xF4, IND)
Store(0x00, DAT)
EXFG() // Exit Config Mode for W977TF
}
Else
{
IF(LEqual(Arg0, 0x1)) // S1 state
{
ENFG() // Enter Config Mode for W977TF
Store(0x2B, IND)
Or(DAT, 0x01, DAT)
Store(0x07, IND)
Store(0x08, DAT)
Store(0xF4, IND)
Store(0x02, DAT)
EXFG() // Exit Config Mode for W977TF
}
IF(LEqual(Arg0, 0x06)) //OFF state
{
ENFG() // Enter Config Mode for W977TF
Store(0x2B, IND)
Or(DAT, 0x01, DAT)
Store(0x07, IND)
Store(0x07, DAT)
Store(0xE3, IND)
And(DAT, 0xFD, DAT)
Store(0x07, IND)
Store(0x08, DAT)
Store(0xF4, IND)
Store(0x00, DAT)
EXFG() // Exit Config Mode for W977TF
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?