Date: Sun, 3 Sep 1995 08:12:50 -0500 From: "Daniel M. Eischen" <deischen@iworks.InterWorks.org> To: freebsd-current@freebsd.org Subject: Re: Getting around conflicts for a driver w/out base address Message-ID: <9509031312.AA26276@iworks.InterWorks.org>
next in thread | raw e-mail | index | archive | help
>>> /* >>> * Drivers that do not have IO base addresses should return this >>> * in the probe routine. >>> */ >>> #define ISA_NO_IOBASE -1 >>> >>> or something like that. That way it becomes apparent what a driver should >>> do. > >It would be better to fix the interface (introduce an id_iosize field ...). >In in any case, it is more important to document the requirement to return >the i/o size for i/o mapped devices. Many old little-used drivers still >do this wrong: Isn't there already a size field - id_alive? At least that's how it looks like it is being used in isa.c. It is set to the value returned by a driver's probe function. How about making the drivers set this field like they do for others (id_maddr and id_msize for example)? Then the probe routine can actually return a success/fail status. Or is it more complicated than this when considering config? Dan Eischen deischen@iworks.InterWorks.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9509031312.AA26276>