Extensible Firmware Interface Specification
220 12/12/00 Version 1.02
12.1.3 SERIAL_IO.SetControl()
Summary
Sets the control bits on a serial device.
Prototype
EFI_STATUS
(EFIAPI *EFI_SERIAL_SET_CONTROL) (
IN SERIAL_IO_INTERFACE *This,
IN UINT32 Control
);
Parameters
This A pointer to the SERIAL_IO_INTERFACE instance. Type
SERIAL_IO_INTERFACE is defined in Section 12.1.
Control Sets the bits of Control that are settable. See Related
Definitions.
Related Definitions
//*******************************************************
// CONTROL BITS
//*******************************************************
#define EFI_SERIAL_CLEAR_TO_SEND 0x0010
#define EFI_SERIAL_DATA_SET_READY 0x0020
#define EFI_SERIAL_RING_INDICATE 0x0040
#define EFI_SERIAL_CARRIER_DETECT 0x0080
#define EFI_SERIAL_REQUEST_TO_SEND 0x0002
#define EFI_SERIAL_DATA_TERMINAL_READY 0x0001
#define EFI_SERIAL_INPUT_BUFFER_EMPTY 0x0100
#define EFI_SERIAL_OUTPUT_BUFFER_EMPTY 0x0200
#define EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE 0x1000
#define EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE 0x2000
#define EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE 0x4000
Description
The SetControl() function is used to assert or deassert the control signals on a serial device.
The following signals are set according their bit settings:
Request to Send
Data Terminal Ready