cust_fan.oem

来自「AMI 主板的BIOS源码」· OEM 代码 · 共 50 行

OEM
50
字号
//**********************************************************************;
//     *****************************************************************;
//     *****************************************************************;
//     **                                                             **;
//     **      (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 + =
减小字号Ctrl + -
显示快捷键?