};\r
\r
\r
-//\r
-// Private function declarations\r
-//\r
-UINT8\r
-CpuIoRead8 (\r
- UINT16 Port \r
- );\r
-\r
-VOID\r
-CpuIoWrite8 (\r
- UINT16 Port, \r
- UINT32 Data \r
- );\r
-\r
-\r
EFI_STATUS\r
MatchString (\r
IN STATUS_CODE_LOOKUP_TABLE *Table,\r
// Wait for the serail port to be ready.\r
//\r
do {\r
- Data = CpuIoRead8 (gComBase + LSR_OFFSET);\r
+ Data = IoRead8 (gComBase + LSR_OFFSET);\r
} while ((Data & LSR_TXRDY) == 0);\r
\r
- CpuIoWrite8 (gComBase, Character);\r
+ IoWrite8 (gComBase, Character);\r
}\r
\r
VOID\r
\r
--*/\r
{\r
- EFI_STATUS Status;\r
-\r
- Status = EFI_SUCCESS;\r
-\r
for ( ; *OutputString != 0; OutputString++) {\r
DebugSerialWrite (*OutputString);\r
}\r
// Set communications format\r
//\r
OutputData = (UINT8)((DLAB << 7) | ((gBreakSet << 6) | ((gParity << 3) | ((gStop << 2) | Data))));\r
- CpuIoWrite8 (gComBase + LCR_OFFSET, OutputData);\r
+ IoWrite8 (gComBase + LCR_OFFSET, OutputData);\r
\r
//\r
// Configure baud rate\r
//\r
- CpuIoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8)(Divisor >> 8));\r
- CpuIoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8)(Divisor & 0xff));\r
+ IoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8)(Divisor >> 8));\r
+ IoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8)(Divisor & 0xff));\r
\r
//\r
// Switch back to bank 0\r
//\r
OutputData = (UINT8)((~DLAB<<7)|((gBreakSet<<6)|((gParity<<3)|((gStop<<2)| Data))));\r
- CpuIoWrite8 (gComBase + LCR_OFFSET, OutputData);\r
+ IoWrite8 (gComBase + LCR_OFFSET, OutputData);\r
\r
*ReportStatusCode = SerialReportStatusCode;\r
}\r