-\r
-VOID\r
-DebugSerialWrite (\r
- IN UINT8 Character\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- DebugSerialWrite - Outputs a character to the Serial port\r
-\r
- Repeatedly polls the TXRDY bit of the Line Status Register\r
- until the Transmitter Holding Register is empty. The character\r
- is then written to the Serial port.\r
-\r
-Arguments:\r
-\r
- Character - Character to write\r
-\r
-Returns:\r
-\r
- None\r
-\r
---*/\r
-{\r
- UINT8 Data;\r
-\r
- //\r
- // Wait for the serail port to be ready.\r
- //\r
- do {\r
- Data = CpuIoRead8 (gComBase + LSR_OFFSET);\r
- } while ((Data & LSR_TXRDY) == 0);\r
- \r
- CpuIoWrite8 (gComBase, Character);\r
-}\r
-\r
-VOID\r
-DebugSerialPrint (\r
- IN UINT8 *OutputString\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Prints a string to the Serial port\r
-\r
-Arguments:\r
-\r
- OutputString - Ascii string to print to serial port.\r
-\r
-Returns:\r
-\r
- None\r
-\r
---*/\r
-{\r
- EFI_STATUS Status;\r
-\r
- Status = EFI_SUCCESS;\r
-\r
- for ( ; *OutputString != 0; OutputString++) {\r
- DebugSerialWrite (*OutputString);\r
- }\r
-}\r
-\r