From owner-svn-src-all@FreeBSD.ORG Wed Feb 19 05:09:48 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C741DA1; Wed, 19 Feb 2014 05:09:48 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 480F81886; Wed, 19 Feb 2014 05:09:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1J59mXv041013; Wed, 19 Feb 2014 05:09:48 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1J59ls8041011; Wed, 19 Feb 2014 05:09:47 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201402190509.s1J59ls8041011@svn.freebsd.org> From: Adrian Chadd Date: Wed, 19 Feb 2014 05:09:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262202 - head/sys/dev/etherswitch/arswitch X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 05:09:48 -0000 Author: adrian Date: Wed Feb 19 05:09:47 2014 New Revision: 262202 URL: http://svnweb.freebsd.org/changeset/base/262202 Log: Add in the AR8327 probe/attach code and switch type. It detects fine, but (as expected) it won't attach just yet, let alone pass traffic. Tested: * DB120, AR8327 switch Modified: head/sys/dev/etherswitch/arswitch/arswitch.c head/sys/dev/etherswitch/arswitch/arswitchvar.h Modified: head/sys/dev/etherswitch/arswitch/arswitch.c ============================================================================== --- head/sys/dev/etherswitch/arswitch/arswitch.c Wed Feb 19 04:30:53 2014 (r262201) +++ head/sys/dev/etherswitch/arswitch/arswitch.c Wed Feb 19 05:09:47 2014 (r262202) @@ -129,6 +129,11 @@ arswitch_probe(device_t dev) chipname = "AR8316"; sc->sc_switchtype = AR8X16_SWITCH_AR8316; break; + case 0x1202: + chipname = "AR8327"; + sc->sc_switchtype = AR8X16_SWITCH_AR8327; + sc->mii_lo_first = 1; + break; default: chipname = NULL; } Modified: head/sys/dev/etherswitch/arswitch/arswitchvar.h ============================================================================== --- head/sys/dev/etherswitch/arswitch/arswitchvar.h Wed Feb 19 04:30:53 2014 (r262201) +++ head/sys/dev/etherswitch/arswitch/arswitchvar.h Wed Feb 19 05:09:47 2014 (r262202) @@ -35,6 +35,8 @@ typedef enum { AR8X16_SWITCH_AR8226, AR8X16_SWITCH_AR8316, AR8X16_SWITCH_AR9340, + AR8X16_SWITCH_AR8327, + AR8X16_SWITCH_AR8337, } ar8x16_switch_type; /*