Serial_io.setcontrol(), Setcontrol(), Funct – Intel Extensible Firmware Interface User Manual

Page 355

Advertising
background image

Protocols

— Console Support

Version 1.10

12/01/02

10-61

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 10.12.

Control

Sets the bits of

Control

that are settable. See “Related

Definitions” below.

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

Advertising