pmbase.asl

来自「AMI 主板的BIOS源码。」· ASL 代码 · 共 72 行

ASL
72
字号
//**********************************************************************;
//     *****************************************************************;
//     *****************************************************************;
//     **                                                             **;
//     **      (C)Copyright 1985-1996, American Megatrends, Inc.      **;
//     **                                                             **;
//     **                     All Rights Reserved.                    **;
//     **                                                             **;
//     **           6145-F Northbelt Pkwy, Norcross, GA 30071         **;
//     **                                                             **;
//     **                     Phone (770)-246-8600                    **;
//     **                                                             **;
//     *****************************************************************;
//     *****************************************************************;
//**********************************************************************;
//		DON'T CHANGE ANY CODE UNLESS REQUIRED !!!
//**********************************************************************;
//		Detects the PM & SMbus address base
//		Registers applies for Intel PIIX4 only.
//**********************************************************************;

	Name(PMBR, 0)
	Name(SMBR, 0)

	OperationRegion(BAR0, PCI_Config, 0x40, 0x2)
	OperationRegion(BAR1, PCI_Config, 0x90, 0x2)

	Field(BAR0, ByteAcc, NoLock, Preserve){
			PMSB,16,
			}
	Field(BAR1, ByteAcc, NoLock, Preserve){
			SMSB,16,
			}

	Method(PMBS,0) {	// Return Power Management I/O base address

		If(PMBR)
			{}
		Else
			{
			And(PMSB, 0xFFFE, PMBR)
			}
	Return(PMBR)
	}

	Method(SMBS,0) {	// Return SMBus I/O base address

		If(SMBR)
			{}
		Else
		{
			And(SMSB, 0xFFFE, SMBR)
		}
	Return(SMBR)
	}

//**********************************************************************;
//     *****************************************************************;
//     *****************************************************************;
//     **                                                             **;
//     **      (C)Copyright 1985-1996, American Megatrends, Inc.      **;
//     **                                                             **;
//     **                     All Rights Reserved.                    **;
//     **                                                             **;
//     **           6145-F Northbelt Pkwy, Norcross, GA 30071         **;
//     **                                                             **;
//     **                     Phone (770)-246-8600                    **;
//     **                                                             **;
//     *****************************************************************;
//     *****************************************************************;
//**********************************************************************;

⌨️ 快捷键说明

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