From owner-freebsd-hackers Wed Feb 21 05:34:49 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA03332 for hackers-outgoing; Wed, 21 Feb 1996 05:34:49 -0800 (PST) Received: from fgwmail.fujitsu.co.jp (fgwmail.fujitsu.co.jp [164.71.1.133]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA03327 for ; Wed, 21 Feb 1996 05:34:46 -0800 (PST) Received: from fdmmail.fujitsu.co.jp by fgwmail.fujitsu.co.jp (8.6.12+2.5Wb4/3.3W5-MX960213-Fujitsu Mail Gateway) id WAA02758; Wed, 21 Feb 1996 22:34:42 +0900 Received: from sphinx.sysrap.cs.fujitsu.co.jp by fdmmail.fujitsu.co.jp (8.6.12+2.5Wb4/3.3W5-MX960213-Fujitsu Domain Mail Master) id WAA01496; Wed, 21 Feb 1996 22:34:10 +0900 Received: (from seki@localhost) by sphinx.sysrap.cs.fujitsu.co.jp (8.6.12+2.5Wb7/3.4W-) id WAA00818; Wed, 21 Feb 1996 22:30:57 +0900 Date: Wed, 21 Feb 1996 22:30:57 +0900 From: Masahiro SEKIGUCHI Message-Id: <199602211330.WAA00818@sphinx.sysrap.cs.fujitsu.co.jp> To: koshy@india.hp.com (A JOSEPH KOSHY) Cc: hackers@FreeBSD.org Subject: ISA device irq/mem auto-configuration Newsgroups: rtd.freebsd.hackers In-Reply-To: <199602210718.AA255777134@fakir.india.hp.com> References: <199602210718.AA255777134@fakir.india.hp.com> Sender: owner-hackers@FreeBSD.org Precedence: bulk > This is a basic question about how we handle boards whose IRQ, I/O and > memory ranges can be autodetected at boot time. For IRQ, DMA channel, and/or memory addresses, I support the idea that the driver should use the value detected at boot, *if* the driver can DETECT them but can NOT set them. If those settings can be changed by the driver, it *may* be better to use values specified in the config. I cannot just say one scenario is better, in this case. > I have seen in some places "-1" being used as a kind of "wildcard" address > in some drivers. Is this a convention? I believe so. I wrote my fe driver that way. Indeed, config accepts "?" for mem, for example, and generates -1. > Can anyone point me to further reading? I expect that "http://freefall.cdrom.com/~erich/ddwg/ddwg.html" will say something on the issue, in near future... BTW, PC card support for FreeBSD includes some *smart* handling of those settings. Windows 95, or some other competing operating systems have similar services for both PC cards and PnP ISA cards. Is anyone working on smart resource arbitration on FreeBSD for PnP ISA cards?