}\r
};\r
\r
-#define DEBGU_SERIAL_IO_FIFO_DEPTH 10\r
+#define DEBUG_SERIAL_IO_FIFO_DEPTH 10\r
//\r
// Data buffer for Terminal input character and Debug Symbols.\r
-// The depth is DEBGU_SERIAL_IO_FIFO_DEPTH.\r
+// The depth is DEBUG_SERIAL_IO_FIFO_DEPTH.\r
// Fields:\r
// First UINT8: The index of the first data in array Data[].\r
// Last UINT8: The index, which you can put a new data into array Data[].\r
UINT8 First;\r
UINT8 Last;\r
UINT8 Surplus;\r
- UINT8 Data[DEBGU_SERIAL_IO_FIFO_DEPTH];\r
+ UINT8 Data[DEBUG_SERIAL_IO_FIFO_DEPTH];\r
} DEBUG_SERIAL_FIFO;\r
\r
//\r
EFI_HANDLE mSerialIoHandle = NULL;\r
UINTN mLoopbackBuffer = 0;\r
DEBUG_SERIAL_FIFO mSerialFifoForTerminal = {\r
- 0, 0, DEBGU_SERIAL_IO_FIFO_DEPTH, { 0 }\r
+ 0, 0, DEBUG_SERIAL_IO_FIFO_DEPTH, { 0 }\r
};\r
DEBUG_SERIAL_FIFO mSerialFifoForDebug = {\r
- 0, 0, DEBGU_SERIAL_IO_FIFO_DEPTH, { 0 }\r
+ 0, 0, DEBUG_SERIAL_IO_FIFO_DEPTH, { 0 }\r
};\r
\r
/**\r
\r
**/\r
BOOLEAN\r
-IsDebugTermianlFifoEmpty (\r
+IsDebugTerminalFifoEmpty (\r
IN DEBUG_SERIAL_FIFO *Fifo\r
)\r
{\r
- if (Fifo->Surplus == DEBGU_SERIAL_IO_FIFO_DEPTH) {\r
+ if (Fifo->Surplus == DEBUG_SERIAL_IO_FIFO_DEPTH) {\r
return TRUE;\r
}\r
\r
Fifo->Data[Fifo->Last] = Data;\r
Fifo->Surplus--;\r
Fifo->Last++;\r
- if (Fifo->Last == DEBGU_SERIAL_IO_FIFO_DEPTH) {\r
+ if (Fifo->Last == DEBUG_SERIAL_IO_FIFO_DEPTH) {\r
Fifo->Last = 0;\r
}\r
\r
//\r
// if FIFO is empty, no data can remove\r
//\r
- if (IsDebugTermianlFifoEmpty (Fifo)) {\r
+ if (IsDebugTerminalFifoEmpty (Fifo)) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
\r
*Data = Fifo->Data[Fifo->First];\r
Fifo->Surplus++;\r
Fifo->First++;\r
- if (Fifo->First == DEBGU_SERIAL_IO_FIFO_DEPTH) {\r
+ if (Fifo->First == DEBUG_SERIAL_IO_FIFO_DEPTH) {\r
Fifo->First = 0;\r
}\r
\r
// Check to see if the Terminal FIFO is empty and\r
// check to see if the input buffer in the Debug Communication Library is empty\r
//\r
- if (!IsDebugTermianlFifoEmpty (&mSerialFifoForTerminal) || DebugPortPollBuffer (Handle)) {\r
+ if (!IsDebugTerminalFifoEmpty (&mSerialFifoForTerminal) || DebugPortPollBuffer (Handle)) {\r
*Control &= ~EFI_SERIAL_INPUT_BUFFER_EMPTY;\r
}\r
\r