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;
 };
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to