Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2000 17:45:54 +0100 (BST)
From:      Nick Hibma <n_hibma@calcaphon.com>
To:        Warner Losh <imp@village.org>
Cc:        Poul-Henning Kamp <phk@critter.freebsd.dk>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern subr_bus.c
Message-ID:  <Pine.BSF.4.20.0007031737460.21297-100000@localhost>
In-Reply-To: <200007031604.KAA23352@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> : The "1-newbus-instance : 1-device-instance" assumption is a grave
> : mistake, and we shall not lock our selves down in a dogmatic
> : postulate about how the world is according to our perception, rather
> : we need to be flexible enough to handle all the weird shit (TM)
> : out there.
> 
> I agree with this.  It is making things difficult to migrate old
> device drivers that we have here that don't do that, or have extra
> device instances (meta devices) that force all device instances to
> have a mapping function to get back to the newbus instance.

If someone can come up with a proper solution for the N:1 and 1:N
relation problem, I guess that that would help the use of newbus in CAM
as well (eventhough the pathing in CAM would not be solved yet).

Rewriting the softc is just a silly hack however to which a proper
solution exists.

Nick

P.S.: USB devices have similar problems with interfaces being used by
different devices (1:N). The solution is to create an intermediate
device that claims all the interfaces on the function and to which the
other ones attach and request interfaces from.

I bet that the (N:1) case will show up or has shown up at some stage.
USB developers are silly enough to dream up such a thing.

--
n_hibma@webweaving.org
n_hibma@freebsd.org                                          USB project
http://www.etla.net/~n_hibma/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0007031737460.21297-100000>