VxWorks Reference Manual : Libraries
pccardLib - PC CARD enabler library
pccardMount( ) - mount a DOS file system
pccardMkfs( ) - initialize a device and mount a DOS file system
pccardAtaEnabler( ) - enable the PCMCIA-ATA device
pccardSramEnabler( ) - enable the PCMCIA-SRAM driver
pccardEltEnabler( ) - enable the PCMCIA Etherlink III card
pccardTffsEnabler( ) - enable the PCMCIA-TFFS driver
This library provides generic facilities for enabling PC CARD. Each PC card device driver needs to provide an enabler routine and a CSC interrupt handler. The enabler routine must be in the pccardEnabler structure. Each PC card driver has its own resource structure, xxResources. The ATA PC card driver resource structure is ataResources in sysLib, which also supports a local IDE disk. The resource structure has a PC card common resource structure in the first member. Other members are device-driver dependent resources.
The PCMCIA chip initialization routines tcicInit( ) and pcicInit( ) are included in the PCMCIA chip table pcmciaAdapter. This table is scanned when the PCMCIA library is initialized. If the initialization routine finds the PCMCIA chip, it registers all function pointers of the PCMCIA_CHIP structure.
A memory window defined in pcmciaMemwin is used to access the CIS of a PC card through the routines in cisLib.
pccardLib, pcmciaLib, cisLib, tcic, pcic
pccardMount( ) - mount a DOS file system
STATUS pccardMount ( int sock, /* socket number */ char * pName /* name of a device */ )
This routine mounts a DOS file system.
OK or ERROR.
pccardMkfs( ) - initialize a device and mount a DOS file system
STATUS pccardMkfs ( int sock, /* socket number */ char * pName /* name of a device */ )
This routine initializes a device and mounts a DOS file system.
OK or ERROR.
pccardAtaEnabler( ) - enable the PCMCIA-ATA device
STATUS pccardAtaEnabler ( int sock, /* socket no. */ ATA_RESOURCE * pAtaResource, /* pointer to ATA resources */ int numEnt, /* number of ATA resource entries */ FUNCPTR showRtn /* ATA show routine */ )
This routine enables the PCMCIA-ATA device.
OK, ERROR_FIND if there is no ATA card, or ERROR if another error occurs.
pccardSramEnabler( ) - enable the PCMCIA-SRAM driver
STATUS pccardSramEnabler ( int sock, /* socket no. */ SRAM_RESOURCE * pSramResource, /* pointer to SRAM resources */ int numEnt, /* number of SRAM resource entries */ FUNCPTR showRtn /* SRAM show routine */ )
This routine enables the PCMCIA-SRAM driver.
OK, ERROR_FIND if there is no SRAM card, or ERROR if another error occurs.
pccardEltEnabler( ) - enable the PCMCIA Etherlink III card
STATUS pccardEltEnabler ( int sock, /* socket no. */ ELT_RESOURCE * pEltResource, /* pointer to ELT resources */ int numEnt, /* number of ELT resource entries */ FUNCPTR showRtn /* show routine */ )
This routine enables the PCMCIA Etherlink III (ELT) card.
OK, ERROR_FIND if there is no ELT card, or ERROR if another error occurs.
pccardTffsEnabler( ) - enable the PCMCIA-TFFS driver
STATUS pccardTffsEnabler ( int sock, /* socket no. */ TFFS_RESOURCE * pTffsResource, /* pointer to TFFS resources */ int numEnt, /* number of SRAM resource entries */ FUNCPTR showRtn /* TFFS show routine */ )
This routine enables the PCMCIA-TFFS driver.
OK, ERROR_FIND if there is no TFFS(Flash) card, or ERROR if another error occurs.