Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

TTYINIT

Structure for a tty device

Synopsis:

typedef struct ttyinit_entry {
    _Paddr64t               port;
    unsigned                port_shift;
    unsigned                intr;
    int                     baud;
    int                     isize;
    int                     osize;
    int                     csize;
    int                     c_cflag;
    int                     c_iflag;
    int                     c_lflag;
    int                     c_oflag;
    int                     fifo;
    int                     clk;
    int                     div;
    char                    name[TTY_NAME_MAX];
 {  TTYINIT;

Description:

A character driver shares the TTYINIT with the io=char library. This structure is used to initialize baud rate, input, output, canonical buffer sizes, termios flags, interrupts, etc.

The members include:

port
Contains addresses of device registers.
port_shift
Used to provide spacing between registers. For example:
intr
The interrupt number associated with the device.
baud
The device's baud rate.
isize
The input buffer size.
osize
The output buffer size.
csize
The canonical buffer size.
c_cflag
See TTYDEV.
c_iflag
See TTYDEV.
c_lflag
See TTYDEV.
c_oflag
See TTYDEV.
fifo
See TTYDEV.
clk
The clock frequency is used with baud rate and divisor in stty.
div
The divisor is used with baud rate and clock in stty.
name
The name of the device.

Classification:

QNX Neutrino

See also:

TTYDEV