diff options
Diffstat (limited to 'Board/EM/SMBIOS/SmbiosDMIEdit')
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit32.obj | bin | 0 -> 25687 bytes | |||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit64.obj | bin | 0 -> 27565 bytes | |||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c | 204 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c32 | 13 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c64 | 13 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.cif | 17 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.dxs | 82 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.mak | 98 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.sdl | 50 | ||||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc32.obj | bin | 0 -> 62125 bytes | |||
-rw-r--r-- | Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc64.obj | bin | 0 -> 74299 bytes |
11 files changed, 477 insertions, 0 deletions
diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit32.obj b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit32.obj Binary files differnew file mode 100644 index 0000000..227a2cb --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit32.obj diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit64.obj b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit64.obj Binary files differnew file mode 100644 index 0000000..dc15171 --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEdit64.obj diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c new file mode 100644 index 0000000..0aff388 --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c @@ -0,0 +1,204 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** +//********************************************************************** +// $Header: /Alaska/BIN/Modules/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c 8 4/06/10 3:26p Davidd $ +// +// $Revision: 8 $ +// +// $Date: 4/06/10 3:26p $ +//***************************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c $ +// +// 8 4/06/10 3:26p Davidd +// Added code to enable shadow ram write by calling the newly added +// generic OemRuntimeShadowRamWrite function from CSP Lib. +// +// 7 6/02/09 4:51p Davidd +// Updated AMI headers (EIP 22180) +// +// 6 10/27/08 1:04p Davidd +// +// 5 9/26/08 11:02a Davidd +// Provided sample code to enable / disable E000 and F000 shadow for Intel +// chipset. +// +// 4 11/19/07 11:47a Robert +// +// 3 12/15/06 5:37p Davidd +// Code cleanup and reformatted to coding standard. +// +// 2 11/02/06 10:09a Fasihm +// Updated the code from Assembly to C, so as to compile and build in the +// x64 BIOS build environment. +// +// 1 5/24/06 11:59a Fasihm +// Initial check-in for the Santa Rosa Project. (Matanzas CRB) with +// Crestline + ICH8M + Merom Processor. +// +// 1 8/16/05 11:04a Mirk +// +// 1 8/10/05 11:31a Davidd +// Initial checkin. To be used with SMBIOS Core ALPHA_01.04. +// +// 1 8/10/05 11:18a Davidd +// New SmbiosDMIEditBoard component. +// +//***************************************************************************** + +//<AMI_FHDR_START> +//---------------------------------------------------------------------------- +// +// Name: SmbiosDMIEditBoard.C +// +// Description: This file contains code for OEM related code for DMIEdit +// +//---------------------------------------------------------------------------- +//<AMI_FHDR_END> + +//---------------------------------------------------------------------------- +// Includes + +#include <Token.h> +#include <EFI.h> +#include <AmiDxeLib.h> +#include <AmiCspLib.h> + +extern +VOID OemRuntimeShadowRamWrite( + IN BOOLEAN Enable +); + +// // +// // Sample code for Weybridge CRB. Needs to be changed for other platforms. +// // +//UINT8 Reg90Byte; // 0F000 PAM Reg +//#if ((defined(ITK_SUPPORT) && (ITK_SUPPORT != 0)) || SMBIOS_TABLE_LOCATION) +//UINT8 Reg95Byte; // 0E000-0E400 PAM Reg +//UINT8 Reg96Byte; // 0E8000-0EC00 PAM Reg +//#endif + +//<AMI_PHDR_START> +//---------------------------------------------------------------------------- +// ***** PORTING REQUIRED ***** +// (if SMBIOS module is part of the project) +//---------------------------------------------------------------------------- +// Procedure: EnableShadowWrite +// +// Description: This function enables write to F000 shadow, +// and E000 shadow if ITK_SUPPORT token +// or SMBIOS_TABLE_LOCATION token is set. +// +// Input: None +// +// Output: None +// +// Note: +// +//---------------------------------------------------------------------------- +//<AMI_PHDR_END> +VOID +EnableShadowWrite (VOID) +{ + OemRuntimeShadowRamWrite(TRUE); // Call this generic function + // if CSP Library in project is + // 4.6.4.0_CSPLibrary_013 or later + +// // +// // +// // Sample code for Weybridge CRB. Needs to be changed for other platforms. +// // + +// UINT8 bValue; + +// // 0F000 shadow +// IoWrite32(0x0CF8, 0x80000090); +// Reg90Byte = bValue = IoRead8(0x0CFC); +// bValue |= 0x30; +// IoWrite8(0x0CFC, bValue); + +//#if ((defined(ITK_SUPPORT) && (ITK_SUPPORT != 0)) || SMBIOS_TABLE_LOCATION) +// // 0E000-0E400 shadow +// IoWrite32(0x0CF8, 0x80000095); +// Reg95Byte = bValue = IoRead8(0x0CFD); +// bValue |= 0x33; +// IoWrite8(0x0CFD, bValue); + +// // 0E800-0EC00 shadow +// IoWrite32(0x0CF8, 0x80000096); +// Reg96Byte = bValue = IoRead8(0x0CFE); +// bValue |= 0x33; +// IoWrite8(0x0CFE, bValue); +//#endif +} + +//<AMI_PHDR_START> +//---------------------------------------------------------------------------- +// ***** PORTING REQUIRED ***** +// (if SMBIOS module is part of the project) +//---------------------------------------------------------------------------- +// Procedure: DisableShadowWrite +// +// Description: This function makes F000 shadow read only, +// and E000 shadow read only if ITK_SUPPORT token +// or SMBIOS_TABLE_LOCATION token is set. +// +// Input: None +// +// Output: None +// +// Note: +// +//---------------------------------------------------------------------------- +//<AMI_PHDR_END> +VOID +DisableShadowWrite (VOID) +{ + OemRuntimeShadowRamWrite(FALSE); // Call this generic function + // if CSP Library in project is + // 4.6.4.0_CSPLibrary_013 or later + +// // +// // Sample code for Weybridge CRB. Needs to be changed for other platforms. +// // + +// // 0F000 shadow +// IoWrite32(0x0CF8, 0x80000090); +// IoWrite8(0x0CFC, Reg90Byte); + +//#if ((defined(ITK_SUPPORT) && (ITK_SUPPORT != 0)) || SMBIOS_TABLE_LOCATION) +// // 0E000-0E400 shadow +// IoWrite32(0x0CF8, 0x80000095); +// IoWrite8(0x0CFD, Reg95Byte); + +// // 0E800-0EC00 shadow +// IoWrite32(0x0CF8, 0x80000096); +// IoWrite8(0x0CFE, Reg96Byte); +//#endif +} + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c32 b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c32 new file mode 100644 index 0000000..e3dbcef --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c32 @@ -0,0 +1,13 @@ +<component> + name = "SmbiosDMIEditBoard" + category = ModulePart + LocalRoot = "Board\EM\SMBIOS\SmbiosDMIEdit" + RefName = "SmbiosDMIEditBoard" +[files] +"SmbiosDMIEditBoard.sdl" +"SmbiosDMIEditBoard.mak" +"SmbiosDMIEditBoard.dxs" +"SmbiosDMIEditBoard.c" +"SmbiosDMIEdit32.obj" +"SmbiosDMIEditFunc32.obj" +<endComponent> diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c64 b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c64 new file mode 100644 index 0000000..245ea5f --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.c64 @@ -0,0 +1,13 @@ +<component> + name = "SmbiosDMIEditBoard" + category = ModulePart + LocalRoot = "Board\EM\SMBIOS\SmbiosDMIEdit" + RefName = "SmbiosDMIEditBoard" +[files] +"SmbiosDMIEditBoard.sdl" +"SmbiosDMIEditBoard.mak" +"SmbiosDMIEditBoard.dxs" +"SmbiosDMIEditBoard.c" +"SmbiosDMIEdit64.obj" +"SmbiosDMIEditFunc64.obj" +<endComponent> diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.cif b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.cif new file mode 100644 index 0000000..9d44520 --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.cif @@ -0,0 +1,17 @@ +<component> + name = "SmbiosDMIEditBoard" + category = ModulePart + LocalRoot = "Board\EM\SMBIOS\SmbiosDMIEdit" + RefName = "SmbiosDMIEditBoard" +[files] +"SmbiosDMIEditBoard.sdl" +"SmbiosDMIEditBoard.mak" +"SmbiosDMIEditBoard.dxs" +"SmbiosDMIEditBoard.c" +"SmbiosDMIEdit32.obj" +"SmbiosDMIEdit64.obj" +"SmbiosDMIEditFunc32.obj" +"SmbiosDMIEditFunc64.obj" +"SmbiosDMIEditBoard.c32" +"SmbiosDMIEditBoard.c64" +<endComponent> diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.dxs b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.dxs new file mode 100644 index 0000000..4c0b432 --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.dxs @@ -0,0 +1,82 @@ +//**********************************************************************// +//**********************************************************************// +//** **// +//** (C)Copyright 1985-2009, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 **// +//** **// +//** Phone: (770)-246-8600 **// +//** **// +//**********************************************************************// +//**********************************************************************// +//**********************************************************************// +// $Header: /Alaska/BIN/Modules/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.dxs 4 6/28/12 8:14p Davidd $ +// +// $Revision: 4 $ +// +// $Date: 6/28/12 8:14p $ +//**********************************************************************// +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.dxs $ +// +// 4 6/28/12 8:14p Davidd +// Select SMM_BASE_PROTOCOL_GUID depending on PI_SPECIFICATION_VERSION +// +// 3 6/02/09 4:50p Davidd +// Updated AMI headers (EIP 22180) +// +// 2 3/29/07 5:27p Davidd +// Changed the year in the AMI banner and adjust indentation to coding +// standard. +// +// 1 8/10/05 11:31a Davidd +// Initial checkin. To be used with SMBIOS Core ALPHA_01.04. +// +// 1 8/10/05 11:18a Davidd +// New SmbiosDMIEditBoard component. +// +//**********************************************************************// + +#include <token.h> + +#include <Protocol\SmbiosGetFlashDataProtocol.h> +#if PI_SPECIFICATION_VERSION < 0x0001000A +#include <Protocol\SmmBase.h> +#else +#include <Protocol\SmmBase2.h> +#endif +#include <Protocol\LoadedImage.h> +#include <Protocol\DevicePath.h> +#include <Protocol\SmmSwDispatch.h> +#include <Protocol\SmiFlash.h> + +DEPENDENCY_START +#if !defined(SMBIOS_DMIEDIT_DATA_LOC) || SMBIOS_DMIEDIT_DATA_LOC != 2 + EFI_SMBIOS_FLASH_DATA_PROTOCOL_GUID AND + EFI_SMI_FLASH_GUID AND +#endif +#if PI_SPECIFICATION_VERSION < 0x0001000A + EFI_SMM_BASE_PROTOCOL_GUID AND +#else + EFI_SMM_BASE2_PROTOCOL_GUID AND +#endif + EFI_SMM_SW_DISPATCH_PROTOCOL_GUID AND + EFI_SMBIOS_PROTOCOL_GUID +DEPENDENCY_END + +//**********************************************************************// +//**********************************************************************// +//** **// +//** (C)Copyright 1985-2009, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 **// +//** **// +//** Phone: (770)-246-8600 **// +//** **// +//**********************************************************************// +//**********************************************************************// diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.mak b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.mak new file mode 100644 index 0000000..0ef990f --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.mak @@ -0,0 +1,98 @@ +#************************************************************************ +#************************************************************************ +#** ** +#** (C)Copyright 1985-2009, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************ +#************************************************************************ + +#************************************************************************ +# $Header: /Alaska/BIN/Modules/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.mak 7 4/08/16 12:59p Davidd $ +# +# $Revision: 7 $ +# +# $Date: 4/08/16 12:59p $ +#************************************************************************ +# Revision History +# ---------------- +# $Log: /Alaska/BIN/Modules/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.mak $ +# +# 7 4/08/16 12:59p Davidd +# [TAG] EIP231162 +# [Category] New Feature +# [Description] Merge Aptio V Smbios -09 changes for Aptio 4 +# 4.6.5.5_SMBIOS_40 release +# [Files] SmbiosGetFlashData32.ffs +# SmbiosGetFlashData64.ffs +# Smbios32.ffs +# Smbios64.ffs +# SmbiosDmiEditBoard.mak +# SmbiosDmiEdit32.obj +# SmbiosDmiEdit64.obj +# SmbiosDmiEditFunc32.obj +# SmbiosDmiEditFunc64.obj +# +# 6 4/20/10 12:53p Davidd +# +# 5 6/02/09 4:49p Davidd +# Updated AMI headers (EIP 22180) +# +# 4 12/30/08 3:17p Davidd +# Changes added for x32 and x64 binary support. +# +# 3 3/29/07 5:18p Davidd +# Changed the year in the AMI banner. +# +# 2 12/02/05 11:47a Felixp +# +# 1 8/10/05 11:31a Davidd +# Initial checkin. To be used with SMBIOS Core ALPHA_01.04. +# +# 1 8/10/05 11:18a Davidd +# New SmbiosDMIEditBoard component. +# +#************************************************************************ + +!IF !DEFINED(SMBIOS_CORE_SRC_SUPPORT) || "$(SMBIOS_CORE_SRC_SUPPORT)" == "0" + +all : SMBIOS_DMIEDIT_BOARD_SUPPORT + +SMBIOS_DMIEDIT_BOARD_SUPPORT : $(BUILD_DIR)\SmbiosDMIEditBoard.mak SmbiosDMIEditBoardBin + +!IF "$(x64_BUILD)"=="1" +$(BUILD_DIR)\SmbiosDMIEditBoard.mak : $(SMBIOS_DMIEDIT_BOARD_DIR)\$(@B).cif $(SMBIOS_DMIEDIT_BOARD_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(SMBIOS_DMIEDIT_BOARD_DIR)\$(@B).c64 $(CIF2MAK_DEFAULTS) +!ELSE +$(BUILD_DIR)\SmbiosDMIEditBoard.mak : $(SMBIOS_DMIEDIT_BOARD_DIR)\$(@B).cif $(SMBIOS_DMIEDIT_BOARD_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(SMBIOS_DMIEDIT_BOARD_DIR)\$(@B).c32 $(CIF2MAK_DEFAULTS) +!ENDIF + +SmbiosDMIEditBoardBin : $(AMIDXELIB) $(AMICSPLib) $(BUILD_DIR)\AmiBufferValidationLib.lib + $(MAKE) /$(MAKEFLAGS) $(BUILD_DEFAULTS)\ + /f $(BUILD_DIR)\SmbiosDMIEditBoard.mak all\ + GUID=AF382531-52E6-4cc4-B247-DB8E320CBBA3 \ + ENTRY_POINT=SmbiosDmiEditSupportInstall \ + TYPE=BS_DRIVER \ + COMPRESS=1\ + +!ENDIF + +#************************************************************************ +#************************************************************************ +#** ** +#** (C)Copyright 1985-2009, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************ +#************************************************************************ diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.sdl b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.sdl new file mode 100644 index 0000000..4a04839 --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditBoard.sdl @@ -0,0 +1,50 @@ +TOKEN + Name = "SmbiosDMIEditBoard_SUPPORT" + Value = "1" + Help = "Main switch to enable AMI DMIEdit Board for SMBIOS support in Project" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Lock = Yes + Master = Yes +End + +TOKEN + Name = "SMBIOS_CORE_SRC_STATUS" + Value = "0" + Help = "Smbios Core Source is disabled" + TokenType = Boolean +End + +TOKEN + Name = "SMBIOS_CORE_SRC_STATUS" + Value = "1" + Help = "Smbios Core Source is enabled" + TokenType = Boolean + Token = "SMBIOS_CORE_SRC_SUPPORT" "=" "1" +End + +TOKEN + Name = "PROCESSOR_DMIEDIT_SUPPORT" + Value = "1" + Help = "ON -> Type 4 Serial Number, Asset Tag, Part Number update via DmiEdit is supported\OFF -> Type 4 Serial Number, Asset Tag, Part Number update via DmiEdit is not supported" + TokenType = Boolean + TargetH = Yes +End + +PATH + Name = "SMBIOS_DMIEDIT_BOARD_DIR" +End + +MODULE + Help = "Includes SmbiosDMIEditBoard.mak to Project" + File = "SmbiosDMIEditBoard.mak" +End + +ELINK + Name = "$(BUILD_DIR)\SmbiosDMIEditBoard.ffs" + Parent = "FV_MAIN" + Token = "SMBIOS_CORE_SRC_STATUS" "=" "0" + InvokeOrder = AfterParent +End + diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc32.obj b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc32.obj Binary files differnew file mode 100644 index 0000000..19328cb --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc32.obj diff --git a/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc64.obj b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc64.obj Binary files differnew file mode 100644 index 0000000..e1890de --- /dev/null +++ b/Board/EM/SMBIOS/SmbiosDMIEdit/SmbiosDMIEditFunc64.obj |