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 /ReferenceCode/ME/AcpiTables | |
download | zprj-master.tar.xz |
Diffstat (limited to 'ReferenceCode/ME/AcpiTables')
-rw-r--r-- | ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.asl | 56 | ||||
-rw-r--r-- | ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.cif | 12 | ||||
-rw-r--r-- | ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.inf | 69 | ||||
-rw-r--r-- | ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.mak | 64 | ||||
-rw-r--r-- | ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.sdl | 31 | ||||
-rw-r--r-- | ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt_Edk.inf | 69 |
6 files changed, 301 insertions, 0 deletions
diff --git a/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.asl b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.asl new file mode 100644 index 0000000..3cd5a1a --- /dev/null +++ b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.asl @@ -0,0 +1,56 @@ +/*++ + 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 +--*/ + +/*++ + +Copyright (c) 2012 - 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. + +Module Name: + + MeSsdt.asl + +Abstract: + + Me SSDT Table ASL code + +--*/ + + +DefinitionBlock ( + "MeSsdt.aml", + "SSDT", + 0x01, + "MeSsdt", + "MeSsdt ", + 0x3000 + ) +{ + + OperationRegion(MENV,SystemMemory,0xFFFF0000,0xAA55) + Field(MENV,AnyAcc,Lock,Preserve) + { + MERV, 32, /// (000) ME NVS Protocol Revision + /// + /// PTT Solution + /// + PTTS, 8, /// (004) PTT Solution Method Selection + /// + /// PTT Allocated Buffer Address + /// + PTTB, 64, /// (005) PTT Allocated Buffer Address + + } +}
\ No newline at end of file diff --git a/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.cif b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.cif new file mode 100644 index 0000000..4ae2bc5 --- /dev/null +++ b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.cif @@ -0,0 +1,12 @@ +<component> + name = "MeSsdt" + category = ModulePart + LocalRoot = "ReferenceCode\Me\AcpiTables\MeSsdt\" + RefName = "MeAcpiTableSsdt" +[files] +"MeSsdt.sdl" +"MeSsdt.mak" +"MeSsdt.inf" +"MeSsdt_Edk.inf" +"MeSsdt.asl" +<endComponent> diff --git a/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.inf b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.inf new file mode 100644 index 0000000..6af6685 --- /dev/null +++ b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.inf @@ -0,0 +1,69 @@ +## @file +# Component description file for the ACPI tables +# +#@copyright +# Copyright (c) 2012 - 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 +# + + +[defines] +BASE_NAME = MeSsdt +FILE_GUID = 9A8F82D5-39B1-48DA-92DC-A22DA8834DF6 +COMPONENT_TYPE = ACPITABLE +FFS_EXT = .ffs + +[sources.common] + MeSsdt.ASL + +[libraries.common] + +[includes.common] + . + $(EFI_SOURCE) + $(EFI_SOURCE)/Include + $(EFI_SOURCE)/$(PROJECT_ME_ROOT)/Include + $(EDK_SOURCE)/Foundation/Efi + $(EDK_SOURCE)/Foundation/Include + $(EDK_SOURCE)/Foundation/Efi/Include + $(EDK_SOURCE)/Foundation/Framework/Include + $(EFI_SOURCE)/Include/IndustryStandard + $(EDK_SOURCE)/Foundation/Include/IndustryStandard + $(EDK_SOURCE)/Foundation/Library/Dxe/Include + $(EDK_SOURCE)/Foundation + $(EDK_SOURCE)/Foundation/Framework +# +# Typically the sample code referenced will be available in the code base already +# So keep this include at the end to defer to the source base definition +# and only use the sample code definition if source base does not include these files. +# +# $(EFI_SOURCE)/$(PROJECT_ME_ROOT)/SampleCode/Include + +# +# Edk II Glue Library, some headers 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/ME/AcpiTables/MeSsdt/MeSsdt.mak b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.mak new file mode 100644 index 0000000..b768a60 --- /dev/null +++ b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.mak @@ -0,0 +1,64 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* + +#************************************************************************* +#<AMI_FHDR_START> +# +# Name: MeSsdt.mak +# +# Description: MAK file for the ModulePart:MeSsdt +# +# +#<AMI_FHDR_END> +#************************************************************************* +all : BuildMeSsdt + +BuildMeSsdt : $(BUILD_DIR)\MeSsdt.ffs + +#----------------------------------------------------------------------- +# ASL compiler definition +#----------------------------------------------------------------------- +!IF "$(ACPIPLATFORM_ASL_COMPILER)"=="" +!ERROR It is an invalid path, please check your ASL compiler path. +!ENDIF + +IASL = $(ACPIPLATFORM_ASL_COMPILER) +#----------------------------------------------------------------------- +$(BUILD_DIR)\MeSsdt.aml : $(INTEL_MESSDT_ASL_FILE) + $(CP) /FI$(BUILD_DIR)\tokenasl.h $(INTEL_MESSDT_ASL_FILE) > $(BUILD_DIR)\MeSsdt.asl + $(ASLEXPANDER) $(BUILD_DIR)\MeSsdt.asl $(BUILD_DIR)\MeSsdt_Temp.asl $(BUILD_DIR) + $(IASL) -p $(BUILD_DIR)\MeSsdt.aml $(BUILD_DIR)\MeSsdt_Temp.asl + + +$(BUILD_DIR)\MeSsdt.sec: $(BUILD_DIR)\MeSsdt.aml + $(GENSECTION) -I $*.aml -O $@ -S EFI_SECTION_RAW + +$(BUILD_DIR)\MeSsdt.ffs: $(BUILD_DIR)\MeSsdt.sec + $(GENFFSFILE) -B $(BUILD_DIR) -V -o $@ -P1 <<$(BUILD_DIR)\MeSsdt.pkg + +PACKAGE.INF +[.] +BASE_NAME = MeSsdt +FFS_FILEGUID = 9A8F82D5-39B1-48DA-92DC-A22DA8834DF6 +FFS_FILETYPE = EFI_FV_FILETYPE_FREEFORM +FFS_ATTRIB_CHECKSUM = TRUE + +IMAGE_SCRIPT = +{ + Compress (dummy) { + $(PROJECT_DIR)\$(BUILD_DIR)\MeSsdt.sec + } +} +<<KEEP + diff --git a/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.sdl b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.sdl new file mode 100644 index 0000000..d1974ef --- /dev/null +++ b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt.sdl @@ -0,0 +1,31 @@ +TOKEN + Name = "MeSsdt_SUPPORT" + Value = "1" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes + Help = "Main switch to enable MeSsdt support in Project" +End + +MODULE + Help = "Includes MeSsdt.mak to Project" + File = "MeSsdt.mak" +End + +PATH + Name = "MeSsdt_DIR" +End + +TOKEN + Name = "INTEL_MESSDT_ASL_FILE" + Value = "$(MeSsdt_DIR)\MeSsdt.asl" + TokenType = Expression + TargetMAK = Yes +End + +ELINK + Name = "$(BUILD_DIR)\MeSsdt.ffs" + Parent = "FV_MAIN" + InvokeOrder = AfterParent +End diff --git a/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt_Edk.inf b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt_Edk.inf new file mode 100644 index 0000000..464e98b --- /dev/null +++ b/ReferenceCode/ME/AcpiTables/MeSsdt/MeSsdt_Edk.inf @@ -0,0 +1,69 @@ +## @file +# Component description file for the ACPI tables (for EDK1117) +# +#@copyright +# Copyright (c) 2012 - 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 +# + + +[defines] +BASE_NAME = MeSsdt +FILE_GUID = 9a8f82d5-39b1-48da-92dc-a22da8834df6 +COMPONENT_TYPE = ME_SSDT_ACPITABLE +FFS_EXT = .ffs + +[sources.common] + MeSsdt.ASL + +[libraries.common] + +[includes.common] + . + $(EFI_SOURCE) + $(EFI_SOURCE)/Include + $(EFI_SOURCE)/$(PROJECT_ME_ROOT)/Include + $(EDK_SOURCE)/Foundation/Efi + $(EDK_SOURCE)/Foundation/Include + $(EDK_SOURCE)/Foundation/Efi/Include + $(EDK_SOURCE)/Foundation/Framework/Include + $(EFI_SOURCE)/Include/IndustryStandard + $(EDK_SOURCE)/Foundation/Include/IndustryStandard + $(EDK_SOURCE)/Foundation/Library/Dxe/Include + $(EDK_SOURCE)/Foundation + $(EDK_SOURCE)/Foundation/Framework +# +# Typically the sample code referenced will be available in the code base already +# So keep this include at the end to defer to the source base definition +# and only use the sample code definition if source base does not include these files. +# +# $(EFI_SOURCE)/$(PROJECT_ME_ROOT)/SampleCode/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] |