diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl | |
download | zprj-master.tar.xz |
Diffstat (limited to 'Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl')
-rw-r--r-- | Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl b/Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl new file mode 100644 index 0000000..ad41ac1 --- /dev/null +++ b/Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl @@ -0,0 +1,131 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2012, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/RapidStartWrapper/Ssdt/RapidStartWrapper.asl 1 12/27/12 2:25a Bensonlai $ +// +// $Revision: 1 $ +// +// $Date: 12/27/12 2:25a $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/RapidStartWrapper/Ssdt/RapidStartWrapper.asl $ +// +// 1 12/27/12 2:25a Bensonlai +// [TAG] EIP110680 +// [Category] New Feature +// [Description] When iRST application is run under OS, and change +// timer. +// BIOS should update the changed to Setup option as well. +// [Files] Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.c +// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.h +// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.mak +// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.dxs +// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.sdl +// Board\EM\RapidStartWrapper\Smm\RapidStartWrapperSmm.cif +// Board\EM\RapidStartWrapper\AcpiTables\RapidStartWrapperAcpiTables.cif +// Board\EM\RapidStartWrapper\AcpiTables\RapidStartWrapperAcpiTables.sdl +// Board\EM\RapidStartWrapper\AcpiTables\Ssdt\RapidStartWrapper.asl +// Board\EM\RapidStartWrapper\RapidStartSetup\RapidStartSetup.sd +// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: RapidStartWrapper.asl +// +// Description: RapidStart ACPI ASL code to support OS control +// +//<AMI_FHDR_END> +//********************************************************************** + +DefinitionBlock ( + "RapidStart.aml", + "SSDT", + 0x01, + "Iffs", + "IffsAsl", + 0x3000 + ) +{ + + Scope (\_SB) { + Device(IFFS) { + OperationRegion(FFSN,SystemMemory,0xFFFF0000,0xAA55) + Field(FFSN,AnyAcc,Lock,Preserve) + { + FFSA, 8, // (0) iFFS available events + FFSS, 8, // (1) iFFS enabled events + FFST, 16, // (2) iFFS wake timer in minutes + FFSP, 32 // (4) iFFS performance monitoring data + } + +//AMIOVERRIDE_BEGIN + OperationRegion (RSMI, SystemIO, 0xB2, 0x02) + Field (RSMI, ByteAcc, NoLock, Preserve) { + SMIC, 8, + SMID, 8 + } +//AMIOVERRIDE_END + + Name(_HID,EISAID("INT3392")) + Name(_CID,EISAID("PNP0C02")) + + Method(GFFS,0,Serialized) { + Return(FFSS) + } + Method(SFFS,1,Serialized) { + And(Arg0, FFSA, FFSS) +//AMIOVERRIDE_BEGIN + Store(0x01, SMID) + Store(0xB4, SMIC) +//AMIOVERRIDE_END + Return(FFSS) + } + Method(GFTV,0,Serialized) { + Return(FFST) + } + Method(SFTV,1,Serialized) { + // + // 24*60=1440 minutes (24 Hours) + // + If (LLessEqual(Arg0,1440)) { + Store(Arg0,FFST) + } Else { + And(FFSS,0xFFFE,FFSS) + Store(10,FFST) + } +//AMIOVERRIDE_BEGIN + Store(0x01, SMID) + Store(0xB4, SMIC) +//AMIOVERRIDE_END + Return(FFST) + } + } + } +} + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2012, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** |