From owner-freebsd-arch@FreeBSD.ORG Wed Jan 11 01:18:49 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A429106566C for ; Wed, 11 Jan 2012 01:18:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 25D778FC14 for ; Wed, 11 Jan 2012 01:18:48 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so227541vbb.13 for ; Tue, 10 Jan 2012 17:18:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=h2J6rp3nkoK2PzDZ8wPV43mvGckrfs2ZqIL+xPekxGE=; b=fNPEGB3pJ+9sSnBF4oCOcN8rwdpOp5lXXTpe5aHp7DJRaJWb7IQ4E3N2PZB6n04e3q IsQzgmyn+Am/7J9SB8HX1FVpLtCZq+c5rqW85qDL+dLPT77in3pxo0CZEX0/fY3CTBpZ 3u6vGniTxmdOrBNPzE40oBchcf0t0OxWyUFUE= MIME-Version: 1.0 Received: by 10.52.173.80 with SMTP id bi16mr10394175vdc.115.1326244728426; Tue, 10 Jan 2012 17:18:48 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Tue, 10 Jan 2012 17:18:48 -0800 (PST) In-Reply-To: <23477898-8D85-498C-8E30-192810BD68A8@lassitu.de> References: <8D025847-4BE4-4B2C-87D7-97E72CC9D325@lassitu.de> <20120104215930.GM90831@alchemy.franken.de> <47ABA638-7E08-4350-A03C-3D4A23BF2D7E@lassitu.de> <1763C3FF-1EA0-4DC0-891D-63816EBF4A04@lassitu.de> <20120106182756.GA88161@alchemy.franken.de> <95372FB3-406F-46C2-8684-4FDB672D9FCF@lassitu.de> <20120106214741.GB88161@alchemy.franken.de> <20120108130039.GG88161@alchemy.franken.de> <23477898-8D85-498C-8E30-192810BD68A8@lassitu.de> Date: Tue, 10 Jan 2012 17:18:48 -0800 X-Google-Sender-Auth: Y6qkW-XRSBBsNLiTNcNz9n1buyM Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arch@freebsd.org, Marius Strobl Subject: Re: Extending sys/dev/mii X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 01:18:49 -0000 On 8 January 2012 14:27, Stefan Bethke wrote: >> Okay, this is the kind of information I was looking for as coupling >> devices with newbus that have no close relation in the hierarchy is >> tedious. However, when not using newbus the question arises how do >> you intend to associate the device_t of say arge0 with the mdiobus0 >> hanging off somewhere beneath iicbus0? > > In my experimental tree, I've hacked together a small function that parse= s a string for a devclass name and unit number, and looks that up. > > I'm also trying a number of other approaches; mainly I'm trying to unders= tand how newbus works, and what kind of driver I want at the various points= , ideally auto-attached, or configured by hints, instead of by custom code.= =A0I think I'll need another couple of days to get a good enough understan= ding of drivers, devclasses and their tree, and the device tree. Hi guys, Has there been any further traction on this? I'd like to try and figure out a way to get all this switchphy stuff into -HEAD as soon as possible. Thanks, Adrian