svn commit: r262204 - head/sys/dev/etherswitch/arswitch
Adrian Chadd
adrian at FreeBSD.org
Wed Feb 19 06:01:41 UTC 2014
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;
};
More information about the svn-src-all
mailing list