📄 memory.asl
字号:
Device(MEM) { // Memory
Name(_HID, EISAID("PNP0C01")) // Hardware Device ID
Method(_CRS,0) { //Current Resource
Name(BUF0,ResourceTemplate() {
Memory32Fixed (
ReadWrite, //_RW
0x000F0000, //_BAS
0x00004000, //_LEN
ROM1
)
Memory32Fixed (
ReadWrite, //_RW
0x000F4000, //_BAS
0x00004000, //_LEN
ROM2
)
Memory32Fixed (
ReadWrite, //_RW
0x000F8000, //_BAS
0x00004000, //_LEN
ROM3
)
Memory32Fixed (
ReadWrite, //_RW
0x000FC000, //_BAS
0x00004000, //_LEN
ROM4
)
Memory32Fixed (
ReadWrite, //_RW
0x00000000, //_BAS
0x00010000, //_LEN
ACME
)
Memory32Fixed (
ReadWrite, //_RW
0x00000000, //_BAS
0x000A0000, //_LEN
)
Memory32Fixed (
ReadWrite, //_RW
0x00100000, //_BAS
0x00000000, //_LEN
EXMM
)
Memory32Fixed (
ReadWrite, //_RW
0xFFB00000, //_BAS
0x00080000, //_LEN //R13
)
Memory32Fixed (
ReadWrite, //_RW
0xFFF00000, //_BAS
0x00100000, //_LEN //R12A
)
}
)
CreateDwordField (BUF0, ACME._BAS, ACMM)
CreateDWordField (BUF0, ROM1._BAS, RMA1)
CreateDWordField (BUF0, ROM1._LEN, RSS1)
CreateDWordField (BUF0, ROM2._BAS, RMA2)
CreateDWordField (BUF0, ROM2._LEN, RSS2)
CreateDWordField (BUF0, ROM3._BAS, RMA3)
CreateDWordField (BUF0, ROM3._LEN, RSS3)
CreateDWordField (BUF0, ROM4._BAS, RMA4)
CreateDWordField (BUF0, ROM4._LEN, RSS4)
CreateDwordField (BUF0, EXMM._LEN, EXTM)
Subtract (AMEM, 0x100000, EXTM)
IF (LNotEqual(ROM1, Zero)) {
Store (RMA1,RMA2) //R09
ShiftLeft(ROM1,0x08,Local0)
Store (Local0,RMA1)
ShiftLeft(RMS1,0x08,Local0)
Store (Local0,RSS1)
Store (0x00008000,RSS2)
}
IF (LNotEqual(ROM2, Zero)) {
Store (RMA2,RMA3) //R09
ShiftLeft(ROM2,0x08,Local0)
Store (Local0,RMA2)
ShiftLeft(RMS2,0x08,Local0)
Store (Local0,RSS2)
Store (0x0000C000,RSS3)
}
IF (LNotEqual(ROM3, Zero)) {
Store (RMA3,RMA4) //R09
ShiftLeft(ROM3,0x08,Local0)
Store (Local0,RMA3)
ShiftLeft(RMS3,0x08,Local0)
Store (Local0,RSS3)
Store (0x00010000,RSS4)
}
Store (AMEM, ACMM)
Return(BUF0) // Return Buf0
} // End CRS
} // End Memory
Device(FWH) { // Memory
Name(_HID, EISAID("INT0800")) // Hardware Device ID
Method(_CRS,0) { //Current Resource
Name(FWH0,ResourceTemplate() {
Memory32Fixed (
ReadWrite, //_RW
0xFFB80000, //_BAS
0x00080000, //_LEN
)
}
)
Return(FWH0) // Return Buf0
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -