Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2003 02:12:44 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        ticso@cicely.de
Subject:   Re: How to get a device_t
Message-ID:  <20030807001244.GF35859@cicely12.cicely.de>
In-Reply-To: <20030806.175257.106532450.imp@bsdimp.com>
References:  <20030806104001.GD32228@cicely12.cicely.de> <40470.1060166743@critter.freebsd.dk> <20030806110013.GE32228@cicely12.cicely.de> <20030806.175257.106532450.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 06, 2003 at 05:52:57PM -0600, M. Warner Losh wrote:
> In message: <20030806110013.GE32228@cicely12.cicely.de>
>             Bernd Walter <ticso@cicely12.cicely.de> writes:
> : Back to the original question:
> : How do I get the device_t from nexus?
> 
> You don't.  You are assigned one.
> 
> : Is there a get_nexus() function somewhere?
> 
> No.  You don't need it.
> 
> Chances are you could create an identify routine that would attach the
> bus to.  The identify routine should be all you need.

The point is that this special CPU can only be identified by its
host bridge.
That's the place were the MMCR bus has to be attached to nexus, so
we need the handle within this function.

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso@bwct.de                                  info@bwct.de



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