diff options
Diffstat (limited to 'ReferenceCode/AcpiTables/Cppc/Guid')
6 files changed, 222 insertions, 0 deletions
diff --git a/ReferenceCode/AcpiTables/Cppc/Guid/AcpiTableStorage/CppcAcpiTableStorage.c b/ReferenceCode/AcpiTables/Cppc/Guid/AcpiTableStorage/CppcAcpiTableStorage.c new file mode 100644 index 0000000..af25bc6 --- /dev/null +++ b/ReferenceCode/AcpiTables/Cppc/Guid/AcpiTableStorage/CppcAcpiTableStorage.c @@ -0,0 +1,33 @@ +/** @file + The GUID definition for Cppc 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 +**/ + +#include "EdkIIGlueDxe.h" +#include "CppcAcpiTableStorage.h" + +/// +/// Protocol GUID definition +/// +EFI_GUID gCppcAcpiTableStorageGuid = CPPC_ACPI_TABLE_STORAGE_GUID; + +/// +/// Protocol description string +/// +EFI_GUID_STRING (&gCppcAcpiTableStorageGuid, "Collaborative Processor Performance Control ACPI Table Storage File Name", "Collaborative Processor Performance Control ACPI Table Storage file name GUID"); diff --git a/ReferenceCode/AcpiTables/Cppc/Guid/AcpiTableStorage/CppcAcpiTableStorage.h b/ReferenceCode/AcpiTables/Cppc/Guid/AcpiTableStorage/CppcAcpiTableStorage.h new file mode 100644 index 0000000..417ad64 --- /dev/null +++ b/ReferenceCode/AcpiTables/Cppc/Guid/AcpiTableStorage/CppcAcpiTableStorage.h @@ -0,0 +1,30 @@ +/** @file + GUID definition for the Cppc 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 _CPPC_ACPI_TABLE_STORAGE_H_ +#define _CPPC_ACPI_TABLE_STORAGE_H_ + +#define CPPC_ACPI_TABLE_STORAGE_GUID \ + { 0x60e31de1, 0x3ec, 0x492a, 0x95, 0x98, 0x65, 0xa3, 0xc5, 0xe, 0xf, 0x6b } + +extern EFI_GUID gCppcAcpiTableStorageGuid; + +#endif diff --git a/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.cif b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.cif new file mode 100644 index 0000000..fa8673e --- /dev/null +++ b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.cif @@ -0,0 +1,12 @@ +<component> + name = "CppcGuidLib" + category = ModulePart + LocalRoot = "ReferenceCode\AcpiTables\Cppc\Guid\" + RefName = "CppcGuidLib" +[files] +"CppcGuidLib.sdl" +"CppcGuidLib.mak" +"CppcGuidLib.inf" +"AcpiTableStorage\CppcAcpiTableStorage.c" +"AcpiTableStorage\CppcAcpiTableStorage.h" +<endComponent> diff --git a/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.inf b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.inf new file mode 100644 index 0000000..23131aa --- /dev/null +++ b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.inf @@ -0,0 +1,55 @@ +## @file +# Component description file. +# +#@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 = CppcGuidLib +COMPONENT_TYPE = LIBRARY + +[sources.common] + AcpiTableStorage/CppcAcpiTableStorage.c + AcpiTableStorage/CppcAcpiTableStorage.h + +[includes.common] + . + $(EFI_SOURCE) + $(EDK_SOURCE)/Foundation + $(EDK_SOURCE)/Foundation/Efi + $(EDK_SOURCE)/Foundation/Efi/Include + $(EDK_SOURCE)/Foundation/Framework + $(EDK_SOURCE)/Foundation/Framework/Include + $(EDK_SOURCE)/Foundation/Include + $(EDK_SOURCE)/Foundation/Include/IndustryStandard + $(EFI_SOURCE)/$(PROJECT_ACPI_ROOT)/Cppc +# +# 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] diff --git a/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.mak b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.mak new file mode 100644 index 0000000..86fed09 --- /dev/null +++ b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.mak @@ -0,0 +1,55 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2012, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* + +#************************************************************************* +#<AMI_FHDR_START> +# +# Name: CppcGuidLib.mak +# +# Description: Make file to build Intel CPPC GuidLib components +# +#<AMI_FHDR_END> +#************************************************************************* +all : CppcGuidLib + +$(CppcGuidLib_LIB) : CppcGuidLib + +CppcGuidLib : $(BUILD_DIR)\CppcGuidLib.mak CppcGuidLibBin + +$(BUILD_DIR)\CppcGuidLib.mak : $(INTEL_CPPC_GUIDLIB_DIR)\$(@B).cif $(INTEL_CPPC_GUIDLIB_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(INTEL_CPPC_GUIDLIB_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +CppcGuidLib_INCLUDES=\ + $(EDK_INCLUDES)\ + $(EdkIIGlueLib_INCLUDES) + +CppcGuidLibBin : + $(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS)\ + /f $(BUILD_DIR)\CppcGuidLib.mak all\ + "MY_INCLUDES=$(CppcGuidLib_INCLUDES)" \ + TYPE=LIBRARY + +#********************************************************************** +#********************************************************************** +#** ** +#** (C)Copyright 1985-2012, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#********************************************************************** +#**********************************************************************
\ No newline at end of file diff --git a/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.sdl b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.sdl new file mode 100644 index 0000000..7e03f5e --- /dev/null +++ b/ReferenceCode/AcpiTables/Cppc/Guid/CppcGuidLib.sdl @@ -0,0 +1,37 @@ +TOKEN + Name = "CppcGuidLib_SUPPORT" + Value = "1" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes + Help = "Main switch to enable CppcGuidLib support in Project" +End + +MODULE + Help = "Includes CppcGuidLib.mak to Project" + File = "CppcGuidLib.mak" +End + +PATH + Name = "INTEL_CPPC_GUIDLIB_DIR" +End + +TOKEN + Name = "CppcGuidLib_LIB" + Value = "$(BUILD_DIR)\CppcGuidLib.lib" + TokenType = Expression + TargetMAK = Yes +End + +ELINK + Name = "/I$(INTEL_CPPC_GUIDLIB_DIR)" + Parent = "CPPC_INCLUDES" + InvokeOrder = AfterParent +End + +ELINK + Name = "/I$(INTEL_CPPC_GUIDLIB_DIR)\AcpiTableStorage" + Parent = "CPPC_INCLUDES" + InvokeOrder = AfterParent +End
\ No newline at end of file |