summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce/if_bcereg.h
diff options
context:
space:
mode:
authordavidch <davidch@FreeBSD.org>2008-06-10 02:19:11 +0000
committerdavidch <davidch@FreeBSD.org>2008-06-10 02:19:11 +0000
commit1a7f0803e4fbcc7296bbe6ec98d87438ca50abc4 (patch)
tree8a5784c80bfe37335ae42c29a2075e203b7a48cb /sys/dev/bce/if_bcereg.h
parent407d56cbcfa6ec0869c28bf403f2674560cc3321 (diff)
downloadFreeBSD-src-1a7f0803e4fbcc7296bbe6ec98d87438ca50abc4.zip
FreeBSD-src-1a7f0803e4fbcc7296bbe6ec98d87438ca50abc4.tar.gz
- Fixed kern/123696 by increasing firmware timeout value from 100 to 1000.
- Fixed a problem on i386 architecture when using split header/jumbo frame firmware caused by hardware alignment requirements. - Added #define BCE_USE_SPLIT_HEADER to allow the feature to be enabled/ disabled. Enabled by default. PR: kern/123696 MFC after: 2 weeks
Diffstat (limited to 'sys/dev/bce/if_bcereg.h')
-rw-r--r--sys/dev/bce/if_bcereg.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/bce/if_bcereg.h b/sys/dev/bce/if_bcereg.h
index e25386f..515d36e 100644
--- a/sys/dev/bce/if_bcereg.h
+++ b/sys/dev/bce/if_bcereg.h
@@ -131,7 +131,9 @@
/****************************************************************************/
/* Debugging macros and definitions. */
-/****************************************************************************/
+/****************************************************************************/
+/* #define BCE_DEBUG 1 */
+
#define BCE_CP_LOAD 0x00000001
#define BCE_CP_SEND 0x00000002
#define BCE_CP_RECV 0x00000004
@@ -466,7 +468,7 @@ struct flash_spec {
* running and there won't be any firmware-driver synchronization during a
* driver reset.
*/
-#define FW_ACK_TIME_OUT_MS 100
+#define FW_ACK_TIME_OUT_MS 1000
#define BCE_DRV_RESET_SIGNATURE 0x00000000
@@ -4924,8 +4926,7 @@ struct fw_info {
#define BCE_MAX_JUMBO_ETHER_MTU 9018
#define BCE_MAX_JUMBO_ETHER_MTU_VLAN 9022
-// #define BCE_MAX_MTU ETHER_MAX_LEN_JUMBO + ETHER_VLAN_ENCAP_LEN /* 9022 */
-
+
/****************************************************************************/
/* BCE Device State Data Structure */
/****************************************************************************/
@@ -5047,7 +5048,9 @@ struct bce_softc
/* Frame size and mbuf allocation size for RX frames. */
u32 max_frame_size;
- int rx_bd_mbuf_alloc_size;
+ int rx_bd_mbuf_alloc_size;
+ int rx_bd_mbuf_data_len;
+ int rx_bd_mbuf_align_pad;
int pg_bd_mbuf_alloc_size;
/* Receive mode settings (i.e promiscuous, multicast, etc.). */
OpenPOWER on IntegriCloud