|
RDFU
1.0
|
Serial (COM) port communication. More...
#include "EfiScannerHeaders.h"
Go to the source code of this file.
Macros | |
| #define | LSR_OFFSET 0x05 |
| #define | LSR_RXDA 0x01 |
| #define | LSR_TXRDY 0x20 |
| #define | COM_PORT_ADDRESS1 0x3f8 |
| #define | COM_PORT_ADDRESS2 0x2f8 |
| #define | COM_PORT_ADDRESS3 0x3e8 |
| #define | COM_PORT_ADDRESS4 0x2e8 |
Functions | |
| VOID | ComInitialize (ULONG ComPortAddr) |
| VOID | ComPutChar (UCHAR c) |
| VOID | ComPutString (CHAR8 *String) |
| UCHAR | ComGetChar (VOID) |
Variables | |
| ULONG | ComPort = COM_PORT_ADDRESS2 |
Serial (COM) port communication.
Definition in file ComPort.c.
| #define LSR_OFFSET 0x05 |
Definition at line 20 of file ComPort.c.
Referenced by ComGetChar(), and ComPutChar().
| #define LSR_RXDA 0x01 |
Definition at line 21 of file ComPort.c.
Referenced by ComGetChar().
| #define LSR_TXRDY 0x20 |
Definition at line 22 of file ComPort.c.
Referenced by ComPutChar().
| UCHAR ComGetChar | ( | VOID | ) |
Definition at line 89 of file ComPort.c.
References ASMReadPortByte(), ComPort, LSR_OFFSET, and LSR_RXDA.
Referenced by ComConsoleStart().


| VOID ComInitialize | ( | ULONG | ComPortAddr | ) |
| VOID ComPutChar | ( | UCHAR | c | ) |
Function writes single character to the selected com port.
| c | Character |
| NONE |
Definition at line 61 of file ComPort.c.
References ASMReadPortByte(), ASMWritePortByte(), ComPort, LSR_OFFSET, and LSR_TXRDY.
Referenced by ComConsoleStart(), and ComPutString().


| VOID ComPutString | ( | CHAR8 * | String | ) |
Function writes selected string to the selected com port.
| String | Pointer to null-terminated string to send. |
| NONE |
Definition at line 78 of file ComPort.c.
References ComPutChar().
Referenced by LogFileAscii(), and LogFullAscii().


| ULONG ComPort = COM_PORT_ADDRESS2 |
Definition at line 30 of file ComPort.c.
Referenced by ComGetChar(), ComInitialize(), and ComPutChar().