VxWorks Reference Manual : Libraries

pccardLib

NAME

pccardLib - PC CARD enabler library

ROUTINES

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

DESCRIPTION

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.

SEE ALSO

pccardLib, pcmciaLib, cisLib, tcic, pcic


Libraries : Routines

pccardMount( )

NAME

pccardMount( ) - mount a DOS file system

SYNOPSIS

STATUS pccardMount
    (
    int    sock, /* socket number */
    char * pName /* name of a device */
    )

DESCRIPTION

This routine mounts a DOS file system.

RETURNS

OK or ERROR.

SEE ALSO

pccardLib


Libraries : Routines

pccardMkfs( )

NAME

pccardMkfs( ) - initialize a device and mount a DOS file system

SYNOPSIS

STATUS pccardMkfs
    (
    int    sock, /* socket number */
    char * pName /* name of a device */
    )

DESCRIPTION

This routine initializes a device and mounts a DOS file system.

RETURNS

OK or ERROR.

SEE ALSO

pccardLib


Libraries : Routines

pccardAtaEnabler( )

NAME

pccardAtaEnabler( ) - enable the PCMCIA-ATA device

SYNOPSIS

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 */
    )

DESCRIPTION

This routine enables the PCMCIA-ATA device.

RETURNS

OK, ERROR_FIND if there is no ATA card, or ERROR if another error occurs.

SEE ALSO

pccardLib


Libraries : Routines

pccardSramEnabler( )

NAME

pccardSramEnabler( ) - enable the PCMCIA-SRAM driver

SYNOPSIS

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 */
    )

DESCRIPTION

This routine enables the PCMCIA-SRAM driver.

RETURNS

OK, ERROR_FIND if there is no SRAM card, or ERROR if another error occurs.

SEE ALSO

pccardLib


Libraries : Routines

pccardEltEnabler( )

NAME

pccardEltEnabler( ) - enable the PCMCIA Etherlink III card

SYNOPSIS

STATUS pccardEltEnabler
    (
    int            sock,         /* socket no. */
    ELT_RESOURCE * pEltResource, /* pointer to ELT resources */
    int            numEnt,       /* number of ELT resource entries */
    FUNCPTR        showRtn       /* show routine */
    )

DESCRIPTION

This routine enables the PCMCIA Etherlink III (ELT) card.

RETURNS

OK, ERROR_FIND if there is no ELT card, or ERROR if another error occurs.

SEE ALSO

pccardLib


Libraries : Routines

pccardTffsEnabler( )

NAME

pccardTffsEnabler( ) - enable the PCMCIA-TFFS driver

SYNOPSIS

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 */
    )

DESCRIPTION

This routine enables the PCMCIA-TFFS driver.

RETURNS

OK, ERROR_FIND if there is no TFFS(Flash) card, or ERROR if another error occurs.

SEE ALSO

pccardLib