summaryrefslogtreecommitdiff
path: root/Board/EM/MeWrapper/AmtWrapper/Protocol
diff options
context:
space:
mode:
authorraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
committerraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
commitb7c51c9cf4864df6aabb99a1ae843becd577237c (patch)
treeeebe9b0d0ca03062955223097e57da84dd618b9a /Board/EM/MeWrapper/AmtWrapper/Protocol
downloadzprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz
init. 1AQQW051HEADmaster
Diffstat (limited to 'Board/EM/MeWrapper/AmtWrapper/Protocol')
-rw-r--r--Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.c68
-rw-r--r--Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.h180
-rw-r--r--Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.cif11
-rw-r--r--Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.mak65
-rw-r--r--Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.sdl34
5 files changed, 358 insertions, 0 deletions
diff --git a/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.c b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.c
new file mode 100644
index 0000000..d6fc5c3
--- /dev/null
+++ b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.c
@@ -0,0 +1,68 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2010, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
+//**********************************************************************
+//
+// $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/AmtWrapper/AmtWrapperProtocolLib/AmtWrapper/AmtWrapper.c 1 2/08/12 1:09a Klzhan $
+//
+// $Revision: 1 $
+//
+// $Date: 2/08/12 1:09a $
+//
+//**********************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/AmtWrapper/AmtWrapperProtocolLib/AmtWrapper/AmtWrapper.c $
+//
+// 1 2/08/12 1:09a Klzhan
+// Initial Check in
+//
+// 1 2/25/11 1:42a Klzhan
+// Initial Check-in
+//
+// 1 12/03/10 5:10a Klzhan
+// Initial Check-in.
+//
+//
+//**********************************************************************
+
+//<AMI_FHDR_START>
+//----------------------------------------------------------------------------
+//
+// Name: AmtWrapper.c
+//
+// Description: Amt Wrapper Define file
+//
+//----------------------------------------------------------------------------
+//<AMI_FHDR_END>
+#include "Efi.h"
+
+#include EFI_PROTOCOL_DEFINITION(AmtWrapper)
+
+EFI_GUID gEfiAmtWrapperProtocolGuid = EFI_AMT_WRAPPER_PROTOCOL_GUID;
+
+EFI_GUID_STRING(&gEfiAmtWrapperProtocolGuid, "AMT Wrapper Protocol", "AMT Wrapper Protocol");
+
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2010, 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/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.h b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.h
new file mode 100644
index 0000000..57ef64c
--- /dev/null
+++ b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapper/AmtWrapper.h
@@ -0,0 +1,180 @@
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2010, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//*************************************************************************
+//*************************************************************************
+//**********************************************************************
+//
+// $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/AmtWrapper/AmtWrapperProtocolLib/AmtWrapper/AmtWrapper.h 1 2/08/12 1:09a Klzhan $
+//
+// $Revision: 1 $
+//
+// $Date: 2/08/12 1:09a $
+//
+//**********************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/AmtWrapper/AmtWrapperProtocolLib/AmtWrapper/AmtWrapper.h $
+//
+// 1 2/08/12 1:09a Klzhan
+// Initial Check in
+//
+// 1 2/25/11 1:43a Klzhan
+// Initial Check-in
+//
+// 1 12/03/10 5:10a Klzhan
+// Initial Check-in.
+//
+//
+//**********************************************************************
+
+//<AMI_FHDR_START>
+//----------------------------------------------------------------------------
+//
+// Name: AmtWrapper.c
+//
+// Description: Amt Wrapper Define file
+//
+//----------------------------------------------------------------------------
+//<AMI_FHDR_END>
+#ifndef _EFI_BDS_ASF_H
+#define _EFI_BDS_ASF_H
+
+#define EFI_AMT_WRAPPER_PROTOCOL_GUID \
+ { 0xd54f49f6, 0xdd4, 0x4276, 0xb0, 0x9c, 0xdf, 0xe1, 0xfd, 0x80, 0x85, 0xf0 }
+
+EFI_FORWARD_DECLARATION (AMT_WRAPPER_PROTOCOL);
+
+typedef
+EFI_STATUS
+(EFIAPI *AMT_WRAPPER_INIT) (
+ EFI_HANDLE ImageHandle,
+ EFI_SYSTEM_TABLE *SystemTable
+);
+
+typedef
+BOOLEAN
+(EFIAPI *AMT_WRAPPER_GET) (
+ UINTN Index,
+ VOID *pVar
+);
+
+typedef
+BOOLEAN
+(EFIAPI *AMT_WRAPPER_SET) (
+ UINTN Index,
+ VOID *pVar
+);
+
+typedef
+BOOLEAN
+(EFIAPI *ACTIVE_MANAGEMENT_ENABLE_KVM) (
+ IN VOID
+);
+
+typedef
+BOOLEAN
+(EFIAPI *AMT_INITIALIZATION_KVM) (
+ IN VOID
+);
+
+typedef
+BOOLEAN
+(EFIAPI *ACTIVE_MANAGEMENT_ENABLE_SOL) (
+ IN VOID
+);
+
+typedef
+BOOLEAN
+(EFIAPI *ACTIVE_MANAGEMENT_ENABLE_IDER) (
+ IN VOID
+);
+
+/*
+typedef
+EFI_STATUS
+(EFIAPI *AMT_WRAPPER_INITIALIZATION) (
+ IN VOID
+);
+*/
+
+typedef
+EFI_STATUS
+(EFIAPI *BDS_BOOT_VIA_ASF) (
+ IN VOID
+);
+
+typedef
+BOOLEAN
+(EFIAPI *ACTIVE_MANAGEMENT_PAUSE_BOOT) (
+ IN VOID
+);
+
+typedef
+BOOLEAN
+(EFIAPI *ACTIVE_MANAGEMENT_ENTER_SETUP) (
+ IN VOID
+);
+
+typedef
+BOOLEAN
+(EFIAPI *ACTIVE_MANAGEMENT_CONSOLE_LOCKED) (
+ IN VOID
+);
+typedef
+EFI_STATUS
+(EFIAPI *BDSLIB_UPDATE_CONSOLE_VARIABLE) (
+ IN CHAR16 *ConVarName,
+ IN EFI_DEVICE_PATH_PROTOCOL *CustomizedConDevicePath,
+ IN EFI_DEVICE_PATH_PROTOCOL *ExclusiveDevicePath
+);
+
+typedef struct _AMT_WRAPPER_PROTOCOL {
+ AMT_WRAPPER_INIT AmtWrapperInit;
+ AMT_WRAPPER_GET AmtWrapperGet;
+ AMT_WRAPPER_SET AmtWrapperSet;
+ ACTIVE_MANAGEMENT_ENABLE_SOL ActiveManagementEnableSol;
+ ACTIVE_MANAGEMENT_ENABLE_IDER ActiveManagementEnableIdeR;
+ ACTIVE_MANAGEMENT_PAUSE_BOOT ActiveManagementPauseBoot;
+ ACTIVE_MANAGEMENT_ENTER_SETUP ActiveManagementEnterSetup;
+ //AMT_WRAPPER_INITIALIZATION AsfSupportInit;
+ BDS_BOOT_VIA_ASF BdsBootViaAsf;
+ BDSLIB_UPDATE_CONSOLE_VARIABLE BdsLibUpdateConsoleVariable;
+ ACTIVE_MANAGEMENT_CONSOLE_LOCKED ActiveManagementConsoleLocked;
+ ACTIVE_MANAGEMENT_ENABLE_KVM ActiveManagementEnableKvm;
+ AMT_INITIALIZATION_KVM AmtInitializationKvm;
+} AMT_WRAPPER_PROTOCOL;
+
+#define GET_SOL_DP 1
+#define GET_TIME_OUT 2 // return UINT16
+#define GET_BOOT_OPTION 3 // return UINT16
+#define GET_IS_SOL 4 // return UINT16
+#define GET_IS_IDER 5 // return UINT16
+
+#define SET_BIOS_WDT_START 1
+#define SET_WDT_STOP 2
+#define SET_OS_SOL 3
+#define SET_OS_WDT_START 4
+
+#endif //_EFI_HECI_H
+//*************************************************************************
+//*************************************************************************
+//** **
+//** (C)Copyright 1985-2010, 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/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.cif b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.cif
new file mode 100644
index 0000000..403d469
--- /dev/null
+++ b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.cif
@@ -0,0 +1,11 @@
+<component>
+ name = "AmtWrapperProtocolLib"
+ category = ModulePart
+ LocalRoot = "Board\EM\MeWrapper\AmtWrapper\Protocol"
+ RefName = "AmtWrapperProtocolLib"
+[files]
+"AmtWrapperProtocolLib.sdl"
+"AmtWrapperProtocolLib.mak"
+"AmtWrapper\AmtWrapper.h"
+"AmtWrapper\AmtWrapper.c"
+<endComponent>
diff --git a/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.mak b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.mak
new file mode 100644
index 0000000..551df9d
--- /dev/null
+++ b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.mak
@@ -0,0 +1,65 @@
+#**********************************************************************
+#**********************************************************************
+#** **
+#** (C)Copyright 1985-2010, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 6145-F Northbelt Pkwy, Norcross, GA 30071 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#**********************************************************************
+#**********************************************************************
+#**********************************************************************
+# $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/ME/AmtWrapper/AmtWrapperProtocolLib/AmtWrapperProtocolLib.mak 1 2/08/12 1:09a Klzhan $
+#
+# $Revision: 1 $
+#
+# $Date: 2/08/12 1:09a $
+#**********************************************************************
+# Revision History
+# ----------------
+#
+#**********************************************************************
+#<AMI_FHDR_START>
+#
+# Name: AmtWrapperProtocolLib.mak
+#
+# Description:
+#
+#<AMI_FHDR_END>
+#**********************************************************************
+all : AmtWrapperProtocolLib
+
+$(BUILD_DIR)\AmtWrapperProtocolLib.lib : AmtWrapperProtocolLib
+
+AmtWrapperProtocolLib : $(BUILD_DIR)\AmtWrapperProtocolLib.mak AmtWrapperProtocolLibBin
+
+$(BUILD_DIR)\AmtWrapperProtocolLib.mak : $(AmtWrapperProtocolLib_DIR)\$(@B).cif $(AmtWrapperProtocolLib_DIR)\$(@B).mak $(BUILD_RULES)
+ $(CIF2MAK) $(AmtWrapperProtocolLib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS)
+
+AmtWrapperProtocolLib_INCLUDES=\
+ $(EDK_INCLUDES) \
+ $(ME_INCLUDES) \
+ $(MISCFRAMEWORK_INCLUDES)
+
+AmtWrapperProtocolLibBin :
+ $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS)\
+ /f $(BUILD_DIR)\AmtWrapperProtocolLib.mak all\
+ "MY_INCLUDES=$(AmtWrapperProtocolLib_INCLUDES)" \
+ TYPE=LIBRARY \
+
+#**********************************************************************
+#**********************************************************************
+#** **
+#** (C)Copyright 1985-2010, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 6145-F Northbelt Pkwy, Norcross, GA 30071 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#**********************************************************************
+#********************************************************************** \ No newline at end of file
diff --git a/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.sdl b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.sdl
new file mode 100644
index 0000000..bc00d62
--- /dev/null
+++ b/Board/EM/MeWrapper/AmtWrapper/Protocol/AmtWrapperProtocolLib.sdl
@@ -0,0 +1,34 @@
+TOKEN
+ Name = "AmtWrapperProtocolLib_SUPPORT"
+ Value = "1"
+ Help = "Main switch to enable AmtWrapperProtocolLib support in Project"
+ TokenType = Boolean
+ TargetMAK = Yes
+ Master = Yes
+End
+
+PATH
+ Name = "AmtWrapperProtocolLib_DIR"
+End
+
+ELINK
+ Name = "/I$(AmtWrapperProtocolLib_DIR)\AmtWrapper"
+ Parent = "ME_INCLUDES"
+ InvokeOrder = AfterParent
+End
+
+MODULE
+ Help = "Includes AmtWrapperProtocolLib.mak to Project"
+ File = "AmtWrapperProtocolLib.mak"
+End
+
+ELINK
+ Name = "AmtWrapperProtocolLib_LIB"
+ InvokeOrder = ReplaceParent
+End
+
+ELINK
+ Name = "$(BUILD_DIR)\AmtWrapperProtocolLib.lib"
+ Parent = "AmtWrapperProtocolLib_LIB"
+ InvokeOrder = AfterParent
+End