Serial I/O Protocol
Version 1.02 12/12/00 215
Parity If applicable, this is the EFI_PARITY_TYPE that is computed or
checked as each character is transmitted or received. If the device
does not support parity the value is the default parity value.
StopBits If applicable, the EFI_STOP_BITS_TYPE number of stop bits per
character. If the device does not support stop bits the value is the
default stop bit value.
//*******************************************************
// EFI_PARITY_TYPE
//*******************************************************
typedef enum {
DefaultParity,
NoParity,
EvenParity,
OddParity,
MarkParity,
SpaceParity
} EFI_PARITY_TYPE;
//*******************************************************
// EFI_STOP_BITS_TYPE
//*******************************************************
typedef enum {
DefaultStopBits,
OneStopBit, // 1 stop bit
OneFiveStopBits, // 1.5 stop bits
TwoStopBits // 2 stop bits
} EFI_STOP_BITS_TYPE;
Description
The Serial I/O protocol is used to communicate with UART-style serial devices. These can be
standard UART serial ports in PC/AT systems, serial ports attached to a USB interface, or
potentially any character-based I/O device.
The Serial I/O protocol can control byte I/O style devices from a generic device to a device with
features such as a UART. As such many of the serial I/O features are optional to allow for the case
of devices that do not have UART controls. Each of these options is called out in the specific serial
I/O functions.