From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 6 17:13:08 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 803A837B405 for ; Wed, 6 Aug 2003 17:13:08 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A84543F3F for ; Wed, 6 Aug 2003 17:13:07 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h770CmaK001818 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 7 Aug 2003 02:12:54 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h770CkAx047579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Aug 2003 02:12:46 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h770CjNS037995; Thu, 7 Aug 2003 02:12:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h770CjJI037994; Thu, 7 Aug 2003 02:12:45 +0200 (CEST) Date: Thu, 7 Aug 2003 02:12:44 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20030807001244.GF35859@cicely12.cicely.de> References: <20030806104001.GD32228@cicely12.cicely.de> <40470.1060166743@critter.freebsd.dk> <20030806110013.GE32228@cicely12.cicely.de> <20030806.175257.106532450.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030806.175257.106532450.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: ticso@cicely12.cicely.de cc: freebsd-hackers@freebsd.org cc: phk@phk.freebsd.dk cc: ticso@cicely.de Subject: Re: How to get a device_t X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 00:13:08 -0000 On Wed, Aug 06, 2003 at 05:52:57PM -0600, M. Warner Losh wrote: > In message: <20030806110013.GE32228@cicely12.cicely.de> > Bernd Walter 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