VxWorks Reference Manual : Libraries
evbNs16550Sio - NS16550 serial driver for the IBM PPC403GA evaluation
evbNs16550HrdInit( ) - initialize the NS 16550 chip
evbNs16550Int( ) - handle a receiver/transmitter interrupt for the NS 16550 chip
This is the driver for the National NS 16550 UART Chip used on the IBM PPC403GA evaluation board. It uses the SCCs in asynchronous mode only.
An EVBNS16550_CHAN structure is used to describe the chip. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the register values in the EVBNS16550_CHAN structure (except the SIO_DRV_FUNCS) before calling evbNs16550HrdInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chip interrupt handler evbNs16550Int( ) via intConnect( ).
This driver responds to the same ioctl( ) codes as other serial drivers; for more information, see sioLib.h.
drv/sio/evbNs16550Sio.h
evbNs16550HrdInit( ) - initialize the NS 16550 chip
void evbNs16550HrdInit ( EVBNS16550_CHAN * pChan )
This routine is called to reset the NS 16550 chip to a quiescent state.
evbNs16550Int( ) - handle a receiver/transmitter interrupt for the NS 16550 chip
void evbNs16550Int ( EVBNS16550_CHAN * pChan )
This routine is called to handle interrupts. If there is another character to be transmitted, it sends it. If the interrupt handler is called erroneously (for example, if a device has never been created for the channel), it disables the interrupt.