if_em_diff.txt

sepherosa, 01/18/2007 01:42 AM

Download (734 Bytes)

 
1
--- if_em.c.orig	2007-01-18 09:32:50.478362243 +0800
2
+++ if_em.c	2007-01-18 09:35:30.175765733 +0800
3
@@ -132,6 +132,8 @@
4
 #include <dev/netif/em/if_em_hw.h>
5
 #include <dev/netif/em/if_em.h>
6
 
7
+#define EM_X60_WORKAROUND
8
+
9
 /*********************************************************************
10
  *  Set this to one to display debug statistics
11
  *********************************************************************/
12
@@ -2884,6 +2886,11 @@ em_initialize_receive_unit(struct adapte
13
 		E1000_WRITE_REG(&adapter->hw, RXCSUM, reg_rxcsum);
14
 	}
15
 
16
+#ifdef EM_X60_WORKAROUND
17
+	if (adapter->hw.mac_type == em_82573)
18
+		E1000_WRITE_REG(&adapter->hw, RDTR, 32);
19
+#endif
20
+
21
 	/* Enable Receives */
22
 	E1000_WRITE_REG(&adapter->hw, RCTL, reg_rctl);
23