Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jun 2004 17:20:04 +0200
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h
Message-ID:  <xzp7juo8y8r.fsf@dwp.des.no>
In-Reply-To: <20040603.091250.82990500.imp@bsdimp.com> (M. Warner Losh's message of "Thu, 03 Jun 2004 09:12:50 -0600 (MDT)")
References:  <200406022252.i52MqJFp094240@repoman.freebsd.org> <40BE5CE4.60304@freebsd.org> <xzpy8n5knp1.fsf@dwp.des.no> <20040603.091250.82990500.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" <imp@bsdimp.com> writes:
> des@des.no (Dag-Erling Sm=F8rgrav) writes:
> : Scott Long <scottl@freebsd.org> writes:
> : This should be fairly easy to do.  I'll try to come up with some
> : patches.
> How about an API?  How does the driver deal with the global/instance
> variable split?  If I set dev.fxp.gerbil to 1 and dev.fxp.1.gerbil to
> 23?  Is that order dependent?

that's up to the driver author to decide.

so far, what I think I'll do is give each devclass its own context and
node, and place each device's node below the devclass's node, so you
get

dev.fxp.foo
dev.fxp.fxp0.%desc
dev.fxp.fxp0.%driver
dev.fxp.fxp0.%location
dev.fxp.fxp0.bar

you can't have the driver be the parent, because some devices have no
driver (but they all have a class), and I want to use dev.fxp.fxp0
instead of dev.fxp.0 on the off chance that there might be multiple
devices in a class with the same unit number but different names.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp7juo8y8r.fsf>