VxWorks Reference Manual : Libraries
ppc403Sio - ppc403GA serial driver
ppc403DummyCallback( ) - dummy callback routine
ppc403DevInit( ) - initialize the serial port unit
ppc403IntWr( ) - handle a transmitter interrupt
ppc403IntRd( ) - handle a receiver interrupt
ppc403IntEx( ) - handle error interrupts
This is the driver for PPC403GA serial port on the on-chip peripheral bus. The SPU (serial port unit) consists of three main elements: receiver, transmitter, and baud-rate generator. For details, refer to the PPC403GA Embedded Controller User's Manual.
A PPC403_CHAN structure is used to describe the chip. This data structure contains the single serial channel. The BSP's sysHwInit( ) routine typically calls sysSerialHwInit( ) which initializes all the values in the PPC403_CHAN structure (except the SIO_DRV_FUNCS) before calling ppc403DevInit( ). The BSP's sysHwInit2( ) routine typically calls sysSerialHwInit2( ) which connects the chip interrupt routines ppc403IntWr( ) and ppc403IntRd( ) via intConnect( ).
This driver responds to the same ioctl( ) codes as other SIO drivers; for more information, see sioLib.h.
drv/sio/ppc403Sio.h
ppc403DummyCallback( ) - dummy callback routine
STATUS ppc403DummyCallback (void)
ERROR (always).
ppc403DevInit( ) - initialize the serial port unit
void ppc403DevInit ( PPC403_CHAN * pChan )
The BSP must already have initialized all the device addresses in the PPC403_CHAN structure. This routine initializes some SIO_CHAN function pointers and then resets the chip in a quiescent state.
ppc403IntWr( ) - handle a transmitter interrupt
void ppc403IntWr ( PPC403_CHAN * pChan )
This routine handles write interrupts from the serial communication controller.
N/A
ppc403IntRd( ) - handle a receiver interrupt
void ppc403IntRd ( PPC403_CHAN * pChan )
This routine handles read interrupts from the serial commonication controller.
N/A
ppc403IntEx( ) - handle error interrupts
void ppc403IntEx ( PPC403_CHAN * pChan )
This routine handles miscellaneous interrupts on the seial communication controller.
N/A