VxWorks Reference Manual : Libraries
if_ultra - SMC Elite Ultra Ethernet network interface driver
ultraattach( ) - publish ultra interface and initialize device
ultraPut( ) - copy a packet to the interface.
ultraShow( ) - display statistics for the ultra network interface
This module implements the SMC Elite Ultra Ethernet network interface driver.
This driver supports single transmission and multiple reception. The Current register is a write pointer to the ring. The Bound register is a read pointer from the ring. This driver gets the Current register at the interrupt level and sets the Bound register at the task level. The interrupt is never masked at the task level.
The W1 jumper should be set in the position of "Software Configuration". The defined I/O address in config.h must match the one stored in EEROM. The RAM address, the RAM size, and the IRQ level are defined in config.h. IRQ levels 2,3,5,7,10,11,15 are supported.
The only user-callable routines are ultraattach( ) and ultraShow( ):
- ultraattach( )
- publishes the ultra interface and initializes the driver and device.
- ultraShow( )
- displays statistics that are collected in the interrupt handler.
ultraattach( ) - publish ultra interface and initialize device
STATUS ultraattach ( int unit, /* unit number */ int ioAddr, /* address of ultra's shared memory */ int ivec, /* interrupt vector to connect to */ int ilevel, /* interrupt level */ int memAddr, /* address of ultra's shared memory */ int memSize, /* size of ultra's shared memory */ int config /* 0: RJ45 + AUI(Thick) 1: RJ45 + BNC(Thin) */ )
This routine attaches an ultra 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.
ultraPut( ) - copy a packet to the interface.
#ifdef BSD43_DRIVER LOCAL void ultraPut ( int unit /* device unit number */ )
Copy from mbuf chain to transmitter buffer in shared memory.
N/A
ultraShow( ) - display statistics for the ultra network interface
void ultraShow ( int unit, /* interface unit */ BOOL zap /* 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