summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge/if_mxge_var.h
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2007-01-31 19:53:36 +0000
committergallatin <gallatin@FreeBSD.org>2007-01-31 19:53:36 +0000
commitdd7403e0de050efaf4124919bd6a3875fdcf19ee (patch)
treec20b923e8fef79013beec96769f479fdd335d43f /sys/dev/mxge/if_mxge_var.h
parent11d416de5c231b3b270290e5cc257554053a2826 (diff)
downloadFreeBSD-src-dd7403e0de050efaf4124919bd6a3875fdcf19ee.zip
FreeBSD-src-dd7403e0de050efaf4124919bd6a3875fdcf19ee.tar.gz
- Add 99% of a callout based watchdog. The remaining 1% is waiting
for pci_cfg_restore() to be exported. It was tested using a hackily accessed pci_cfg_restore(). - Add ifmedia_removeall() to mxge_detach() in order to stop leaking an ifaddr - Fix a small acounting bug introduced by the locking code shuffle which could cause spurious watchdog resets now that we have a watchdog. Sponsored by: Myricom
Diffstat (limited to 'sys/dev/mxge/if_mxge_var.h')
-rw-r--r--sys/dev/mxge/if_mxge_var.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h
index cf3c0d4..9b5d3bc 100644
--- a/sys/dev/mxge/if_mxge_var.h
+++ b/sys/dev/mxge/if_mxge_var.h
@@ -108,7 +108,8 @@ typedef struct
int boundary; /* boundary transmits cannot cross*/
int stall; /* #times hw queue exhausted */
int wake; /* #times irq re-enabled xmit */
-
+ int watchdog_req; /* cache of req */
+ int watchdog_done; /* cache of done */
} mxge_tx_buf_t;
typedef struct {
@@ -160,6 +161,7 @@ typedef struct {
int fw_multicast_support;
int link_width;
mxge_dma_t dmabench_dma;
+ struct callout co_hdl;
char *mac_addr_string;
char product_code_string[64];
char serial_number_string[64];
OpenPOWER on IntegriCloud