From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- .../Guid/AcpiTableStorage/DptfAcpiTableStorage.c | 34 +++++++++++ .../Guid/AcpiTableStorage/DptfAcpiTableStorage.h | 35 +++++++++++ ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.cif | 12 ++++ ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.inf | 55 +++++++++++++++++ ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.mak | 69 ++++++++++++++++++++++ ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.sdl | 37 ++++++++++++ 6 files changed, 242 insertions(+) create mode 100644 ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.c create mode 100644 ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.h create mode 100644 ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.cif create mode 100644 ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.inf create mode 100644 ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.mak create mode 100644 ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.sdl (limited to 'ReferenceCode/AcpiTables/Dptf/Guid') diff --git a/ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.c b/ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.c new file mode 100644 index 0000000..35552e2 --- /dev/null +++ b/ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.c @@ -0,0 +1,34 @@ +/** @file + The GUID definition for Dptf ACPI table storage file name + +@copyright + Copyright (c) 1999 - 2013 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 "DptfAcpiTableStorage.h" + +/// +/// Protocol GUID definition +/// +EFI_GUID gDptfAcpiTableStorageGuid = DPTF_ACPI_TABLE_STORAGE_GUID; +EFI_GUID gDptfAcpiTableStorageGuidFfrd = DPTF_ACPI_TABLE_STORAGE_GUID_FFRD; + +/// +/// Protocol description string +/// +EFI_GUID_STRING (&gDptfAcpiTableStorageGuid, "Dynamic Platform Thermal Framework ACPI Table Storage File Name", "Dynamic Platform Thermal Framework ACPI Table Storage file name GUID"); diff --git a/ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.h b/ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.h new file mode 100644 index 0000000..a5330a0 --- /dev/null +++ b/ReferenceCode/AcpiTables/Dptf/Guid/AcpiTableStorage/DptfAcpiTableStorage.h @@ -0,0 +1,35 @@ +/** @file + GUID definition for the Dptf ACPI table storage file name + +@copyright + Copyright (c) 1999 - 2013 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 _DPTF_ACPI_TABLE_STORAGE_H_ +#define _DPTF_ACPI_TABLE_STORAGE_H_ + +#define DPTF_ACPI_TABLE_STORAGE_GUID \ + { 0xea139578, 0xfea0, 0x4dd2, 0x91, 0xb5, 0x69, 0x53, 0x81, 0x9e, 0xf1, 0xe4 } + +extern EFI_GUID gDptfAcpiTableStorageGuid; + +#define DPTF_ACPI_TABLE_STORAGE_GUID_FFRD \ + { 0x2820908b, 0x87f6, 0x446b, 0xa1, 0x0, 0x74, 0xee, 0xe3, 0x6e, 0x29, 0x18 } + +extern EFI_GUID gDptfAcpiTableStorageGuidFfrd; + +#endif diff --git a/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.cif b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.cif new file mode 100644 index 0000000..f888fb6 --- /dev/null +++ b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.cif @@ -0,0 +1,12 @@ + + name = "DptfGuidLib" + category = ModulePart + LocalRoot = "ReferenceCode\AcpiTables\Dptf\Guid\" + RefName = "DptfGuidLib" +[files] +"DptfGuidLib.sdl" +"DptfGuidLib.mak" +"DptfGuidLib.inf" +"AcpiTableStorage\DptfAcpiTableStorage.c" +"AcpiTableStorage\DptfAcpiTableStorage.h" + diff --git a/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.inf b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.inf new file mode 100644 index 0000000..7d800c8 --- /dev/null +++ b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.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 = DptfGuidLib +COMPONENT_TYPE = LIBRARY + +[sources.common] + AcpiTableStorage/DptfAcpiTableStorage.c + AcpiTableStorage/DptfAcpiTableStorage.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)-Dptf +# +# 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/Dptf/Guid/DptfGuidLib.mak b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.mak new file mode 100644 index 0000000..f1a7a22 --- /dev/null +++ b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.mak @@ -0,0 +1,69 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (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/SharkBayRefCodes/DPTF/DptfGuidLib/DptfGuidLib.mak 1 4/24/12 9:27a Victortu $ +# +# $Revision: 1 $ +# +# $Date: 4/24/12 9:27a $ +#************************************************************************* +# Revision History +# ---------------- +# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/DPTF/DptfGuidLib/DptfGuidLib.mak $ +# +# 1 4/24/12 9:27a Victortu +# +#************************************************************************* +# +# +# Name: DptfGuidLib.mak +# +# Description: MAke file to build Intel DPTF GuidLib components +# +# +#************************************************************************* +all : DptfGuidLib + +$(DptfGuidLib_LIB) : DptfGuidLib + +DptfGuidLib : $(BUILD_DIR)\DptfGuidLib.mak DptfGuidLibBin + +$(BUILD_DIR)\DptfGuidLib.mak : $(INTEL_DPTF_GUIDLIB_DIR)\$(@B).cif $(INTEL_DPTF_GUIDLIB_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(INTEL_DPTF_GUIDLIB_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +DptfGuidLib_INCLUDES=\ + $(EDK_INCLUDES)\ + $(EdkIIGlueLib_INCLUDES) + +DptfGuidLibBin : + $(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS)\ + /f $(BUILD_DIR)\DptfGuidLib.mak all\ + "MY_INCLUDES=$(DptfGuidLib_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/Dptf/Guid/DptfGuidLib.sdl b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.sdl new file mode 100644 index 0000000..ffd5a8b --- /dev/null +++ b/ReferenceCode/AcpiTables/Dptf/Guid/DptfGuidLib.sdl @@ -0,0 +1,37 @@ +TOKEN + Name = DptfGuidLib_SUPPORT + Value = 1 + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes + Help = "Main switch to enable DptfGuidLib support in Project" +End + +MODULE + Help = "Includes DptfGuidLib.mak to Project" + File = "DptfGuidLib.mak" +End + +PATH + Name = "INTEL_DPTF_GUIDLIB_DIR" +End + +TOKEN + Name = "DptfGuidLib_LIB" + Value = "$(BUILD_DIR)\DptfGuidLib.lib" + TokenType = Expression + TargetMAK = Yes +End + +ELINK + Name = "/I$(INTEL_DPTF_GUIDLIB_DIR)" + Parent = "DPTF_INCLUDES" + InvokeOrder = AfterParent +End + +ELINK + Name = "/I$(INTEL_DPTF_GUIDLIB_DIR)\AcpiTableStorage" + Parent = "DPTF_INCLUDES" + InvokeOrder = AfterParent +End \ No newline at end of file -- cgit v1.2.3