From owner-freebsd-hackers Wed Jan 24 22:47:12 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA12737 for hackers-outgoing; Wed, 24 Jan 1996 22:47:12 -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 WAA12727 for ; Wed, 24 Jan 1996 22:47:09 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id HAA11627; Thu, 25 Jan 1996 07:46:53 +0100 From: Luigi Rizzo Message-Id: <199601250646.HAA11627@labinfo.iet.unipi.it> Subject: Re: How to modify a driver for PCI card ? To: se@ZPR.Uni-Koeln.DE (Stefan Esser) Date: Thu, 25 Jan 1996 07:46:52 +0100 (MET) Cc: hackers@freebsd.org In-Reply-To: <199601250136.AA22198@Sysiphos> from "Stefan Esser" at Jan 25, 96 02:36:31 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > } 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. > > No, it would be a good idea to include the card > as a supported PCI device ... except from the location of the driver in the source tree, I cannot tell the difference between the two things. See the lnc driver. > You may have a look at how the bt driver deals > with this issue: /sys/pci/bt9xx.c. > > All you need is a wrapper, that recognizes the > vendor and device IDs, and call the ISA if_ed > attach code with the port address and irq read > from PCI configuration space registers. > > This has to be done for quite a number of other > PCI cards, that emulate common ISA controllers. > (E.g. for the Lance Ethernet driver if_lnc.c.) yes, except that (according to the author of the if_lnc driver) some PCI lnc chipsets (like the one I have) show up as VLB devices... > I'd do it, if I only had the time ... :( Common problem... 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/ ====================================================================