40 Status =
gBS->LocateProtocol (&gEfiDebugPortProtocolGuid,
NULL, (VOID **)&gDebugPort);
41 if (!EFI_ERROR (Status)) {
42 gTimeOut =
PcdGet32 (PcdGdbMaxPacketRetryCount);
43 gDebugPort->Reset (gDebugPort);
79 Status = gDebugPort->Reset (gDebugPort);
99 Status = gDebugPort->Poll (gDebugPort);
121 BufferSize =
sizeof (Char);
122 Status = gDebugPort->Read (gDebugPort, gTimeOut, &BufferSize, &Char);
123 }
while (EFI_ERROR (Status) || BufferSize !=
sizeof (Char));
145 BufferSize =
sizeof (Char);
146 Status = gDebugPort->Write (gDebugPort, gTimeOut, &BufferSize, &Char);
147 }
while (EFI_ERROR (Status) || BufferSize !=
sizeof (Char));
165 while (*String !=
'\0') {
VOID GdbPutString(IN CHAR8 *String)
CHAR8 EFIAPI GdbGetChar(VOID)
BOOLEAN EFIAPI GdbIsCharAvailable(VOID)
RETURN_STATUS EFIAPI GdbSerialLibDebugPortConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID EFIAPI GdbPutChar(IN CHAR8 Char)
RETURN_STATUS EFIAPI GdbSerialInit(IN UINT64 BaudRate, IN UINT8 Parity, IN UINT8 DataBits, IN UINT8 StopBits)
#define PcdGet32(TokenName)