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

📄 cust_fan.oem

📁 <BIOS研发技术剖析>书的源代码,包括完整的BIOS汇编语言源程序.
💻 OEM
字号:
//**********************************************************************;
//     *****************************************************************;
//     *****************************************************************;
//     **                                                             **;
//     **      (C)Copyright 1985-1998, American Megatrends, Inc.      **;
//     **                                                             **;
//     **                     All Rights Reserved.                    **;
//     **                                                             **;
//     **           6145-F Northbelt Pkwy, Norcross, GA 30071         **;
//     **                                                             **;
//     **                     Phone (770)-246-8600                    **;
//     **                                                             **;
//     *****************************************************************;
//     *****************************************************************;
//---------------------------------------------------------------------
// 	FANs Power Resources
//---------------------------------------------------------------------
// Names defined in AMI.ASL:
//	FAN1	  - control bits for FAN1 (CPU Fan)
//	FAN2	  - control bits for FAN2 (CPU Fan)
//	F1ON,F2ON - value to be write to turn the Fans ON
//	NFAN 	  - number of FANs
// Module contents:
//	1. Power Resources for Global FAN
//---------------------------------------------------------------------
	PowerResource(GFAN, 0, 0){	// Power Resource


	Method(_STA)
	{
		Return(Xor(FAN1, And(Not(F1ON),1)))
	}

	Method(_ON)  {			// Set the FAN On
		Store(F1ON, FAN1)
		If(LEqual(NFAN,2))
			{
			Store(F2ON, FAN2)
			}
	}
	Method(_OFF) {                  // Set the FAN OFF
		Xor(F1ON, 1, FAN1)

		If(LEqual(NFAN,2))
			{
			Xor(F2ON, 1, FAN2)
			}
	}
	}				// End resource for FAN
//---------------------------------------------------------------------

⌨️ 快捷键说明

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