From owner-freebsd-current Wed Dec 16 10:49:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24297 for freebsd-current-outgoing; Wed, 16 Dec 1998 10:49:27 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA24292 for ; Wed, 16 Dec 1998 10:49:25 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0zqM0Q-0005Yf-00; Wed, 16 Dec 1998 11:49:06 -0700 Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.1/8.8.3) with ESMTP id LAA19711; Wed, 16 Dec 1998 11:47:36 -0700 (MST) Message-Id: <199812161847.LAA19711@harmony.village.org> To: Mike Smith Subject: Driver config Cc: current@FreeBSD.ORG In-reply-to: Your message of "Tue, 15 Dec 1998 04:14:26 PST." <199812151214.EAA05117@dingo.cdrom.com> References: <199812151214.EAA05117@dingo.cdrom.com> Date: Wed, 16 Dec 1998 11:47:35 -0700 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199812151214.EAA05117@dingo.cdrom.com> Mike Smith writes: : You've only used two uniquifiers, the driver name and instance number, : but I'm wondering whether we might not want to support a more general : mechanism where you can specify other uniquifiers for the match. : : eg. : : driver=sio, bus_attribute=removable: powerup_on_open=yes : : This may also be an instance of feeping creaturism... Hmmm. the way that I've seen this overcome in the past is that many things were pushed onto the fetch stack. So that when the aha driver connected to the isa bus unit 0 device.main.isa.aha.unit0.tune_isa would be fetched. The specification would be devices*aha*unit0.tune_isa: 1 And then for the aic driver: device.main.isa.aic.unit0.force_dma device.main.pcmcia.aic.unit0.force_dma To force DMA for differently attached devices. This works well enough in practice, but does lack the flexibility that I see in your stuff. It would likely be easier to implement. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message