VxWorks Reference Manual : Libraries

if_elc

NAME

if_elc - SMC 8013WC Ethernet network interface driver

ROUTINES

elcattach( ) - publish the elc network interface and initialize the driver and device
elcPut( ) - copy a packet to the interface.
elcShow( ) - display statistics for the SMC 8013WC elc network interface

DESCRIPTION

This module implements the SMC 8013WC network interface driver.

BOARD LAYOUT

The W1 jumper should be set in position SOFT. The W2 jumper should be set in position NONE/SOFT.

CONFIGURATION

The I/O address, RAM address, RAM size, and IRQ levels are defined in config.h. The I/O address must match the one stored in EEROM. The configuration software supplied by the manufacturer should be used to set the I/O address.

IRQ levels 2,3,4,5,7,9,10,11,15 are supported. Thick Ethernet (AUI) and Thin Ethernet (BNC) are configurable by changing the macro CONFIG_ELC in config.h.

EXTERNAL INTERFACE

The only user-callable routines are elcattach( ) and elcShow( ):

elcattach( )
publishes the elc interface and initializes the driver and device.

elcShow( )
displays statistics that are collected in the interrupt handler.

SEE ALSO

if_elc


Libraries : Routines

elcattach( )

NAME

elcattach( ) - publish the elc network interface and initialize the driver and device

SYNOPSIS

STATUS elcattach
    (
    int unit,    /* unit number */
    int ioAddr,  /* address of elc's shared memory */
    int ivec,    /* interrupt vector to connect to */
    int ilevel,  /* interrupt level */
    int memAddr, /* address of elc's shared memory */
    int memSize, /* size of elc's shared memory */
    int config   /* 0: RJ45 + AUI(Thick) 1: RJ45 + BNC(Thin) */
    )

DESCRIPTION

This routine attaches an elc Ethernet interface to the network if the device exists. It makes the interface available by filling in the network interface record. The system will initialize the interface when it is ready to accept packets.

RETURNS

OK or ERROR.

SEE ALSO

if_elc, ifLib, netShow


Libraries : Routines

elcPut( )

NAME

elcPut( ) - copy a packet to the interface.

SYNOPSIS

#ifdef BSD43_DRIVER LOCAL void elcPut
    (
    int unit
    )

DESCRIPTION

Copy from mbuf chain to transmitter buffer in shared memory.

SEE ALSO

if_elc


Libraries : Routines

elcShow( )

NAME

elcShow( ) - display statistics for the SMC 8013WC elc network interface

SYNOPSIS

void elcShow
    (
    int  unit, /* interface unit */
    BOOL zap   /* 1 = zero totals */
    )

DESCRIPTION

This routine displays statistics about the elc Ethernet network interface. It has two parameters:

unit
interface unit; should be 0.

zap
if 1, all collected statistics are cleared to zero.

RETURNS

N/A

SEE ALSO

if_elc