summaryrefslogtreecommitdiffstats
path: root/sys/mips/adm5120/if_admswvar.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-11-24 18:34:47 +0000
committerjhb <jhb@FreeBSD.org>2009-11-24 18:34:47 +0000
commitbb91b31a51b4a785508c09cb5b0a6ab634f47a7b (patch)
treeb2d97b1f582c47482e45e201249e684b9a522a17 /sys/mips/adm5120/if_admswvar.h
parenta25c3915deae5a8049a07aa2ddd20c29b98b6a7e (diff)
downloadFreeBSD-src-bb91b31a51b4a785508c09cb5b0a6ab634f47a7b.zip
FreeBSD-src-bb91b31a51b4a785508c09cb5b0a6ab634f47a7b.tar.gz
Use a single private timer to drive the transmit watchdog rather than using
if_watchdog and if_timer from the first port. Reviewed by: gonzo
Diffstat (limited to 'sys/mips/adm5120/if_admswvar.h')
-rw-r--r--sys/mips/adm5120/if_admswvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/mips/adm5120/if_admswvar.h b/sys/mips/adm5120/if_admswvar.h
index a94bb89..1304fac 100644
--- a/sys/mips/adm5120/if_admswvar.h
+++ b/sys/mips/adm5120/if_admswvar.h
@@ -132,7 +132,9 @@ struct admsw_softc {
bus_dma_tag_t sc_bufs_dmat; /* bus DMA tag for buffers */
struct ifmedia sc_ifmedia[SW_DEVS];
int ndevs; /* number of IFF_RUNNING interfaces */
- struct ifnet *sc_ifnet[SW_DEVS];
+ struct ifnet *sc_ifnet[SW_DEVS];
+ struct callout sc_watchdog;
+ int sc_timer;
/* Ethernet common data */
void *sc_ih; /* interrupt cookie */
struct resource *irq_res;
OpenPOWER on IntegriCloud