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 /Chipset/SB/PchWrap/WdtApp/Protocol | |
download | zprj-master.tar.xz |
Diffstat (limited to 'Chipset/SB/PchWrap/WdtApp/Protocol')
5 files changed, 271 insertions, 0 deletions
diff --git a/Chipset/SB/PchWrap/WdtApp/Protocol/WdtApp/WdtApp.c b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtApp/WdtApp.c new file mode 100644 index 0000000..0c3a5f2 --- /dev/null +++ b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtApp/WdtApp.c @@ -0,0 +1,55 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* + +//************************************************************************* +// $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtApp/WdtApp.c 1 2/08/12 8:36a Yurenlai $ +// +// $Revision: 1 $ +// +// $Date: 2/08/12 8:36a $ +//************************************************************************* +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtApp/WdtApp.c $ +// +// 1 2/08/12 8:36a Yurenlai +// Intel Lynx Point/SB eChipset initially releases. +// +//************************************************************************* +#include "WdtApp.h" + +// +// Protocol GUID definition +// +EFI_GUID gWdtAppProtocolGuid = WDT_APP_PROTOCOL_GUID; + +// +// Protocol description +// +//EFI_GUID_STRING +// (&gWdtAppProtocolGuid, "WDT Application Protocol", "Watchdog Timer Application Protocol"); +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* + diff --git a/Chipset/SB/PchWrap/WdtApp/Protocol/WdtApp/WdtApp.h b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtApp/WdtApp.h new file mode 100644 index 0000000..f79ddc0 --- /dev/null +++ b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtApp/WdtApp.h @@ -0,0 +1,78 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* + +//************************************************************************* +// $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtApp/WdtApp.h 1 2/08/12 8:36a Yurenlai $ +// +// $Revision: 1 $ +// +// $Date: 2/08/12 8:36a $ +//************************************************************************* +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtApp/WdtApp.h $ +// +// 1 2/08/12 8:36a Yurenlai +// Intel Lynx Point/SB eChipset initially releases. +// +//************************************************************************* + +#ifndef _WDT_APP_API_H_ +#define _WDT_APP_API_H_ + +#include <Efi.h> +#include <token.h> +#include <AmiLib.h> +#include <AmiDxeLib.h> +#include <Dxe.h> +#include <AmiCspLib.h> +// +// GUID for the WDT application Protocol +// +#if !defined(EDK_RELEASE_VERSION) || (EDK_RELEASE_VERSION < 0x00020000) +#define WDT_APP_PROTOCOL_GUID \ + {0x92c7d0bb, 0x679e, 0x479d, 0x87, 0x8d, 0xd4, 0xb8, 0x29, 0x68, 0x57, 0x8b} + +#else + +#define WDT_APP_PROTOCOL_GUID \ + {0x92c7d0bb, 0x679e, 0x479d, { 0x87, 0x8d, 0xd4, 0xb8, 0x29, 0x68, 0x57, 0x8b } } + +#endif +// +// Extern the GUID for protocol users. +// +extern EFI_GUID gWdtAppProtocolGuid; + +typedef EFI_STATUS (EFIAPI *WDT_REQUEST) (VOID); + +typedef struct _WDT_APP_PROTOCOL { + WDT_REQUEST RequestWdtAfterReboot; + WDT_REQUEST RequestWdtNow; +} WDT_APP_PROTOCOL; + +#endif /* _WDT_APP_API_H_ */ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* diff --git a/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.CIF b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.CIF new file mode 100644 index 0000000..6f76b03 --- /dev/null +++ b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.CIF @@ -0,0 +1,11 @@ +<component> + name = "WdtAppProtocolLib" + category = ModulePart + LocalRoot = "Chipset\SB\PchWrap\WdtApp\Protocol" + RefName = "WdtAppProtocolLib" +[files] +"WdtAppProtocolLib.sdl" +"WdtAppProtocolLib.mak" +"WdtApp\WdtApp.h" +"WdtApp\WdtApp.c" +<endComponent> diff --git a/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.mak b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.mak new file mode 100644 index 0000000..2b938ab --- /dev/null +++ b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.mak @@ -0,0 +1,56 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* + +#************************************************************************* +# $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtAppProtocolLib.mak 1 2/08/12 8:36a Yurenlai $ +# +# $Revision: 1 $ +# +# $Date: 2/08/12 8:36a $ +#************************************************************************* +# Revision History +# ---------------- +# $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtAppProtocolLib.mak $ +# +# 1 2/08/12 8:36a Yurenlai +# Intel Lynx Point/SB eChipset initially releases. +# +#************************************************************************* + +all : WdtAppProtocolLib + +$(WdtAppProtocol_LIB) : WdtAppProtocolLib + +WdtAppProtocolLib : $(BUILD_DIR)\WdtAppProtocolLib.mak WdtAppProtocolLibBin + +$(BUILD_DIR)\WdtAppProtocolLib.mak : $(WdtAppProtocol_DIR)\$(@B).cif $(WdtAppProtocol_DIR)\$(@B).mak $(BUILD_RULES) + $(CIF2MAK) $(WdtAppProtocol_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS) + +WdtAppProtocolLibBin : + $(MAKE) /$(MAKEFLAGS) $(BUILD_DEFAULTS)\ + /f $(BUILD_DIR)\WdtAppProtocolLib.mak all\ + TYPE=LIBRARY \ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* diff --git a/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.sdl b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.sdl new file mode 100644 index 0000000..a2cf557 --- /dev/null +++ b/Chipset/SB/PchWrap/WdtApp/Protocol/WdtAppProtocolLib.sdl @@ -0,0 +1,71 @@ +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* + +#************************************************************************* +# $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtAppProtocolLib.sdl 1 2/08/12 8:36a Yurenlai $ +# +# $Revision: 1 $ +# +# $Date: 2/08/12 8:36a $ +#************************************************************************* +# Revision History +# ---------------- +# $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/PchWrap/WdtApp/WdtAppProtocolLib/WdtAppProtocolLib.sdl $ +# +# 1 2/08/12 8:36a Yurenlai +# Intel Lynx Point/SB eChipset initially releases. +# +#************************************************************************* +TOKEN + Name = "WdtAppProtocolLib_SUPPORT" + Value = "1" + TokenType = Boolean + TargetEQU = Yes + TargetMAK = Yes + Master = Yes + Help = "Main switch to enable WdtAppProtocolLib support in Project" +End + +PATH + Name = "WdtAppProtocol_DIR" +End + +MODULE + File = "WdtAppProtocolLib.mak" + Help = "Includes WdtAppProtocolLib.mak to Project" +End + +ELINK + Name = "WdtAppProtocol_LIB" + InvokeOrder = ReplaceParent +End + +ELINK + Name = "$(BUILD_DIR)\WdtAppProtocolLib.lib" + Parent = "WdtAppProtocol_LIB" + InvokeOrder = AfterParent +End +#************************************************************************* +#************************************************************************* +#** ** +#** (C)Copyright 1985-2011, American Megatrends, Inc. ** +#** ** +#** All Rights Reserved. ** +#** ** +#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +#** ** +#** Phone: (770)-246-8600 ** +#** ** +#************************************************************************* +#************************************************************************* |