VxWorks Reference Manual : Libraries
i8250Sio - I8250 serial driver
i8250HrdInit( ) - initialize the chip
i8250Int( ) - handle a receiver/transmitter interrupt
This is the driver for the Intel 8250 UART Chip used on the PC 386. It uses the SCCs in asynchronous mode only.
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( ).
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.
drv/sio/i8250Sio.h
i8250HrdInit( ) - initialize the chip
void i8250HrdInit ( I8250_CHAN * pChan /* pointer to device */ )
This routine is called to reset the chip in a quiescent state.
N/A
i8250Int( ) - handle a receiver/transmitter interrupt
void i8250Int ( I8250_CHAN * pChan )
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.
N/A