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.
This commit is contained in:
Adrian Chadd
2014-02-19 06:35:17 +00:00
parent ddbc44200a
commit 2bddba6a60
@@ -76,6 +76,12 @@ struct arswitch_softc {
/* Port functions */ /* Port functions */
void (* arswitch_port_init) (struct arswitch_softc *, int); 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; } hal;
}; };