From owner-cvs-src-old@FreeBSD.ORG Wed Oct 13 09:18:04 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFC101065693 for ; Wed, 13 Oct 2010 09:18:03 +0000 (UTC) (envelope-from jmallett@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B68038FC32 for ; Wed, 13 Oct 2010 09:18:03 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9D9I3Dw034515 for ; Wed, 13 Oct 2010 09:18:03 GMT (envelope-from jmallett@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9D9I37N034514 for cvs-src-old@freebsd.org; Wed, 13 Oct 2010 09:18:03 GMT (envelope-from jmallett@repoman.freebsd.org) Message-Id: <201010130918.o9D9I37N034514@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jmallett@repoman.freebsd.org using -f From: Juli Mallett Date: Wed, 13 Oct 2010 09:17:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/mips/cavium files.octeon1 src/sys/mips/cavium/octe cavium-ethernet.h ethernet-mdio.c ethernet-mv88e61xx.c mv88e61xxphy.c mv88e61xxphyreg.h octe.c src/sys/mips/conf OCTEON1 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2010 09:18:04 -0000 jmallett 2010-10-13 09:17:44 UTC FreeBSD src repository Modified files: sys/mips/cavium files.octeon1 sys/mips/cavium/octe cavium-ethernet.h ethernet-mdio.c ethernet-mv88e61xx.c octe.c sys/mips/conf OCTEON1 Added files: sys/mips/cavium/octe mv88e61xxphy.c mv88e61xxphyreg.h Log: SVN rev 213762 on 2010-10-13 09:17:44Z by jmallett o) Make it possible to attach a PHY directly to an octe device rather than using miibus, since for some devices that use multiple addresses on the bus, going through miibus may be unclear, and for devices that are not standard MII PHYs, miibus may throw a fit, necessitating complicated interfaces to fake the interface that it expects during probe/attach. o) Make the mv88e61xx SMI interface in octe attach a PHY directly and fix some mistakes in the code that resulted from trying too hard to present a nice interface to miibus. o) Add a PHY driver for the mv88e61xx. If attached (it is optional in kernel compiles so the default behavior of having a dumb switch is preserved) it will place the switch in a VLAN-tagging mode such that each physical port has a VLAN associated with it and interfaces for the VLANs can be created to address or bridge between them. XXX It would be nice for this to be part of a single module including the SMI interface, and for it to fit into a generic switch configuration framework and for it to use DSA rather than VLANs, but this is a start and gives some sense of the parameters of such frameworks that are not currently present in FreeBSD. In lieu of a switch configuration interface, per-port media status and VLAN settings are in a sysctl tree. XXX There may be some minor nits remaining in the handling of broadcast, multicast and unknown destination traffic. It would also be nice to go through and replace the few remaining magic numbers with macros at some point in the future. XXX This has only been tested with the MV88E6161, but it should work with minimal or no modification on related switches, so support for probing them was included. Thanks to Pat Saavedra of TELoIP and Rafal Jaworowski of Semihalf for their assistance in understanding the switch chipset. Revision Changes Path 1.8 +1 -0 src/sys/mips/cavium/files.octeon1 1.4 +1 -0 src/sys/mips/cavium/octe/cavium-ethernet.h 1.3 +1 -0 src/sys/mips/cavium/octe/ethernet-mdio.c 1.2 +18 -42 src/sys/mips/cavium/octe/ethernet-mv88e61xx.c 1.1 +630 -0 src/sys/mips/cavium/octe/mv88e61xxphy.c (new) 1.1 +149 -0 src/sys/mips/cavium/octe/mv88e61xxphyreg.h (new) 1.4 +11 -5 src/sys/mips/cavium/octe/octe.c 1.11 +4 -0 src/sys/mips/conf/OCTEON1