diff options
Diffstat (limited to 'Board/EM/AMITSEBoard')
-rw-r--r-- | Board/EM/AMITSEBoard/AMITSEBoard.cif | 15 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/AMITSEBoard.mak | 116 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/AMITSEBoard.sdl | 58 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/OEMLogo.c | 88 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/OemTokens.c | 102 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/OemkeyHook.c | 104 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/TseBoard.c | 98 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/TseOem.h | 113 | ||||
-rw-r--r-- | Board/EM/AMITSEBoard/TseOem.uni | bin | 0 -> 3032 bytes |
9 files changed, 694 insertions, 0 deletions
diff --git a/Board/EM/AMITSEBoard/AMITSEBoard.cif b/Board/EM/AMITSEBoard/AMITSEBoard.cif new file mode 100644 index 0000000..4fca6e3 --- /dev/null +++ b/Board/EM/AMITSEBoard/AMITSEBoard.cif @@ -0,0 +1,15 @@ +<component> + name = "AMITSE - Board" + category = ModulePart + LocalRoot = "Board\Em\AMITSEBoard" + RefName = "AMITSEBoard" +[files] +"AMITSEBoard.sdl" +"AMITSEBoard.mak" +"OEMLogo.c" +"OemkeyHook.c" +"TseBoard.c" +"TseOem.h" +"TseOem.uni" +"OemTokens.c" +<endComponent> diff --git a/Board/EM/AMITSEBoard/AMITSEBoard.mak b/Board/EM/AMITSEBoard/AMITSEBoard.mak new file mode 100644 index 0000000..71ea859 --- /dev/null +++ b/Board/EM/AMITSEBoard/AMITSEBoard.mak @@ -0,0 +1,116 @@ +##*****************************************************************## +##*****************************************************************## +##*****************************************************************## +##** **## +##** (C)Copyright 2010, American Megatrends, Inc. **## +##** **## +##** All Rights Reserved. **## +##** **## +##** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **## +##** **## +##** Phone (770)-246-8600 **## +##** **## +##*****************************************************************## +##*****************************************************************## +##*****************************************************************## +## $Archive: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/AMITSEBoard.mak $ +## +## $Author: Arunsb $ +## +## $Revision: 6 $ +## +## $Date: 10/18/12 6:34a $ +## +##*****************************************************************## +##*****************************************************************## +## Revision History +## ---------------- +## $Log: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/AMITSEBoard.mak $ +# +# 6 10/18/12 6:34a Arunsb +# Updated for 2.16.1235 QA submission +## +## 7 10/10/12 12:25p Arunsb +## Synched the source for v2.16.1232 backup with Aptio +# +# 5 2/19/10 12:58p Madhans +# Updated for TSE 2.01. Refer Changelog.log for File change history. +## +## 6 2/19/10 8:04a Mallikarjunanv +## updated year in copyright message +## +## 5 1/29/10 5:15p Madhans +## Support to add strings from other modules without changing TSE sources. +## +## 4 1/27/10 4:30a Mallikarjunanv +## Added support for AMITSESDB +## +## 3 12/02/09 9:21a Mallikarjunanv +## Fixed ithe eip 30925 by updating with new Elink TSE_LIB_INCLUDES for +## board module +## +## 2 6/24/09 6:33p Madhans +## Coding Standards +# +# 2 6/24/09 11:54a Blaines +# Coding standard update +# +# 1 6/09/09 9:53a Madhans +# TSE 2.00.1201 +## +## 1 6/04/09 7:49p Madhans +## AMI TSE Advanced. +# +# 1 4/28/09 11:03p Madhans +# Tse 2.0 Code complete Checkin. +## +## 1 4/28/09 10:25p Madhans +## Tse 2.0 Code complete Checkin. +## +## +##*****************************************************************## +##*****************************************************************## + +# MAK file for the eModule:TseLite + +TSE_BOARD_INCLUDES = $(TSE_LIB_INCLUDES) + +$(BUILD_DIR)\AMITseBoard.lib : AMITseBoardLib + +AMITseBoardLib : $(BUILD_DIR)\AMITseBoard.mak AMITseBoardBin + +$(BUILD_DIR)\AMITseBoard.mak : $(TSE_BOARD_DIR)\$(@B).cif $(TSE_BOARD_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(TSE_BOARD_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +AMITseBoardBin : + $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS)\ + /f $(BUILD_DIR)\AMITseBoard.mak all\ + "MY_INCLUDES=$(TSE_BOARD_INCLUDES)"\ + "UNI_INCLUDE_PATH=$(TSEBIN_DIR) $(TSE_UNI_INCLUDE_PATH)"\ + TYPE=LIBRARY \ + "EXT_HEADERS=$(BUILD_DIR)\token.h"\ + LIBRARY_NAME=$(BUILD_DIR)\AMITseBoard.lib\ + "CFLAGS=$(CFLAGS) /DTSE_FOR_APTIO_4_50" + +AMITSESDB : TseBoardSDB + +TseBoardSDB : $(BUILD_DIR)\AMITseBoard.mak + $(MAKE) /$(MAKEFLAGS) $(BUILD_DEFAULTS)\ + /f $(BUILD_DIR)\AMITseBoard.mak all\ + "UNI_INCLUDE_PATH=$(TSEBIN_DIR) $(TSE_UNI_INCLUDE_PATH)"\ + "STRING_CONSUMERS=$(TSE_BOARD_DIR)\OemTokens.c"\ + TYPE=SDB NAME=AMITseBoard +##*****************************************************************## +##*****************************************************************## +##** **## +##** (C)Copyright 2010, American Megatrends, Inc. **## +##** **## +##** All Rights Reserved. **## +##** **## +##** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **## +##** **## +##** Phone (770)-246-8600 **## +##** **## +##*****************************************************************## +##*****************************************************************## + diff --git a/Board/EM/AMITSEBoard/AMITSEBoard.sdl b/Board/EM/AMITSEBoard/AMITSEBoard.sdl new file mode 100644 index 0000000..ecab390 --- /dev/null +++ b/Board/EM/AMITSEBoard/AMITSEBoard.sdl @@ -0,0 +1,58 @@ +TOKEN + Name = "TSE_BOARD_MODULE_SUPPORT" + Value = "1" + Help = "Main switch to enable TSE Board Module" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes +End + +TOKEN + Name = "TSE_BOARD_SOURCE_SUPPORT" + Value = "1" + Help = "Allow to use Board module sources" + TokenType = Boolean + TargetH = Yes + TargetMAK = Yes +End + +PATH + Name = "TSE_BOARD_DIR" +End + +MODULE + Help = "Includes AMITseBoard.mak to Project" + File = "AMITseBoard.mak" +End + +ELINK + Name = "$(BUILD_DIR)\AMITseBoard.lib" + Parent = "MINISETUPLIB" + Priority = 70 + InvokeOrder = AfterParent +End + +ELINK + Name = "$(TSE_BOARD_DIR)\OemTokens.c" + Parent = "TSE_STRING_CONSUMERS_LIST" + InvokeOrder = AfterParent +End + +ELINK + Name = "-i $(TSE_BOARD_DIR)" + Parent = "TSE_UNI_INCLUDE_PATH" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(BUILD_DIR)\AMITseBoard.sdb" + Parent = "TSE_SDBS" + InvokeOrder = AfterParent +End + +ELINK + Name = "$(TSE_BOARD_DIR)\TseOem.h" + Parent = "AMITSE_OEM_HEADER_LIST" + InvokeOrder = AfterParent +End diff --git a/Board/EM/AMITSEBoard/OEMLogo.c b/Board/EM/AMITSEBoard/OEMLogo.c new file mode 100644 index 0000000..56462b7 --- /dev/null +++ b/Board/EM/AMITSEBoard/OEMLogo.c @@ -0,0 +1,88 @@ +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +// $Archive: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/OEMLogo.c $ +// +// $Author: Arunsb $ +// +// $Revision: 5 $ +// +// $Date: 10/18/12 6:34a $ +// +//*****************************************************************// +//*****************************************************************// +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/OEMLogo.c $ +// +// 5 10/18/12 6:34a Arunsb +// Updated for 2.16.1235 QA submission +// +// 6 10/10/12 12:25p Arunsb +// Synched the source for v2.16.1232 backup with Aptio +// +// 4 2/19/10 12:58p Madhans +// Updated for TSE 2.01. Refer Changelog.log for File change history. +// +// 5 2/19/10 8:04a Mallikarjunanv +// updated year in copyright message +// +// 4 1/09/10 2:49a Mallikarjunanv +// +// 3 8/13/09 7:27a Mallikarjunanv +// EIP-25075: Updated files to keep the Board module empty +// +// 2 6/24/09 6:33p Madhans +// Coding Standards +// +// 2 6/24/09 11:54a Blaines +// Coding standard update +// +// 1 6/09/09 9:53a Madhans +// TSE 2.00.1201 +// +// 1 6/04/09 7:49p Madhans +// AMI TSE Advanced. +// +// 1 4/28/09 11:03p Madhans +// Tse 2.0 Code complete Checkin. +// +// 1 4/28/09 10:25p Madhans +// Tse 2.0 Code complete Checkin. +// +// +//*****************************************************************// +//*****************************************************************// + +#include "token.h" +#include <EFI.h> +#include <Protocol/AMIPostMgr.h> + +///To implement OEM Logo customizations + + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Board/EM/AMITSEBoard/OemTokens.c b/Board/EM/AMITSEBoard/OemTokens.c new file mode 100644 index 0000000..4a71f4b --- /dev/null +++ b/Board/EM/AMITSEBoard/OemTokens.c @@ -0,0 +1,102 @@ +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +// $Archive: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/OemTokens.c $ +// +// $Author: Arunsb $ +// +// $Revision: 4 $ +// +// $Date: 10/18/12 6:34a $ +// +//*****************************************************************// +//*****************************************************************// +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/OemTokens.c $ +// +// 4 10/18/12 6:34a Arunsb +// Updated for 2.16.1235 QA submission +// +// 5 10/10/12 12:25p Arunsb +// Synched the source for v2.16.1232 backup with Aptio +// +// 3 2/19/10 12:58p Madhans +// Updated for TSE 2.01. Refer Changelog.log for File change history. +// +// 4 2/19/10 8:04a Mallikarjunanv +// updated year in copyright message +// +// 3 1/29/10 5:15p Madhans +// Support to add strings from other modules without changing TSE sources. +// +// 2 6/24/09 6:33p Madhans +// Coding Standards +// +// 1 6/09/09 9:53a Madhans +// TSE 2.00.1201 +// +// 1 6/04/09 7:49p Madhans +// AMI TSE Advanced. +// +// 2 5/07/09 10:35a Madhans +// Changes after Bin module +// +// 1 4/28/09 11:03p Madhans +// Tse 2.0 Code complete Checkin. +// +// 1 4/28/09 10:25p Madhans +// Tse 2.0 Code complete Checkin. +// +// +//*****************************************************************// +//*****************************************************************// +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: oemtokens.c +// +// Description: +// This file does not add any code. It has, all the string tokens that +// are used by Minisetup, to fake the usage to strgather.exe. Add to +// this list, the new string tokens that are defined in +// AmiTSEStrstr.uni and to be used by Minisetup +// +//<AMI_FHDR_END> +//********************************************************************** + + +//Following code is to force strgatherer to include these strings +#if 0 + + +#endif + + +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// diff --git a/Board/EM/AMITSEBoard/OemkeyHook.c b/Board/EM/AMITSEBoard/OemkeyHook.c new file mode 100644 index 0000000..b5eaeed --- /dev/null +++ b/Board/EM/AMITSEBoard/OemkeyHook.c @@ -0,0 +1,104 @@ +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +// $Archive: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/OemkeyHook.c $ +// +// $Author: Arunsb $ +// +// $Revision: 6 $ +// +// $Date: 10/18/12 6:34a $ +// +//*****************************************************************// +//*****************************************************************// +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/OemkeyHook.c $ +// +// 6 10/18/12 6:34a Arunsb +// Updated for 2.16.1235 QA submission +// +// 5 10/10/12 12:25p Arunsb +// Synched the source for v2.16.1232 backup with Aptio +// +// 5 2/19/10 12:58p Madhans +// Updated for TSE 2.01. Refer Changelog.log for File change history. +// +// 4 2/19/10 8:04a Mallikarjunanv +// updated year in copyright message +// +// 3 8/13/09 7:27a Mallikarjunanv +// EIP-25075: Updated files to keep the Board module empty +// +// 2 6/24/09 6:33p Madhans +// Coding Standards +// +// 2 6/24/09 11:54a Blaines +// Coding standard update +// +// 1 6/09/09 9:53a Madhans +// TSE 2.00.1201 +// +// 1 6/04/09 7:49p Madhans +// AMI TSE Advanced. +// +// 1 4/28/09 11:03p Madhans +// Tse 2.0 Code complete Checkin. +// +// 1 4/28/09 10:25p Madhans +// Tse 2.0 Code complete Checkin. +// +// +//*****************************************************************// +//*****************************************************************// +//<AMI_FHDR_START> +//---------------------------------------------------------------------------- +// +// Name: oemkeyhook.c +// +// Description: contains oemkey hook functions +// +//---------------------------------------------------------------------------- +//<AMI_FHDR_END> + +#ifdef TSE_FOR_APTIO_4_50 + +#include "token.h" +#include <EFI.h> + +#else //#ifdef TSE_FOR_APTIO_4_50 + +#include "minisetup.h" + +#endif //#ifdef TSE_FOR_APTIO_4_50 + +#include "bootflow.h" + +///To implement OEM key customizations + + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Board/EM/AMITSEBoard/TseBoard.c b/Board/EM/AMITSEBoard/TseBoard.c new file mode 100644 index 0000000..5b4d262 --- /dev/null +++ b/Board/EM/AMITSEBoard/TseBoard.c @@ -0,0 +1,98 @@ +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +// $Archive: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/TseBoard.c $ +// +// $Author: Arunsb $ +// +// $Revision: 6 $ +// +// $Date: 10/18/12 6:34a $ +// +//*****************************************************************// +//*****************************************************************// +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/TseBoard.c $ +// +// 6 10/18/12 6:34a Arunsb +// Updated for 2.16.1235 QA submission +// +// 7 10/10/12 12:25p Arunsb +// Synched the source for v2.16.1232 backup with Aptio +// +// 5 2/19/10 12:58p Madhans +// Updated for TSE 2.01. Refer Changelog.log for File change history. +// +// 6 2/19/10 8:04a Mallikarjunanv +// updated year in copyright message +// +// 5 1/09/10 2:49a Mallikarjunanv +// Updated TSE2.01 Release sources with coding standards +// +// 4 8/13/09 7:27a Mallikarjunanv +// EIP-25075: Updated files to keep the Board module empty +// +// 3 8/03/09 7:54a Mallikarjunanv +// Moved the IDE Security related hook functions from Tse Binary to Tse +// Board Module +// +// 2 6/24/09 6:33p Madhans +// Coding Standards +// +// 2 6/24/09 11:54a Blaines +// Coding standard update +// +// 1 6/09/09 9:53a Madhans +// TSE 2.00.1201 +// +// 1 6/04/09 7:49p Madhans +// AMI TSE Advanced. +// +// 1 4/28/09 11:03p Madhans +// Tse 2.0 Code complete Checkin. +// +// 1 4/28/09 10:25p Madhans +// Tse 2.0 Code complete Checkin. +// +// +//*****************************************************************// +//*****************************************************************// + +#include "token.h" +#include <EFI.h> +#include <Protocol/AMIPostMgr.h> +#include "PwdLib.h" + +// This Module is to implement the OME Functions, which can be override the existing TSE functions. +// For Example, UEFI Callback +// If Board module handle the Passwordwith Formcallback and return sccuess then +// TSE will not takecare of Password handling. + + + +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2010, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** diff --git a/Board/EM/AMITSEBoard/TseOem.h b/Board/EM/AMITSEBoard/TseOem.h new file mode 100644 index 0000000..c7e9f5e --- /dev/null +++ b/Board/EM/AMITSEBoard/TseOem.h @@ -0,0 +1,113 @@ +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +// $Archive: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/TseOem.h $ +// +// $Author: Arunsb $ +// +// $Revision: 3 $ +// +// $Date: 10/18/12 6:34a $ +// +//*****************************************************************// +//*****************************************************************// +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/AMITSE2_0/AMITSE/AMITSEBoard/TseOem.h $ +// +// 3 10/18/12 6:34a Arunsb +// Updated for 2.16.1235 QA submission +// +// 4 10/10/12 12:25p Arunsb +// Synched the source for v2.16.1232 backup with Aptio +// +// 2 2/19/10 12:58p Madhans +// Updated for TSE 2.01. Refer Changelog.log for File change history. +// +// 3 2/19/10 8:04a Mallikarjunanv +// updated year in copyright message +// +// 2 6/24/09 6:33p Madhans +// Coding Standards +// +// 1 6/09/09 9:53a Madhans +// TSE 2.00.1201 +// +// 1 6/04/09 7:49p Madhans +// AMI TSE Advanced. +// +// 1 4/28/09 11:03p Madhans +// Tse 2.0 Code complete Checkin. +// +// 1 4/28/09 10:25p Madhans +// Tse 2.0 Code complete Checkin. +// +// +// +// +//*****************************************************************// +//*****************************************************************// +//<AMI_FHDR_START> +//---------------------------------------------------------------------------- +// +// Name: TseOem.h +// +// Description: +// +//---------------------------------------------------------------------------- +//<AMI_FHDR_END> + +#ifndef _TSEOEM_H_ +#define _TSEOEM_H_ + +///dummy structure to avoid compilation errors (moved from AMIVfr.h) +typedef struct _TSE_SETUP_DATA +{ + UINT16 BootCount; + +/* UINT16 TimeoutValue; + UINT8 Access; + UINT16 BootCount; + UINT16 BootValue; + UINT16 HardDiskCount; + UINT16 CDROMCount; + UINT16 FloppyCount; + UINT16 NetworkCount; + UINT16 BBSValue; + UINT16 AMICallback; + AMITSESETUP AmiTseSetup; + UINT8 Reserved2[100]; +*/ +}TSE_SETUP_DATA; + + + +#endif ///_TSEOEM_H_ + +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2010, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// diff --git a/Board/EM/AMITSEBoard/TseOem.uni b/Board/EM/AMITSEBoard/TseOem.uni Binary files differnew file mode 100644 index 0000000..b070f30 --- /dev/null +++ b/Board/EM/AMITSEBoard/TseOem.uni |