Date: Sun, 12 Feb 2012 19:51:33 +0200 From: Aleksandr Rybalko <ray@ddteam.net> To: Adrian Chadd <adrian@freebsd.org> Cc: Juli Mallett <jmallett@freebsd.org>, Aleksandr Rybalko <ray@freebsd.org>, FreeBSD-arch <freebsd-arch@freebsd.org>, Stefan Bethke <stb@lassitu.de>, Marius Strobl <marius@alchemy.franken.de> Subject: Re: Extending sys/dev/mii Message-ID: <20120212195133.a2864582.ray@ddteam.net> In-Reply-To: <CAJ-Vmo=CLMcO%2BR21TVKC3zVGS4rHO2Ca31D9ts2kNwpnhAtOvQ@mail.gmail.com> References: <95372FB3-406F-46C2-8684-4FDB672D9FCF@lassitu.de> <20120106214741.GB88161@alchemy.franken.de> <F60B2B70-049F-4497-BBA8-3C421088C1EA@lassitu.de> <20120108130039.GG88161@alchemy.franken.de> <23477898-8D85-498C-8E30-192810BD68A8@lassitu.de> <20120111193738.GB44286@alchemy.franken.de> <66DDA0A2-F878-43FF-8824-54868F493B18@lassitu.de> <20120125221753.GA17821@alchemy.franken.de> <AF2CF7A4-27B8-4181-96F5-7998B126CD1C@lassitu.de> <CAJ-VmomcgC6V-sY7jN%2Bh6T7uPfVesPBV%2BKPu2TVD4YDKrdk4LQ@mail.gmail.com> <20120211111731.GE39861@alchemy.franken.de> <20120211144544.c91701d9.ray@ddteam.net> <CAJ-Vmo=CLMcO%2BR21TVKC3zVGS4rHO2Ca31D9ts2kNwpnhAtOvQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 11 Feb 2012 17:00:10 -0800 Adrian Chadd <adrian@freebsd.org> wrote: > Hi Ray, > > Would you please attach the latest diffs: > > * to if_arge, to make it "work"; > * to the mii API, if needed; > * anything new - ie, the switch API, switch PHYs, etc. > > I'd like to try and finally bring some sanity to the hardcoded PHY > mask handling in if_arge (and make it actually work for AR71xx and > AR724x - where AR71xx has one shared MDIO bus between both MACs, but > AR724x has two independent MDIO busses..) > > > > Adrian Hi Adrian, yes, of course, here it is: if_arge patch + white space cleanup: http://my.ddteam.net/files/2012-02-12_sys_mips_atheros.patch Switch Framework itself: http://my.ddteam.net/files/2012-02-12_switch_framework.patch sys/conf/files, as separate item, because my have a bit more difference: http://my.ddteam.net/files/2012-02-12_switch_framework_sys_conf_files.patch Just reminder, to enable it: 1. put "device switch" and driver into kernel config file, "device switch_ar8x16" for Atheros switch. 2. add hints (AR7240 for example): #------------------------------------------------ # No probe at all hint.miibus.0.phymask="0x00000000" hint.miibus.1.phymask="0x00000000" #hint.floatphy.0.at="miibus0" hint.floatphy.0.phyno=0 hint.floatphy.0.master="switch" # Find switch0 hint.floatphy.0.master_unit=0 hint.floatphy.0.master_phys=0x00000010 # Sense PHY4 hint.floatphy.0.flags=0x00000000 hint.floatphy.0.speed=100 # Switch attached to MDIO bus on arge0 hint.switch.0.at="miibus0" hint.switch.0.phyno=1 hint.ar8x16_switch.0.mii_mode=0x012603e2 hint.floatphy.1.at="miibus1" hint.floatphy.1.phyno=0 hint.floatphy.1.master="switch" # Find switch0 hint.floatphy.1.master_unit=0 hint.floatphy.1.master_phys=0x0000000f # Link Sensing PHY0-PHY3 hint.floatphy.1.flags=0x00000004 # "Link on any PHYs" | # "Static link speed" hint.floatphy.1.speed=1000 #------------------------------------------------ -- Aleksandr Rybalko <ray@ddteam.net>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120212195133.a2864582.ray>