aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000/e1000.h')
-rw-r--r--drivers/net/e1000/e1000.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h
index e9a416f40162..1a4f89c66a26 100644
--- a/drivers/net/e1000/e1000.h
+++ b/drivers/net/e1000/e1000.h
@@ -111,6 +111,9 @@ do { \
111#define E1000_MIN_RXD 80 111#define E1000_MIN_RXD 80
112#define E1000_MAX_82544_RXD 4096 112#define E1000_MAX_82544_RXD 4096
113 113
114#define E1000_MIN_ITR_USECS 10 /* 100000 irq/sec */
115#define E1000_MAX_ITR_USECS 10000 /* 100 irq/sec */
116
114/* this is the size past which hardware will drop packets when setting LPE=0 */ 117/* this is the size past which hardware will drop packets when setting LPE=0 */
115#define MAXIMUM_ETHERNET_VLAN_SIZE 1522 118#define MAXIMUM_ETHERNET_VLAN_SIZE 1522
116 119
@@ -137,7 +140,7 @@ do { \
137#define E1000_FC_HIGH_DIFF 0x1638 /* High: 5688 bytes below Rx FIFO size */ 140#define E1000_FC_HIGH_DIFF 0x1638 /* High: 5688 bytes below Rx FIFO size */
138#define E1000_FC_LOW_DIFF 0x1640 /* Low: 5696 bytes below Rx FIFO size */ 141#define E1000_FC_LOW_DIFF 0x1640 /* Low: 5696 bytes below Rx FIFO size */
139 142
140#define E1000_FC_PAUSE_TIME 0x0680 /* 858 usec */ 143#define E1000_FC_PAUSE_TIME 0xFFFF /* pause for the max or until send xon */
141 144
142/* How many Tx Descriptors do we need to call netif_wake_queue ? */ 145/* How many Tx Descriptors do we need to call netif_wake_queue ? */
143#define E1000_TX_QUEUE_WAKE 16 146#define E1000_TX_QUEUE_WAKE 16
@@ -161,6 +164,7 @@ do { \
161struct e1000_buffer { 164struct e1000_buffer {
162 struct sk_buff *skb; 165 struct sk_buff *skb;
163 dma_addr_t dma; 166 dma_addr_t dma;
167 struct page *page;
164 unsigned long time_stamp; 168 unsigned long time_stamp;
165 u16 length; 169 u16 length;
166 u16 next_to_watch; 170 u16 next_to_watch;
@@ -202,6 +206,7 @@ struct e1000_rx_ring {
202 unsigned int next_to_clean; 206 unsigned int next_to_clean;
203 /* array of buffer information structs */ 207 /* array of buffer information structs */
204 struct e1000_buffer *buffer_info; 208 struct e1000_buffer *buffer_info;
209 struct sk_buff *rx_skb_top;
205 210
206 /* cpu for rx queue */ 211 /* cpu for rx queue */
207 int cpu; 212 int cpu;