From owner-freebsd-hackers Tue Feb 20 23:22:39 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA13443 for hackers-outgoing; Tue, 20 Feb 1996 23:22:39 -0800 (PST) Received: from relay.hp.com (relay.hp.com [15.255.152.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA13437 for ; Tue, 20 Feb 1996 23:22:36 -0800 (PST) Received: from fakir.india.hp.com by relay.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA086327338; Tue, 20 Feb 1996 23:22:27 -0800 Received: from localhost by fakir.india.hp.com with SMTP (1.37.109.16/15.5+ECS 3.3) id AA255777134; Wed, 21 Feb 1996 12:48:54 +0530 Message-Id: <199602210718.AA255777134@fakir.india.hp.com> To: freebsd-hackers@freebsd.org Subject: ISA device irq/mem auto-configuration Date: Wed, 21 Feb 1996 12:48:53 +0530 From: A JOSEPH KOSHY 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. Consider a network card : If the kernel has been configured for say, IRQ 5 but the actual board was detected at IRQ 11, whats the right thing to do? We could : (a) Ignore the board : this can be pretty frustrating to the user. (b) Print out some informative message : stating something like "board setup for IRQ XX but kernel was configured for YY" and leave it at that. (c) Take in the new IRQ setting somehow and do the right thing. Option (C) seems to me to be the right thing from the users point of view; I don't know enough of the FreeBSD kernel to tell if it is feasible. I have seen in some places "-1" being used as a kind of "wildcard" address in some drivers. Is this a convention? Can anyone point me to further reading? Have I missed something? Koshy