From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- .../AcpiTables/Ssdt/RapidStartWrapper.asl | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 Board/EM/RapidStartWrapper/AcpiTables/Ssdt/RapidStartWrapper.asl (limited to 'Board/EM/RapidStartWrapper/AcpiTables/Ssdt') 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 +// +//********************************************************************** +// +// +// Name: RapidStartWrapper.asl +// +// Description: RapidStart ACPI ASL code to support OS control +// +// +//********************************************************************** + +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 ** +//** ** +//********************************************************************** +//********************************************************************** -- cgit v1.2.3