12 #ifndef __SERIAL_IO_PROTOCOL_H__ 13 #define __SERIAL_IO_PROTOCOL_H__ 17 #define EFI_SERIAL_IO_PROTOCOL_GUID \ 19 0xBB25CF6F, 0xF1D4, 0x11D2, {0x9A, 0x0C, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0xFD } \ 22 #define EFI_SERIAL_TERMINAL_DEVICE_TYPE_GUID \ 24 0X6AD9A60F, 0X5815, 0X4C7C, { 0X8A, 0X10, 0X50, 0X53, 0XD2, 0XBF, 0X7A, 0X1B } \ 30 #define SERIAL_IO_PROTOCOL EFI_SERIAL_IO_PROTOCOL_GUID 68 #define EFI_SERIAL_CLEAR_TO_SEND 0x00000010 69 #define EFI_SERIAL_DATA_SET_READY 0x00000020 70 #define EFI_SERIAL_RING_INDICATE 0x00000040 71 #define EFI_SERIAL_CARRIER_DETECT 0x00000080 72 #define EFI_SERIAL_INPUT_BUFFER_EMPTY 0x00000100 73 #define EFI_SERIAL_OUTPUT_BUFFER_EMPTY 0x00000200 78 #define EFI_SERIAL_REQUEST_TO_SEND 0x00000002 79 #define EFI_SERIAL_DATA_TERMINAL_READY 0x00000001 84 #define EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE 0x00001000 85 #define EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE 0x00002000 86 #define EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE 0x00004000 272 #define EFI_SERIAL_IO_PROTOCOL_REVISION 0x00010000 273 #define EFI_SERIAL_IO_PROTOCOL_REVISION1p1 0x00010001 274 #define SERIAL_IO_INTERFACE_REVISION EFI_SERIAL_IO_PROTOCOL_REVISION UINT32 Revision
The revision to which the EFI_SERIAL_IO_PROTOCOL adheres.
EFI_SERIAL_GET_CONTROL_BITS GetControl
FILE_LICENCE(BSD2_PATENT)
128 bit buffer containing a unique identifier value.
EFI_SERIAL_SET_CONTROL_BITS SetControl
EFI_SERIAL_SET_ATTRIBUTES SetAttributes
EFI_PARITY_TYPE
Parity type that is computed or checked as each character is transmitted or received.
EFI_GUID gEfiSerialTerminalDeviceTypeGuid
EFI_STATUS(EFIAPI * EFI_SERIAL_SET_ATTRIBUTES)(IN EFI_SERIAL_IO_PROTOCOL *This, IN UINT64 BaudRate, IN UINT32 ReceiveFifoDepth, IN UINT32 Timeout, IN EFI_PARITY_TYPE Parity, IN UINT8 DataBits, IN EFI_STOP_BITS_TYPE StopBits)
Sets the baud rate, receive FIFO depth, transmit/receice time out, parity, data bits,...
UINT16_t BufferSize
Buffer size.
EFI_SERIAL_IO_PROTOCOL SERIAL_IO_INTERFACE
Backward-compatible with EFI1.1.
EFI_STATUS(EFIAPI * EFI_SERIAL_WRITE)(IN EFI_SERIAL_IO_PROTOCOL *This, IN OUT UINTN *BufferSize, IN VOID *Buffer)
Writes data to a serial device.
EFI_STOP_BITS_TYPE
Stop bits type.
The Serial I/O protocol is used to communicate with UART-style serial devices.
CONST EFI_GUID * DeviceTypeGuid
Pointer to a GUID identifying the device connected to the serial port.
EFI_STATUS(EFIAPI * EFI_SERIAL_RESET)(IN EFI_SERIAL_IO_PROTOCOL *This)
Reset the serial device.
SEGOFF16_t Buffer
Buffer address.
EFI_STATUS(EFIAPI * EFI_SERIAL_SET_CONTROL_BITS)(IN EFI_SERIAL_IO_PROTOCOL *This, IN UINT32 Control)
Set the control bits on a serial device.
UINT64 UINTN
Unsigned value of native width.
#define VOID
Undeclared type.
unsigned long long UINT64
#define CONST
Datum is read-only.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
EFI_SERIAL_IO_MODE * Mode
Pointer to SERIAL_IO_MODE data.
EFI_GUID gEfiSerialIoProtocolGuid
EFI_STATUS(EFIAPI * EFI_SERIAL_GET_CONTROL_BITS)(IN EFI_SERIAL_IO_PROTOCOL *This, OUT UINT32 *Control)
Retrieves the status of thecontrol bits on a serial device.
EFI_STATUS(EFIAPI * EFI_SERIAL_READ)(IN EFI_SERIAL_IO_PROTOCOL *This, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
Writes data to a serial device.