patch-2.4.27 linux-2.4.27/drivers/net/e1000/e1000.h
Next file: linux-2.4.27/drivers/net/e1000/e1000_ethtool.c
Previous file: linux-2.4.27/drivers/net/e100/e100_ucode.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
2004-08-07 16:26:05.091364734 -0700
- Orig file:
linux-2.4.26/drivers/net/e1000/e1000.h
- Orig date:
2004-04-14 06:05:30.000000000 -0700
diff -urN linux-2.4.26/drivers/net/e1000/e1000.h linux-2.4.27/drivers/net/e1000/e1000.h
@@ -70,6 +70,7 @@
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/if_vlan.h>
+#include <linux/moduleparam.h>
#define BAR_0 0
#define BAR_1 1
@@ -90,6 +91,12 @@
#define E1000_ERR(args...) printk(KERN_ERR "e1000: " args)
+#define PFX "e1000: "
+#define DPRINTK(nlevel, klevel, fmt, args...) \
+ (void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \
+ printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \
+ __FUNCTION__ , ## args))
+
#define E1000_MAX_INTR 10
/* How many descriptors for TX and RX ? */
@@ -113,7 +120,7 @@
#define E1000_SMARTSPEED_MAX 15
/* Packet Buffer allocations */
-#define E1000_TX_FIFO_SIZE_SHIFT 0xA
+#define E1000_PBA_BYTES_SHIFT 0xA
#define E1000_TX_HEAD_ADDR_SHIFT 7
#define E1000_PBA_TX_MASK 0xFFFF0000
@@ -190,6 +197,7 @@
uint32_t part_num;
uint32_t wol;
uint32_t smartspeed;
+ uint32_t en_mng_pt;
uint16_t link_speed;
uint16_t link_duplex;
spinlock_t stats_lock;
@@ -246,5 +254,6 @@
uint32_t pci_state[16];
+ int msg_enable;
};
#endif /* _E1000_H_ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)