VxWorks Reference Manual : Libraries

i8250Sio

NAME

i8250Sio - I8250 serial driver

ROUTINES

i8250HrdInit( ) - initialize the chip
i8250Int( ) - handle a receiver/transmitter interrupt

DESCRIPTION

This is the driver for the Intel 8250 UART Chip used on the PC 386. It uses the SCCs in asynchronous mode only.

USAGE

An I8250_CHAN structure is used to describe the chip. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the register values in the I8250_CHAN structure (except the SIO_DRV_FUNCS) before calling i8250HrdInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chips interrupt handler (i8250Int) via intConnect( ).

IOCTL FUNCTIONS

This driver responds to all the same ioctl( ) codes as a normal serial driver; for more information, see the comments in sioLib.h. As initialized, the available baud rates are 110, 300, 600, 1200, 2400, 4800, 9600, 19200, and 38400.

This driver handles setting of hardware options such as parity(odd, even) and number of data bits(5, 6, 7, 8). Hardware flow control is provided with the handshakes RTS/CTS. The function HUPCL(hang up on last close) is available.

INCLUDE FILES

drv/sio/i8250Sio.h

SEE ALSO

i8250Sio


Libraries : Routines

i8250HrdInit( )

NAME

i8250HrdInit( ) - initialize the chip

SYNOPSIS

void i8250HrdInit
    (
    I8250_CHAN * pChan /* pointer to device */
    )

DESCRIPTION

This routine is called to reset the chip in a quiescent state.

RETURNS

N/A

SEE ALSO

i8250Sio


Libraries : Routines

i8250Int( )

NAME

i8250Int( ) - handle a receiver/transmitter interrupt

SYNOPSIS

void i8250Int
    (
    I8250_CHAN * pChan
    )

DESCRIPTION

This routine handles four sources of interrupts from the UART. If there is another character to be transmitted, the character is sent. When a modem status interrupt occurs, the transmit interrupt is enabled if the CTS signal is TRUE.

RETURNS

N/A

SEE ALSO

i8250Sio