Date: Tue, 2 Mar 2010 22:17:03 +0100 From: Bernd Walter <ticso@cicely7.cicely.de> To: Alexandr Rybalko <ray@dlink.ua> Cc: hardware@freebsd.org Subject: Re: Pseudo PHY and fake PHY ID Message-ID: <20100302211703.GP58319@cicely7.cicely.de> In-Reply-To: <20100302180242.824f4726.ray@dlink.ua> References: <20100302180242.824f4726.ray@dlink.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <EMAC> mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 miibus0: <MII bus> on ate0 rlswitch0: <RTL8305SC 10/100 802.1q switch> PHY 0 on miibus0 rlswitch0: 100baseTX-FDX rlswitch1: <RTL8305SC 10/100 802.1q switch> PHY 1 on miibus0 rlswitch1: ignoring this PHY, non-zero instance device_attach: rlswitch1 attach returned 6 rlswitch2: <RTL8305SC 10/100 802.1q switch> PHY 2 on miibus0 rlswitch2: ignoring this PHY, non-zero instance device_attach: rlswitch2 attach returned 6 rlswitch3: <RTL8305SC 10/100 802.1q switch> PHY 3 on miibus0 rlswitch3: ignoring this PHY, non-zero instance device_attach: rlswitch3 attach returned 6 rlswitch4: <RTL8305SC 10/100 802.1q switch> PHY 4 on miibus0 rlswitch4: ignoring this PHY, non-zero instance device_attach: rlswitch4 attach returned 6 rlswitch5: <RTL8305SC 10/100 802.1q switch> 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 <bernd@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100302211703.GP58319>