VxWorks Reference Manual : Libraries
if_elc - SMC 8013WC Ethernet network interface driver
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
This module implements the SMC 8013WC network interface driver.
The W1 jumper should be set in position SOFT. The W2 jumper should be set in position NONE/SOFT.
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.
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.
elcattach( ) - publish the elc network interface and initialize the driver and device
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) */ )
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.
OK or ERROR.
elcPut( ) - copy a packet to the interface.
#ifdef BSD43_DRIVER LOCAL void elcPut ( int unit )
Copy from mbuf chain to transmitter buffer in shared memory.
elcShow( ) - display statistics for the SMC 8013WC elc network interface
void elcShow ( int unit, /* interface unit */ BOOL zap /* 1 = zero totals */ )
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.
N/A