]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/SerialIo.c
SourceLevelDebugPkg: Fix spelling errors
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DxeDebugAgent / SerialIo.c
index 6661275cc343cc423c785b3bf470d1ed6629053c..97d30c802df4f880d79cac4ac519441f21c54a73 100644 (file)
@@ -213,10 +213,10 @@ SERIAL_IO_DEVICE_PATH  mSerialIoDevicePath = {
   }\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
@@ -227,7 +227,7 @@ typedef struct {
   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
@@ -236,10 +236,10 @@ typedef struct {
 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
@@ -251,11 +251,11 @@ DEBUG_SERIAL_FIFO  mSerialFifoForDebug = {
 \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
@@ -313,7 +313,7 @@ DebugTerminalFifoAdd (
   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
@@ -339,7 +339,7 @@ DebugTerminalFifoRemove (
   //\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
@@ -349,7 +349,7 @@ DebugTerminalFifoRemove (
   *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
@@ -532,7 +532,7 @@ SerialGetControl (
   // 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