Date: Tue, 27 Jan 1998 09:51:29 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: eivind@yes.no (Eivind Eklund) Cc: hackers@FreeBSD.ORG Subject: Re: Proposed patch to src/sys/i386/isa/isa.c Message-ID: <199801270851.JAA01529@labinfo.iet.unipi.it> In-Reply-To: <19980127095238.14229@follo.net> from "Eivind Eklund" at Jan 27, 98 09:52:19 am
next in thread | previous in thread | raw e-mail | index | archive | help
> The patch below make the autoconfig-system drop probing/attaching devices > twice if a previous probe/attach succeeded. This let you specify a device > twice in a kernel config file (with different IO-addresses), and then use > the first one that is detected. > > Example: > device ed0 at isa? port 0x300 net irq 3 iomem 0xd8000 vector edintr > device ed0 at isa? port 0x220 net irq 10 iomem 0xd8000 vector edintr this could have good use in the GENERIC kernel. However, have you checked if this (the above kernel configuration, not your patch) causes any trouble to the autoconfig stuff ? I think there you identify devices by name, so if you have multiple instances of "ed0" I am not quite sure how it is handled. > > <dreamy> > Now, if we had a test to see if a particular IRQ is active, we could have a > GENERIC that just let our users plug in any clone and it would just work... > </dreamy> that's what PnP is for :) > prod, then sleep 100ms (or whatever), then ask the kernel "Hey, did the IRQ > come as I said it would?" > > For many devices, the prod phase is easy, but AFAIK none of our current > drivers do the above (which suggest to me that the kernel part of it is > missing). maybe it's not too hard to implement it. after all you just have to poll the status register of the 8259... we've been through something similar for the DMA status for the audio stuff and it was not hard at all. cheers 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?199801270851.JAA01529>