VxWorks Reference Manual : Libraries

if_ene

NAME

if_ene - Novell/Eagle NE2000 network interface driver

ROUTINES

eneattach( ) - publish the ene network interface and initialize the driver and device
enePut( ) - copy a packet to the interface.
eneShow( ) - display statistics for the NE2000 ene network interface

DESCRIPTION

This module implements the Novell/Eagle NE2000 network interface driver. There is one user-callable routine, eneattach( ).

BOARD LAYOUT

The diagram below shows the relevant jumpers for VxWorks configuration. Other compatible boards will be jumpered differently; many are jumperless.

        _________________________________________________________
        |                                                       |
        |                                                       |
        |                                           WWWWWWWW    |
        |                       WWWW  WWW           87654321    ||
        |                       1111   11         1 ........    ||
        |                       5432  901         2 ........    ||
        |                       ....  ...         3 ........    ||
        |                       ....  ...                       ||
        |               W                                       |
        |               1                                       |
        |               6                                       |___
        |               .                                       |___|
        |               .                                       |
        |________               ___                         ____|
                |               | |                         |
                |_______________| |_________________________|

    W1..W8  1-2 position selects AUI ("DIX") connector
            2-3 position selects BNC (10BASE2) connector
    W9..W11 YYN  I/O address 300h, no boot ROM
            NYN  I/O address 320h, no boot ROM
            YNN  I/O address 340h, no boot ROM
            NNN  I/O address 360h, no boot ROM
            YYY  I/O address 300h, boot ROM at paragraph 0c800h
            NYY  I/O address 320h, boot ROM at paragraph 0cc00h
            YNY  I/O address 340h, boot ROM at paragraph 0d000h
            NNY  I/O address 360h, boot ROM at ??? (invalid configuration?)
    W12     Y    IRQ 2 (or 9 if you prefer)
    W13     Y    IRQ 3
    W14     Y    IRQ 4
    W15     Y    IRQ 5 (note that only one of W12..W15 may be installed)
    W16     Y    normal ISA bus timing
            N    timing for COMPAQ 286 portable, PS/2 Model 30-286, C&T chipset

EXTERNAL INTERFACE

There are two user-callable routines:

eneattach( )
publishes the ene interface and initializes the driver and device.

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

See the manual entries for these routines for more detail.

SYSTEM RESOURCE USAGE

- one interrupt vector
    - 16 bytes in the uninitialized data section (bss)
    - 1752 bytes (plus overhead) of malloc'ed memory per unit attached

CAVEAT

This driver does not enable the twisted-pair connector on the Taiwanese ETHER-16 compatible board.

SEE ALSO

if_ene


Libraries : Routines

eneattach( )

NAME

eneattach( ) - publish the ene network interface and initialize the driver and device

SYNOPSIS

STATUS eneattach
    (
    int unit,   /* unit number */
    int ioAddr, /* address of ene's shared memory */
    int ivec,   /* interrupt vector to connect to */
    int ilevel  /* interrupt level */
    )

DESCRIPTION

This routine attaches an ene 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_ene, ifLib, netShow


Libraries : Routines

enePut( )

NAME

enePut( ) - copy a packet to the interface.

SYNOPSIS

#ifdef BSD43_DRIVER static void enePut
    (
    int unit
    )

DESCRIPTION

Copy from mbuf chain to transmitter buffer in shared memory.

SEE ALSO

if_ene


Libraries : Routines

eneShow( )

NAME

eneShow( ) - display statistics for the NE2000 ene network interface

SYNOPSIS

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

DESCRIPTION

This routine displays statistics about the ene 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_ene