From owner-svn-src-all@FreeBSD.ORG Wed Feb 19 06:01:41 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 3A6A1B31; Wed, 19 Feb 2014 06:01:41 +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 25B2B1C60; Wed, 19 Feb 2014 06:01:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1J61fJD063763; Wed, 19 Feb 2014 06:01:41 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1J61fjF063762; Wed, 19 Feb 2014 06:01:41 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201402190601.s1J61fjF063762@svn.freebsd.org> From: Adrian Chadd Date: Wed, 19 Feb 2014 06:01:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262204 - 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 06:01:41 -0000 Author: adrian Date: Wed Feb 19 06:01:40 2014 New Revision: 262204 URL: http://svnweb.freebsd.org/changeset/base/262204 Log: Add a new method to set up the individual port in question. The AR8327 requires some different setup code. Modified: head/sys/dev/etherswitch/arswitch/arswitchvar.h Modified: head/sys/dev/etherswitch/arswitch/arswitchvar.h ============================================================================== --- head/sys/dev/etherswitch/arswitch/arswitchvar.h Wed Feb 19 05:35:41 2014 (r262203) +++ head/sys/dev/etherswitch/arswitch/arswitchvar.h Wed Feb 19 06:01:40 2014 (r262204) @@ -70,8 +70,12 @@ struct arswitch_softc { uint32_t vlan_mode; struct { + /* Global setup */ int (* arswitch_hw_setup) (struct arswitch_softc *); int (* arswitch_hw_global_setup) (struct arswitch_softc *); + + /* Port functions */ + void (* arswitch_port_init) (struct arswitch_softc *, int); } hal; };