summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-02-19 06:35:17 +0000
committeradrian <adrian@FreeBSD.org>2014-02-19 06:35:17 +0000
commitd45e8830ab8a2f2900aff4dc4e0aafff06e80681 (patch)
treee40de825a64ad8f910f3aa0e07e7d1efc82da292
parent472a51527beb81827da348be4e58ad629179fdec (diff)
downloadFreeBSD-src-d45e8830ab8a2f2900aff4dc4e0aafff06e80681.zip
FreeBSD-src-d45e8830ab8a2f2900aff4dc4e0aafff06e80681.tar.gz
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.
-rw-r--r--sys/dev/etherswitch/arswitch/arswitchvar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/etherswitch/arswitch/arswitchvar.h b/sys/dev/etherswitch/arswitch/arswitchvar.h
index 060a52c..f79185b 100644
--- a/sys/dev/etherswitch/arswitch/arswitchvar.h
+++ b/sys/dev/etherswitch/arswitch/arswitchvar.h
@@ -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;
};
OpenPOWER on IntegriCloud