Date: Wed, 19 Feb 2014 06:35:17 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262207 - head/sys/dev/etherswitch/arswitch Message-ID: <201402190635.s1J6ZHN3076772@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Wed Feb 19 06:35:17 2014 New Revision: 262207 URL: http://svnweb.freebsd.org/changeset/base/262207 Log: Add methods for the VLAN port set/get routines. The registers (and perhaps the flags) are different for the AR8327, so I'll stub those out until they're written. Tested: * DB120 - both on-chip AR9340 and AR8327 switches. 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 06:03:58 2014 (r262206) +++ head/sys/dev/etherswitch/arswitch/arswitchvar.h Wed Feb 19 06:35:17 2014 (r262207) @@ -76,6 +76,12 @@ struct arswitch_softc { /* Port functions */ void (* arswitch_port_init) (struct arswitch_softc *, int); + + /* VLAN functions */ + int (* arswitch_port_vlan_setup) (struct arswitch_softc *, + etherswitch_port_t *); + int (* arswitch_port_vlan_get) (struct arswitch_softc *, + etherswitch_port_t *); } hal; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402190635.s1J6ZHN3076772>