summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge/if_mxge_var.h
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2007-08-22 13:22:12 +0000
committergallatin <gallatin@FreeBSD.org>2007-08-22 13:22:12 +0000
commit51a89ea67c6451e9f0542bd7778ddea57d128092 (patch)
tree47159cfe4a555d2909829d7014a63caf7e8decf4 /sys/dev/mxge/if_mxge_var.h
parent8e094e5065828429b3637d88bd24d896ae848454 (diff)
downloadFreeBSD-src-51a89ea67c6451e9f0542bd7778ddea57d128092.zip
FreeBSD-src-51a89ea67c6451e9f0542bd7778ddea57d128092.tar.gz
- Fix a bug which could cause a panic when enabling LRO
on an down mxge interface - Fix a bug where mxge reported the link state as active when it wasn't (after ifconfig down). - Prevent spurious watchdog resets when link partner is not consuming - Add support for CX4 and popular XFP media detection - Update the firmware and associated header files to 1.4.25 Approved by: re (kensmith)
Diffstat (limited to 'sys/dev/mxge/if_mxge_var.h')
-rw-r--r--sys/dev/mxge/if_mxge_var.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge_var.h b/sys/dev/mxge/if_mxge_var.h
index 9362985..7a66ae2 100644
--- a/sys/dev/mxge/if_mxge_var.h
+++ b/sys/dev/mxge/if_mxge_var.h
@@ -105,6 +105,7 @@ typedef struct
int wake; /* #times irq re-enabled xmit */
int watchdog_req; /* cache of req */
int watchdog_done; /* cache of done */
+ int watchdog_rx_pause; /* cache of pause rq recvd */
} mxge_tx_buf_t;
struct lro_entry;
@@ -190,6 +191,8 @@ typedef struct {
int link_width;
int max_mtu;
int tx_defrag;
+ int media_flags;
+ int need_media_probe;
mxge_dma_t dmabench_dma;
struct callout co_hdl;
char *mac_addr_string;
@@ -204,11 +207,18 @@ typedef struct {
#define MXGE_PCI_VENDOR_MYRICOM 0x14c1
#define MXGE_PCI_DEVICE_Z8E 0x0008
+#define MXGE_XFP_COMPLIANCE_BYTE 131
#define MXGE_HIGHPART_TO_U32(X) \
(sizeof (X) == 8) ? ((uint32_t)((uint64_t)(X) >> 32)) : (0)
#define MXGE_LOWPART_TO_U32(X) ((uint32_t)(X))
+struct mxge_media_type
+{
+ int flag;
+ uint8_t bitmask;
+ char *name;
+};
/* implement our own memory barriers, since bus_space_barrier
cannot handle write-combining regions */
OpenPOWER on IntegriCloud