ne2000 on pc386

Antonio da Silva Fariña adasilva at diatel.upm.es
Tue Jan 15 10:01:29 UTC 2002


Hi

I have a Pentium 133 running with a realteak NE2000 compatible card.

In bsp.h file you must configure the driver name and the driver 
attach function.

extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *);
#define BSP_NE2000_NETWORK_DRIVER_NAME      "ne1"
#define BSP_NE2000_NETWORK_DRIVER_ATTACH    rtems_ne_driver_attach

> Vivek Vaid wrote:
>
> The card i am using is ne2000, compatible isa card. so on windows and
> linux it doesnt work unless i specify the io address and irq.
> should i modify the structure in netconfig.h for net demo, adding these
> fields ?

The ne2000 code in c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c has the
following lines:

  if (config->irno != 0)
    sc->irno = config->irno;
  else {
    /* We use 5 as the default IRQ.  */
    sc->irno = 5;
  }

  if (config->port != 0)
    sc->port = config->port;
  else {
    /* We use 0x300 as the default IO port number.  */
    sc->port = 0x300;
  }

The default values are: IRQ5 and Base Port 300. You must configure 
your card with this values or choose another and change the code.

Regards
-- 
_______________________________________________________________________

 Antonio da Silva Fariña
 DIATEL-UPM                URL:    http://www.diatel.upm.es/~adasilva/
 EUIT Telecomunicación     mailto: adasilva at diatel.upm.es
 Ctra. Valencia, Km. 7  Tel: +34 91 3365478   Fax: +34 91 3367817
 28031 Madrid, SPAIN
_________________________________________________________________________



More information about the users mailing list