From owner-freebsd-hackers Wed Jan 24 12:08:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA16147 for hackers-outgoing; Wed, 24 Jan 1996 12:08:45 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA16085 for ; Wed, 24 Jan 1996 12:07:54 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id VAA10563 for hackers@freebsd.org; Wed, 24 Jan 1996 21:07:35 +0100 From: Luigi Rizzo Message-Id: <199601242007.VAA10563@labinfo.iet.unipi.it> Subject: How to modify a driver for PCI card ? To: hackers@freebsd.org Date: Wed, 24 Jan 1996 21:07:35 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk 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/ ====================================================================