diff options
Diffstat (limited to 'Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib')
-rw-r--r-- | Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/AsmDbgrx64Libs.h | 202 | ||||
-rw-r--r-- | Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.cif | 11 | ||||
-rw-r--r-- | Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.lib | bin | 0 -> 12612 bytes | |||
-rw-r--r-- | Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.mak | 110 | ||||
-rw-r--r-- | Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.sdl | 16 |
5 files changed, 339 insertions, 0 deletions
diff --git a/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/AsmDbgrx64Libs.h b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/AsmDbgrx64Libs.h new file mode 100644 index 0000000..ade7358 --- /dev/null +++ b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/AsmDbgrx64Libs.h @@ -0,0 +1,202 @@ +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2009, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +// $Header: /Alaska/BIN/Modules/AMIDebugRx/binaries/LIBS/DbgrX64Lib/AsmDbgrx64Libs.h 4 3/13/12 10:52a Sudhirv $ +// +// $Revision: 4 $ +// +// $Date: 3/13/12 10:52a $ +//***************************************************************** +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Modules/AMIDebugRx/binaries/LIBS/DbgrX64Lib/AsmDbgrx64Libs.h $ +// +// 4 3/13/12 10:52a Sudhirv +// [TAG] EIP60224 +// [Category] Improvement +// [Description] Function implement When broken in SMM, show the register +// context for 'outside' SMM. +// +// [TAG] EIP80406 +// [Category] Improvement +// [Description] Debugger support for Dynamic pci express base token +// +// [TAG] EIP81423 +// [Category] Improvement +// [Description] VeB Debugger - Improve the EFI tab's Handle Display +// feature +// +// [TAG] EIP84201 +// [Category] Improvement +// [Description] AMIDebugRx\Debugger Target modules usage of the Port 80 +// must be controlable +// +// 3 9/22/10 7:09p Sudhirv +// 4.6.2_AMIDebugRx_2.01.0026_Beta Release +// +// 2 7/17/09 7:15p Madhans +// DebugRx 1.30.0022 +// +// 3 7/16/09 3:07p Madhans +// To fix the Serial Debugger issuel and To do cleanup. +// +// 2 7/13/09 2:44p Sudhirv +// Updated with Coding Standards +// +// 1 7/07/09 4:46p Sudhirv +// Restructure Binaries Created +// +// 1 5/01/09 7:48p Madhans +// AMIDebug Rx Module. Intial Checkin. +// +// 1 4/29/09 7:51a Sudhirv +// AMI Debug Rx module created +// +// 3 9/07/07 12:07a Madhans +// 1.07.0008 Eng Release +// +// 7 6/13/07 3:16p Madhans +// Copyright Year updated. +// +// 6 2/23/07 5:34p Madhans +// EnableMasterPICIRQ function added +// +// 5 1/22/07 11:36a Madhans +// Modification made for Binary Release 1.04.0003. +// +// 2 1/05/07 1:05p Ashrafj +// Latest version 1.04.0001 Beta +// Known issues from previous 1.04.000 Beta release has been fixed. +// +//********************************************************************** +//***************************************************************** +//***************************************************************** + +//********************************************************************** +//<AMI_FHDR_START> +// +// Name: AsmDbgrx64Libs.h +// +// Description: File containing the Prototypes for the library functions +// +// +//<AMI_FHDR_END> +//********************************************************************** + +#include "Efi.h" + +UINT8 +DbgrIoRead8 ( + IN UINT64 Address + ) +/*++ + +Routine Description: + Do a one byte IO read + +Arguments: + Address - IO address to read + +Returns: + Data read + +--*/ +; +VOID +DbgrIoWrite8 ( + IN UINT64 Address, + IN UINT8 Data + ) +/*++ + +Routine Description: + Do a one byte IO write + +Arguments: + Address - IO address to write + Data - Data to write to Address + +Returns: + NONE + +--*/ +; +void DbgrDisableInterrupt(); +void DbgrRestoreInterrupt(); + +void DebugWriteChkPort(UINT8 DbgChkPoint); + +UINT32 ReadPCIConfigSpace(IN UINT32 PCIAddr); +VOID WritePCIConfigSpace(UINT32 PCIAddr,UINT32 Data); + +void DisableMasterPICIRQ(UINT8 IrqBit); +void EnableMasterPICIRQ(UINT8 IrqBit); + +#define DISABLE_INTx64 DbgrDisableInterrupt() +#define RESTORE_INTx64 DbgrRestoreInterrupt() + +void DisableDebugFeature(UINTN *pStoreDr7); +void EnableDebugFeature(UINTN *pLoadDr7); + +VOID SetHWBreakpointX64_DR2(UINTN Address); +VOID DisableIF(VOID); +VOID EnableIF(VOID); +void EnableBreakpointOnIO(); +void DisableBreakpointOnIO(); +VOID GetIdtr(VOID *addr); + +UINT8 IoReadByte(UINT16 Port); +VOID IoWriteByte(UINT16 Port, UINT8 Value); +UINT32 GetCPUInfo0(VOID); +UINT32 GetCPUInfo4(VOID); +UINT32 GetCPUInfo8(VOID); +UINT32 GetVersion(VOID); +UINT32 GetFeature(VOID); +UINT8 ReadIoAsm8(UINT16 Port); +VOID WriteIoAsm8 (UINT16 Port,UINT8 Val); +UINT16 IoReadWord(UINT16 Port); +VOID IoWriteWord(UINT16 Port, UINT16 Value); +UINT32 IoReadDword(UINT16 Port); +VOID IoWriteDword(UINT16 Port, UINT32 Value); +VOID SET_SOFTWAREBREAKPOINT(); + +// For IndirectIO Support +UINT8 IIoReadByte(UINT16 DataPort, UINT16 IndexPort, UINT16 Port); +VOID IIoWriteByte(UINT16 DataPort, UINT16 IndexPort, UINT16 Port, UINT8 Value); +UINT16 IIoReadWord(UINT16 DataPort, UINT16 IndexPort, UINT16 Port); +VOID IIoWriteWord(UINT16 DataPort, UINT16 IndexPort, UINT16 Port, UINT16 Value); +UINT32 IIoReadDword(UINT16 DataPort, UINT16 IndexPort, UINT16 Port); +VOID IIoWriteDword(UINT16 DataPort, UINT16 IndexPort, UINT16 Port, UINT32 Value); +UINT64 GetCpuTmr(); + +//EIP 80406 - Debugger support for Dynamic pci express base token +UINT32 IoRead32(UINT16); +VOID IoWrite32(UINT16 Port, UINT32 Value); +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// +//** **// +//** (C)Copyright 2009, American Megatrends, Inc. **// +//** **// +//** All Rights Reserved. **// +//** **// +//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +//** **// +//** Phone (770)-246-8600 **// +//** **// +//*****************************************************************// +//*****************************************************************// +//*****************************************************************// diff --git a/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.cif b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.cif new file mode 100644 index 0000000..329b6ca --- /dev/null +++ b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.cif @@ -0,0 +1,11 @@ +<component> + name = "DbgrX64Lib" + category = ModulePart + LocalRoot = "Core\EM\AMIDebugRx\binaries\LIBS\DbgrX64Lib\" + RefName = "DbgrX64Lib" +[files] +"DbgrX64Lib.sdl" +"DbgrX64Lib.mak" +"DbgrX64Lib.lib" +"AsmDbgrx64Libs.h" +<endComponent> diff --git a/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.lib b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.lib Binary files differnew file mode 100644 index 0000000..aa1607c --- /dev/null +++ b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.lib diff --git a/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.mak b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.mak new file mode 100644 index 0000000..80f213a --- /dev/null +++ b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.mak @@ -0,0 +1,110 @@ +#//*****************************************************************// +#//*****************************************************************// +#//*****************************************************************// +#//** **// +#//** (C)Copyright 2009, American Megatrends, Inc. **// +#//** **// +#//** All Rights Reserved. **// +#//** **// +#//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +#//** **// +#//** Phone (770)-246-8600 **// +#//** **// +#//*****************************************************************// +#//*****************************************************************// +#//*****************************************************************// +# $Header: /Alaska/BIN/Modules/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.mak 3 4/20/11 8:59a Sudhirv $ +# +# $Revision: 3 $ +# +# $Date: 4/20/11 8:59a $ +#********************************************************************** +# Revision History +# ---------------- +# $Log: /Alaska/BIN/Modules/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.mak $ +# +# 3 4/20/11 8:59a Sudhirv +# [TAG] EIP58619 +# [Category] Defect +# [Severity] Major +# [Symptom] Statuscode 16 and 17 have build errors with USBRedirection +# [RootCause] StatuscodeRuntimeBin added after Statuscode_15 was having +# build errors in accessing Dbgrx64 lib functions. +# [Solution] StatusCodeRuntimeBin build support with DbgrX64Lib.lib +# [Files] DbgrX64Lib.mak +# +# 2 7/17/09 7:15p Madhans +# DebugRx 1.30.0022 +# +# 2 7/13/09 2:44p Sudhirv +# Updated with Coding Standards +# +# 1 7/07/09 4:46p Sudhirv +# Restructure Binaries Created +# +# 1 5/01/09 7:48p Madhans +# AMIDebug Rx Module. Intial Checkin. +# +# 1 4/29/09 7:51a Sudhirv +# AMI Debug Rx module created +# +# 2 6/13/07 3:38p Madhans +# Copyright Year updated. +# +# 1 1/22/07 4:14p Madhans +# 1.04.0002 Binary Version. +# +# 2 1/05/07 1:05p Ashrafj +# Latest version 1.04.0001 Beta +# Known issues from previous 1.04.000 Beta release has been fixed. +# +# 1 12/26/06 7:09p Ashrafj +# Support added to support the Aptio 4.5 x64 EFI BIOS (use latest +# Host.zip). +# PEI Debugger in FV_MAIN (use new PEIDEBUGFIXUP). +# Support added for StatusCode redirection without Debug feature enabled +# (not working if DXE only and x64 is enabled). +# Plus, some new SDL tokens defined to support the Aptio 4.5 build +# process in Debug or non-debug mode. +# All the components of Debugger eModule in source form. +# +#********************************************************************** +#<AMI_FHDR_START> +# +# Name: DbgrX64Lib.mak +# +# Description: Common library to support the porting of Debugger to +# support EFIx64 +# +#<AMI_FHDR_END> +#********************************************************************** + +!IF "$(PROCESSOR)"=="x64" +PeiDbgDbgrx64Bin : $(DbgrX64_DIR)\DbgrX64Lib.lib +PeiDbgXportx64Bin : $(DbgrX64_DIR)\DbgrX64Lib.lib +PeiDbgDxeCpuLibBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +#AMIDebuggerBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +IsaSerialDbgBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +PeiDbgStatusCodeLibBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +AMITransportBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +CORE_DXEBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +#EIP 58619 - Building issue between UsbRedirection and StatusCode modules (16-17) on HuronRiver project +StatusCodeRuntimeBin : $(DbgrX64_DIR)\DbgrX64Lib.lib +!ENDIF + +#//*****************************************************************// +#//*****************************************************************// +#//*****************************************************************// +#//** **// +#//** (C)Copyright 2009, American Megatrends, Inc. **// +#//** **// +#//** All Rights Reserved. **// +#//** **// +#//** 5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093 **// +#//** **// +#//** Phone (770)-246-8600 **// +#//** **// +#//*****************************************************************// +#//*****************************************************************// +#//*****************************************************************// + diff --git a/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.sdl b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.sdl new file mode 100644 index 0000000..99c5060 --- /dev/null +++ b/Core/EM/AMIDebugRx/binaries/LIBS/DbgrX64Lib/DbgrX64Lib.sdl @@ -0,0 +1,16 @@ +PATH + Name = "DbgrX64_DIR" +End + +MODULE + Help = "Includes DbgrX64Lib.mak to Project" + File = "DbgrX64Lib.mak" +End + +ELINK + Name = "Init_AMI_USBDebugPort_HOB," + Parent = "DxeCoreInitialize" + Token = "x64_BUILD" "=" "1" + InvokeOrder = AfterParent +End + |