Date: Thu, 14 Oct 1999 14:04:56 -0600 From: Warner Losh <imp@village.org> To: Doug Rabson <dfr@nlsystems.com> Cc: new-bus@freebsd.org Subject: Re: Asking the musical question... Message-ID: <199910142004.OAA54950@harmony.village.org> In-Reply-To: Your message of "Thu, 14 Oct 1999 21:00:29 BST." <Pine.BSF.4.10.9910142057000.306-100000@salmon.nlsystems.com> References: <Pine.BSF.4.10.9910142057000.306-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.10.9910142057000.306-100000@salmon.nlsystems.com> Doug Rabson writes: : Assuming the drivers have a way of recognising the device instance as one : of their own (e.g. by checking PnP IDs for isa), this is the best way to : do it. Right now pccardd makes this determination. It knows, from its config files, that a driver supports a given card. So I was going to have the probe routine be a strcmp between the driver's name and the named passed down from pccardd. That way the old-style pccard driver's probe routines will only match the right one, and the new style are free to do other things if so desired. : For 'unnamed' devices, the system presents the device to all : drivers in the parent's devclass and chooses the one which returns the : highest probe value. If the device is named (e.g. "sio") it will only be : presented to drivers whose name matches. OK. Sounds like how I wanted to go, so I'll keep going down that path. This should make doing a sio driver fairly simple... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910142004.OAA54950>