5 # Needed for ifreq/ifmediareq
6 #include <sys/socket.h>
9 #include <dev/etherswitch/etherswitch.h>
11 INTERFACE etherswitch;
14 # Default implementation
18 null_etherswitch_lock(device_t dev)
23 null_etherswitch_unlock(device_t dev)
28 null_etherswitch_getconf(device_t dev, etherswitch_conf_t *conf)
34 null_etherswitch_setconf(device_t dev, etherswitch_conf_t *conf)
43 METHOD etherswitch_info_t* getinfo {
48 # Lock access to switch registers
52 } DEFAULT null_etherswitch_lock;
55 # Unlock access to switch registers
59 } DEFAULT null_etherswitch_unlock;
62 # Read switch register
70 # Write switch register
81 METHOD int readphyreg {
90 METHOD int writephyreg {
98 # Get port configuration
102 etherswitch_port_t *vg;
106 # Set port configuration
110 etherswitch_port_t *vg;
114 # Get VLAN group configuration
116 METHOD int getvgroup {
118 etherswitch_vlangroup_t *vg;
122 # Set VLAN group configuration
124 METHOD int setvgroup {
126 etherswitch_vlangroup_t *vg;
130 # Get the Switch configuration
134 etherswitch_conf_t *conf;
135 } DEFAULT null_etherswitch_getconf;
138 # Set the Switch configuration
142 etherswitch_conf_t *conf;
143 } DEFAULT null_etherswitch_setconf;