diff options
Diffstat (limited to 'ReferenceCode/RapidStart/Guid')
10 files changed, 436 insertions, 0 deletions
diff --git a/ReferenceCode/RapidStart/Guid/RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.c b/ReferenceCode/RapidStart/Guid/RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.c new file mode 100644 index 0000000..bd875b5 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.c @@ -0,0 +1,40 @@ +/** @file + The GUID definition for RapidStart ACPI table storage file name + +@copyright + Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains an 'Intel Peripheral Driver' and uniquely + identified as "Intel Reference Module" and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +**/ + +// +// Statements that include other files +// +#include "EdkIIGlueDxe.h" +#include "RapidStartAcpiTableStorage.h" + +/// +/// Protocol GUID definition +/// +EFI_GUID gRapidStartAcpiTableStorageGuid = RAPID_START_ACPI_TABLE_STORAGE_GUID; + +/// +/// Protocol description +/// +EFI_GUID_STRING + ( + &gRapidStartAcpiTableStorageGuid, "RapidStart ACPI Table Storage File Name", + "RapidStart ACPI Table Storage file name GUID" + ); diff --git a/ReferenceCode/RapidStart/Guid/RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.h b/ReferenceCode/RapidStart/Guid/RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.h new file mode 100644 index 0000000..fe590e4 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.h @@ -0,0 +1,31 @@ +/** @file + GUID definition for the RapidStart ACPI table storage file name + +@copyright + Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains an 'Intel Peripheral Driver' and uniquely + identified as "Intel Reference Module" and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +**/ +#ifndef _RAPID_START_ACPI_TABLE_STORAGE_H_ +#define _RAPID_START_ACPI_TABLE_STORAGE_H_ + +#define RAPID_START_ACPI_TABLE_STORAGE_GUID \ + { \ + 0x60ac3a8f, 0x4d66, 0x4cd4, 0x89, 0x5a, 0xc3, 0xf0, 0x6e, 0x66, 0x65, 0xee \ + } + +extern EFI_GUID gRapidStartAcpiTableStorageGuid; + +#endif diff --git a/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.cif b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.cif new file mode 100644 index 0000000..66d2889 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.cif @@ -0,0 +1,16 @@ +<component> + name = "RapidStartGuidLib" + category = ModulePart + LocalRoot = "ReferenceCode\RapidStart\Guid" + RefName = "RapidStartGuidLib" +[files] +"RapidStartGuidLib.sdl" +"RapidStartGuidLib.mak" +"RapidStartGuidLib.inf" +"RapidStartAcpiTableStorage\RapidStartAcpiTableStorage.c" +"RapidStartAcpiTableStorage\RapidStartAcpiTableStorage.h" +"RapidStartPersistentData\RapidStartPersistentData.c" +"RapidStartPersistentData\RapidStartPersistentData.h" +"RapidStartTransition\RapidStartTransition.c" +"RapidStartTransition\RapidStartTransition.h" +<endComponent> diff --git a/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.inf b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.inf new file mode 100644 index 0000000..d38d2ba --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.inf @@ -0,0 +1,60 @@ +## @file +# Component description file for the GUID library +# +#@copyright +# Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved +# This software and associated documentation (if any) is furnished +# under a license and may only be used or copied in accordance +# with the terms of the license. Except as permitted by such +# license, no part of this software or documentation may be +# reproduced, stored in a retrieval system, or transmitted in any +# form or by any means without the express written consent of +# Intel Corporation. +# +# This file contains an 'Intel Peripheral Driver' and uniquely +# identified as "Intel Reference Module" and is +# licensed for Intel CPUs and chipsets under the terms of your +# license agreement with Intel or your vendor. This file may +# be modified by the user, subject to additional terms of the +# license agreement +# + +[defines] +BASE_NAME = RapidStartGuidLib +COMPONENT_TYPE = LIBRARY + +[sources.common] + RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.h + RapidStartAcpiTableStorage/RapidStartAcpiTableStorage.c + RapidStartPersistentData/RapidStartPersistentData.c + RapidStartPersistentData/RapidStartPersistentData.h + RapidStartTransition/RapidStartTransition.c + RapidStartTransition/RapidStartTransition.h + +[includes.common] + $(EFI_SOURCE) + $(EDK_SOURCE)/Foundation/Efi + $(EDK_SOURCE)/Foundation/Include + $(EDK_SOURCE)/Foundation/Efi/Include + $(EDK_SOURCE)/Foundation/Framework/Include + $(EDK_SOURCE)/Foundation/Include/IndustryStandard + $(EFI_SOURCE)/Include + $(EFI_SOURCE)/$(PROJECT_RAPID_START_ROOT) + $(EFI_SOURCE)/$(PROJECT_RAPID_START_ROOT)/Include + +# +# Edk II Glue Library, some hearder are included by R9 header so have to include +# + + $(EFI_SOURCE) + $(EFI_SOURCE)/Framework + $(EDK_SOURCE)/Foundation + $(EDK_SOURCE)/Foundation/Framework + $(EDK_SOURCE)/Foundation/Include/IndustryStandard + $(EDK_SOURCE)/Foundation/Core/Dxe + $(EDK_SOURCE)/Foundation/Include/Pei + $(EDK_SOURCE)/Foundation/Library/Dxe/Include + $(EDK_SOURCE)/Foundation/Library/EdkIIGlueLib/Include + +[nmake.common] +C_STD_INCLUDE= diff --git a/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.mak b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.mak new file mode 100644 index 0000000..398a29a --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.mak @@ -0,0 +1,82 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (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/RapidStartGuidLib/RapidStartGuidLib.mak 3 10/15/12 5:40a Bensonlai $ +# +# $Revision: 3 $ +# +# $Date: 10/15/12 5:40a $ +#************************************************************************* +# Revision History +# ---------------- +# $Log: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/RapidStartGuidLib/RapidStartGuidLib.mak $ +# +# 3 10/15/12 5:40a Bensonlai +# [Category] Improvement +# [Severity] Important +# [Description] Rename all IFFS sting to Rapid Start. +# [Files] Board\EM\RapidStartWrapper\*.*, ReferenceCode\RapidStart\*.* +# +# 2 9/26/12 3:31a Yurenlai +# [TAG] None +# [Category] Improvement +# [Severity] Important +# [Description] Update Intel Rapid Start Technology Framework Reference +# Code Beta Version 0.7.0. +# [Description] ReferenceCode\RapidStart\*.*, RapidStartPeiLib.h +# +# 1 4/19/12 8:04a Yurenlai +# Initial check in. +# +#************************************************************************* +all : RapidStartGuidLib + +$(RapidStartGuidLib_LIB) : RapidStartGuidLib + +RapidStartGuidLib : $(BUILD_DIR)\RapidStartGuidLib.mak RapidStartGuidLibBin + +$(BUILD_DIR)\RapidStartGuidLib.mak : $(RapidStartGuidLib_DIR)\$(@B).cif $(RapidStartGuidLib_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(RapidStartGuidLib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +RapidStartGuidLib_INCLUDES =\ + $(EDK_INCLUDES)\ + $(INTEL_PCH_INCLUDES)\ + $(EdkIIGlueLib_INCLUDES)\ + $(RAPIDSTART_INCLUDES)\ + +RapidStartGuidLibBin : + $(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS)\ + /f $(BUILD_DIR)\RapidStartGuidLib.mak all\ + "MY_INCLUDES=$(RapidStartGuidLib_INCLUDES)" \ + TYPE=LIBRARY +!IF "$(x64_BUILD)"=="1" + $(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS) BUILD_DIR=$(BUILD_DIR)\IA32\ + /f $(BUILD_DIR)\RapidStartGuidLib.mak all\ + "MY_INCLUDES=$(RapidStartGuidLib_INCLUDES)" \ + TYPE=PEI_LIBRARY +!ENDIF +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2012, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* diff --git a/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.sdl b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.sdl new file mode 100644 index 0000000..8e60134 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartGuidLib.sdl @@ -0,0 +1,68 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, 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/RapidStartGuidLib/RapidStartGuidLib.sdl 1 4/19/12 8:04a Yurenlai $ +# +# $Revision: 1 $ +# +# $Date: 4/19/12 8:04a $ +#************************************************************************* +# Revision History +# ---------------- +# $Log: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/RapidStartGuidLib/RapidStartGuidLib.sdl $ +# +# 1 4/19/12 8:04a Yurenlai +# Initial check in. +# +#************************************************************************* +TOKEN + Name = "RapidStartGuidLib_SUPPORT" + Value = "1" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + TargetH = Yes + Master = Yes + Help = "Main switch to enable iFFS GUID LIB support in Project" +End + +MODULE + File = "RapidStartGuidLib.mak" + Help = "Includes RapidStartGuidLib.mak to Project" +End + +PATH + Name = "RapidStartGuidLib_DIR" +End + +TOKEN + Name = "RapidStartGuidLib_LIB" + Value = "$$(LIB_BUILD_DIR)\RapidStartGuidLib.lib" + TokenType = Expression + TargetMAK = Yes +End +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* diff --git a/ReferenceCode/RapidStart/Guid/RapidStartPersistentData/RapidStartPersistentData.c b/ReferenceCode/RapidStart/Guid/RapidStartPersistentData/RapidStartPersistentData.c new file mode 100644 index 0000000..ff51884 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartPersistentData/RapidStartPersistentData.c @@ -0,0 +1,27 @@ +/** @file + The GUID definition for RapidStart Persistent Data + +@copyright + Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains an 'Intel Peripheral Driver' and uniquely + identified as "Intel Reference Module" and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +**/ +#include "EdkIIGlueDxe.h" +#include "RapidStartPersistentData.h" + +EFI_GUID gRapidStartPersistentDataGuid = RAPID_START_PERSISTENT_DATA_GUID; +CHAR16 gRapidStartPersistentDataName[] = RAPID_START_PERSISTENT_DATA_NAME; + +EFI_GUID_STRING(&gRapidStartPersistentDataGuid, "RapidStart Persistent Data", "RapidStart Persistent Data GUID"); diff --git a/ReferenceCode/RapidStart/Guid/RapidStartPersistentData/RapidStartPersistentData.h b/ReferenceCode/RapidStart/Guid/RapidStartPersistentData/RapidStartPersistentData.h new file mode 100644 index 0000000..0436e98 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartPersistentData/RapidStartPersistentData.h @@ -0,0 +1,41 @@ +/** @file + GUID definition for the RapidStart Persistent Data + +@copyright + Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains an 'Intel Peripheral Driver' and uniquely + identified as "Intel Reference Module" and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +**/ +#ifndef _RAPID_START_PERSISTENT_DATA_H_ +#define _RAPID_START_PERSISTENT_DATA_H_ + +/// +/// Publish GUID/Name definition for platform code to identify if Rapid Start +/// function is enabled or not. Platform code is able to provide related setup +/// options for further control and configuration by detecting +/// RAPID_START_PERSISTENT_DATA_GUID/ RAPID_START_PERSISTENT_DATA_NAME exists or not +/// in BIOS setup. +/// +#define RAPID_START_PERSISTENT_DATA_GUID \ + { \ + 0xf9f0b131, 0xf346, 0x4f16, 0x80, 0xdd, 0xf9, 0x41, 0x07, 0x2b, 0x3a, 0x7d \ + } + +#define RAPID_START_PERSISTENT_DATA_NAME L"RapidStartData" + +extern EFI_GUID gRapidStartPersistentDataGuid; +extern CHAR16 gRapidStartPersistentDataName[]; + +#endif diff --git a/ReferenceCode/RapidStart/Guid/RapidStartTransition/RapidStartTransition.c b/ReferenceCode/RapidStart/Guid/RapidStartTransition/RapidStartTransition.c new file mode 100644 index 0000000..63ac569 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartTransition/RapidStartTransition.c @@ -0,0 +1,40 @@ +/** @file + GUIDs used for RapidStart Transition. + +@copyright + Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains an 'Intel Peripheral Driver' and uniquely + identified as "Intel Reference Module" and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +**/ + +// +// Statements that include other files +// +#include "EdkIIGluePeim.h" +#include "RapidStartConfig.h" +#include "RapidStartTransition.h" +#include EFI_PPI_DEFINITION (PeiGfxPpi) + +/// +/// The purpose of this PPI GUID is to trigger the RapidStartTransition +/// for IBVs can decide the best point to trigger our Rapid Start module. +/// +#ifdef RAPID_START_ON_START_PPI_INSTALLED +EFI_GUID gRapidStartTransitionPpiGuid = PEI_RAPID_START_TRANSITION_PPI_GUID; +#else +EFI_GUID gRapidStartTransitionPpiGuid = PEI_GFX_PPI_GUID; +#endif + +EFI_GUID_STRING(&gRapidStartTransitionPpiGuid, "RapidStart Transition", "RapidStart Transition GUID"); diff --git a/ReferenceCode/RapidStart/Guid/RapidStartTransition/RapidStartTransition.h b/ReferenceCode/RapidStart/Guid/RapidStartTransition/RapidStartTransition.h new file mode 100644 index 0000000..ce13472 --- /dev/null +++ b/ReferenceCode/RapidStart/Guid/RapidStartTransition/RapidStartTransition.h @@ -0,0 +1,31 @@ +/** @file + GUID definition for the RapidStart Transition + +@copyright + Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains an 'Intel Peripheral Driver' and uniquely + identified as "Intel Reference Module" and is + licensed for Intel CPUs and chipsets under the terms of your + license agreement with Intel or your vendor. This file may + be modified by the user, subject to additional terms of the + license agreement +**/ +#ifndef _RAPID_START_TRANSITION_H_ +#define _RAPID_START_TRANSITION_H_ + +#define PEI_RAPID_START_TRANSITION_PPI_GUID \ + { \ + 0xde8f2878, 0x36d5, 0x498e, 0xba, 0x59, 0x16, 0x8c, 0x26, 0x47, 0xb3, 0x35 \ + } + +extern EFI_GUID gRapidStartTransitionPpiGuid; + +#endif |