From owner-freebsd-hardware@FreeBSD.ORG Tue Mar 2 21:39:39 2010 Return-Path: Delivered-To: hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA4E1106566B for ; Tue, 2 Mar 2010 21:39:39 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id A97A88FC14 for ; Tue, 2 Mar 2010 21:39:38 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o22LHEb5076068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 2 Mar 2010 22:17:15 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o22LHCNU066614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Mar 2010 22:17:12 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o22LHBV7078867; Tue, 2 Mar 2010 22:17:11 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o22LH3pq078866; Tue, 2 Mar 2010 22:17:03 +0100 (CET) (envelope-from ticso) Date: Tue, 2 Mar 2010 22:17:03 +0100 From: Bernd Walter To: Alexandr Rybalko Message-ID: <20100302211703.GP58319@cicely7.cicely.de> References: <20100302180242.824f4726.ray@dlink.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100302180242.824f4726.ray@dlink.ua> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.000, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: hardware@freebsd.org Subject: Re: Pseudo PHY and fake PHY ID X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 21:39:39 -0000 On Tue, Mar 02, 2010 at 06:02:42PM +0200, Alexandr Rybalko wrote: > Hi, > > I making correct driver for SoC switch which is Pseudo PHY on bfe interface. > Someone can point me correct way to fake PHY ID for make it possible auto attach bfeswitch pseudo PHY driver? Has the switch an MDIO connection? I wrote the rtlswitch pseudo PHY driver for the RTL8305SC , which AFAIK still is the only one. The switch identifies without problem via identifiers, but it occupies multiple addresses and to avoid other drivers to claim the other IDs the rtlswitch driver claims all, but only attaches one time. ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 miibus0: on ate0 rlswitch0: PHY 0 on miibus0 rlswitch0: 100baseTX-FDX rlswitch1: PHY 1 on miibus0 rlswitch1: ignoring this PHY, non-zero instance device_attach: rlswitch1 attach returned 6 rlswitch2: PHY 2 on miibus0 rlswitch2: ignoring this PHY, non-zero instance device_attach: rlswitch2 attach returned 6 rlswitch3: PHY 3 on miibus0 rlswitch3: ignoring this PHY, non-zero instance device_attach: rlswitch3 attach returned 6 rlswitch4: PHY 4 on miibus0 rlswitch4: ignoring this PHY, non-zero instance device_attach: rlswitch4 attach returned 6 rlswitch5: PHY 5 on miibus0 rlswitch5: ignoring this PHY, non-zero instance device_attach: rlswitch5 attach returned 6 Beside from loocking strange it works fine this way. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.