From owner-freebsd-net@FreeBSD.ORG Sat Dec 10 12:22:34 2011 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5F441065670 for ; Sat, 10 Dec 2011 12:22:34 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 866B98FC0C for ; Sat, 10 Dec 2011 12:22:34 +0000 (UTC) Received: from rnote.ddteam.net (5-21-133-95.pool.ukrtel.net [95.133.21.5]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 50B99C4935 for ; Sat, 10 Dec 2011 14:05:44 +0200 (EET) Date: Sat, 10 Dec 2011 14:05:40 +0200 From: Aleksandr Rybalko To: freebsd-net@FreeBSD.org Message-Id: <20111210140540.6301dfa9.ray@freebsd.org> Organization: FreeBSD.ORG X-Mailer: Sylpheed 3.1.0 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: "float PHYs", communication between indirect attached devices X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2011 12:22:34 -0000 Hi net@ subscribers, Simple explanation of problem: real situation, device with two NICs (arge0 and arge1) arge0 attached to PHY w/o direct access to it. arge1 attached to switch MII port (and have access to MDIO bus). switch have child MDIO bus for all Physical ports. One of this ports (or his PHY) must be controlled by arge0. I will do pseudo PHY driver that must communicate with real one on switch MDIO bus. Question: how to communicate, since newbus can't handle two parents: 1) sysctl 2) events 3) kenv 4) something better globals is not a solution, because it is possible that we will have some device with more than one "float PHYs" please, help me to find best way! Wait for your suggestions, comments, hints, etc. WBW -- Aleksandr Rybalko