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 /Include/PPI/SerialDevice.h | |
download | zprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz |
Diffstat (limited to 'Include/PPI/SerialDevice.h')
-rw-r--r-- | Include/PPI/SerialDevice.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/Include/PPI/SerialDevice.h b/Include/PPI/SerialDevice.h new file mode 100644 index 0000000..dc42755 --- /dev/null +++ b/Include/PPI/SerialDevice.h @@ -0,0 +1,110 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* +// $Header: /Alaska/BIN/Core/Modules/Recovery/SerialDevice.h 2 2/13/12 4:14a Rajeshms $ +// +// $Revision: 2 $ +// +// $Date: 2/13/12 4:14a $ +//***************************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Core/Modules/Recovery/SerialDevice.h $ +// +// 2 2/13/12 4:14a Rajeshms +// [TAG] EIP80704 +// [Category] New Feature +// [Description] Serial Recovery support through PCI Serial Port . +// [Files] PciSerialRecovery.mak, PciSerialRecovery.sdl, +// PciSerialRecovery.c, PciSerialRecovery.h, PciSerialRecovery.chm, +// PciSerialRecovery.dxs, SerialRecovery.c, SerialDevice.h +// +// 1 7/10/09 10:40a Rameshr +// Initial Check-in +// -Recovery from Multiple Serial Device support Added +// +// +//***************************************************************************** +//<AMI_FHDR_START> +//---------------------------------------------------------------------------- +// +// Name: SerialDevice.h +// +// Description: Protocol Header for the Serial Recovery Device. +// +//---------------------------------------------------------------------------- +//<AMI_FHDR_END> + +#ifndef _PEI_SERIAL_DEVICE_PPI_H +#define _PEI_SERIAL_DEVICE_PPI_H +#ifdef __cplusplus +extern "C" { +#endif + +#include "EFI.h" +#include "PEI.h" + +#define PEI_RECOVERY_SERIAL_MODE_PPI_GUID \ + { 0x5e7063d3, 0xc12, 0x475b, 0x98, 0x35, 0x14, 0xab, 0xb1, 0xcb, 0xe, 0xe9 } + + +enum { + SerialDataReg, + InteruptEnableReg, + FifoControlReg, + LineControlReg, + ModemControlReg, + LineStatusReg, + ModemStatusReg +}; + +typedef struct _PEI_RECOVERY_SERIAL_MODE_PPI PEI_RECOVERY_SERIAL_MODE_PPI; + +typedef UINT8 (EFIAPI *SERIAL_READ) ( + IN PEI_RECOVERY_SERIAL_MODE_PPI *This, + IN UINT8 Offset +); + +typedef VOID (EFIAPI *SERIAL_WRITE) ( + IN PEI_RECOVERY_SERIAL_MODE_PPI *This, + IN UINT8 Offset, + IN UINT8 Data +); + +#pragma pack(1) +struct _PEI_RECOVERY_SERIAL_MODE_PPI { + UINT64 SerialDeviceBaseAddress; + SERIAL_READ ReadSerialDevice; + SERIAL_WRITE WriteSerialDevice; +}; +#pragma pack() + +#ifdef __cplusplus +} +#endif +#endif + +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2009, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* + |