Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 1996 21:07:35 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        hackers@freebsd.org
Subject:   How to modify a driver for PCI card ?
Message-ID:  <199601242007.VAA10563@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
Hi,

I have a PCI Ethernet card which is an NE2000 clone. I am currently
using it with the "ed" driver, and it works very nicely:

Jan 23 15:15:26 prova /kernel: ed0 at 0xff40-0xff5f irq 10 on isa
Jan 23 15:15:27 prova /kernel: ed0: address 00:20:18:28:06:d7, type NE2000 (16 bit) 

The card is very cheap (about US$60 including 19% VAT), and I don't
think it has the same performance problems (CPU overhead) of NE2000
cards on the ISA bus.  The only problem, maybe just a cosmetic one,
is that after probing all the devices, the kernel says the following:

Jan 23 15:15:33 prova /kernel: pci0:15: vendor=0x10ec, device=0x8029, class=network (ethernet) [no driver assigned] 

Would it be hard to modify the "ed" driver to take care of this,
and correctly recognize the PCI card ? I am quite confused on what
would be necessary, and if it would break anything.

	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522              http://www.iet.unipi.it/~luigi/
====================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601242007.VAA10563>