⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sensor.asl

📁 惠普公司bios完整源代码大机密!
💻 ASL
字号:
OperationRegion (IP0, SystemIO, 0x6020, 0x01) 
Field (IP0, ByteAcc, NoLock, Preserve) {
                IO20,   8,               // Index Register Port 20H   
}
OperationRegion (IP1, SystemIO, 0x6040, 0x01) 
Field (IP1, ByteAcc, NoLock, Preserve) {
                IO40,   8,               // Index Register Port 40H   
}
OperationRegion (IP2, SystemIO, 0x6039, 0x01) 
Field (IP2, ByteAcc, NoLock, Preserve) {
                IO39,   8,               // Index Register Port 39H   
}
OperationRegion (IP3, SystemIO, 0x603A, 0x01) 
Field (IP3, ByteAcc, NoLock, Preserve) {
                IO3A,   8,               // Index Register Port 3AH   
}



Method(SCFG, 1) {
               Store(Arg0, IO40)	//Set configuration byte in 40H
}

Method(STOS, 3) {

               Store(Arg1, IO39)	//Set Tos Temp High bits in 39H
}

Method(STHY, 3) {

               Store(Arg1, IO3A)	//Set Hyst Temp High bits in 3AH
}

Method(RTMP, 0) {

                
                  Store(IO20, Local1)	//Get CPU Temp	in 20H
                  Store(0x00, Local2)		



                 Store(Local1,Local2)			
                   if(LGreater(Local2,0xc9))	        //if temperature > 60c
                   {
             Store(0x3c,Local1)
             if(LGreater(Local2,0xcf))	        //if temperature > 65c	
             {
                Store(0x41,Local1)
                if(LGreater(Local2,0xd5))	        //if temperature > 70c
                {
                           Store(0x46,Local1)
                   if(LGreater(Local2,0xda))	//if temperature > 75c
                     {Store(0x4b,Local1)}
                }
             }
                 }else //0xc9
                 {			  
                 Store(0x20,Local1)			//R01
                 }
                 Store(0x00,Local2)			//Return data in Local2

                ShiftLeft(Local1, 8, Local1)    // Shift into high byte
                Or(Local1, Local2, Local3)      // Local0 have bytes swapped
        
        
                ShiftRight(Local3, 7, Local3)       
        
                ShiftLeft(Local3, 2, Local1)
                Add(Local3, Local1, Local3)
                
                Add(Local3, 2732, Local3)
                if(LGreater(Local3,3722))	       
                {
                        Store(2732, Local3)
                }
        
                Return(Local3)

} // Method(RTMP)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -