12#ifndef __SERIAL_IO_PROTOCOL_H__
13#define __SERIAL_IO_PROTOCOL_H__
15#define EFI_SERIAL_IO_PROTOCOL_GUID \
17 0xBB25CF6F, 0xF1D4, 0x11D2, {0x9A, 0x0C, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0xFD } \
20#define EFI_SERIAL_TERMINAL_DEVICE_TYPE_GUID \
22 0X6AD9A60F, 0X5815, 0X4C7C, { 0X8A, 0X10, 0X50, 0X53, 0XD2, 0XBF, 0X7A, 0X1B } \
28#define SERIAL_IO_PROTOCOL EFI_SERIAL_IO_PROTOCOL_GUID
66#define EFI_SERIAL_CLEAR_TO_SEND 0x00000010
67#define EFI_SERIAL_DATA_SET_READY 0x00000020
68#define EFI_SERIAL_RING_INDICATE 0x00000040
69#define EFI_SERIAL_CARRIER_DETECT 0x00000080
70#define EFI_SERIAL_INPUT_BUFFER_EMPTY 0x00000100
71#define EFI_SERIAL_OUTPUT_BUFFER_EMPTY 0x00000200
76#define EFI_SERIAL_REQUEST_TO_SEND 0x00000002
77#define EFI_SERIAL_DATA_TERMINAL_READY 0x00000001
82#define EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE 0x00001000
83#define EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE 0x00002000
84#define EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE 0x00004000
137 IN UINT32 ReceiveFifoDepth,
264 UINT32 ReceiveFifoDepth;
270#define EFI_SERIAL_IO_PROTOCOL_REVISION 0x00010000
271#define EFI_SERIAL_IO_PROTOCOL_REVISION1p1 0x00010001
272#define SERIAL_IO_INTERFACE_REVISION EFI_SERIAL_IO_PROTOCOL_REVISION
306extern EFI_GUID gEfiSerialIoProtocolGuid;
307extern EFI_GUID gEfiSerialTerminalDeviceTypeGuid;
EFI_STATUS(EFIAPI * EFI_SERIAL_WRITE)(IN EFI_SERIAL_IO_PROTOCOL *This, IN OUT UINTN *BufferSize, IN VOID *Buffer)
EFI_STATUS(EFIAPI * EFI_SERIAL_RESET)(IN EFI_SERIAL_IO_PROTOCOL *This)
EFI_STATUS(EFIAPI * EFI_SERIAL_GET_CONTROL_BITS)(IN EFI_SERIAL_IO_PROTOCOL *This, OUT UINT32 *Control)
EFI_STATUS(EFIAPI * EFI_SERIAL_SET_CONTROL_BITS)(IN EFI_SERIAL_IO_PROTOCOL *This, IN UINT32 Control)
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)
EFI_STATUS(EFIAPI * EFI_SERIAL_READ)(IN EFI_SERIAL_IO_PROTOCOL *This, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
EFI_SERIAL_IO_PROTOCOL SERIAL_IO_INTERFACE
EFI_SERIAL_IO_MODE * Mode
CONST EFI_GUID * DeviceTypeGuid