netdev:bfin_mac: reclaim and free tx skb as soon as possible after transfer
[pandora-kernel.git] / drivers / net / bfin_mac.h
index 87c454f..04e4050 100644 (file)
 #include <linux/net_tstamp.h>
 #include <linux/clocksource.h>
 #include <linux/timecompare.h>
+#include <linux/timer.h>
 
 #define BFIN_MAC_CSUM_OFFLOAD
 
+#define TX_RECLAIM_JIFFIES (HZ / 5)
+
 struct dma_descriptor {
        struct dma_descriptor *next_dma_desc;
        unsigned long start_addr;
@@ -66,6 +69,11 @@ struct bfin_mac_local {
        unsigned char Mac[6];   /* MAC address of the board */
        spinlock_t lock;
 
+       int wol;                /* Wake On Lan */
+       int irq_wake_requested;
+       struct timer_list tx_reclaim_timer;
+       struct net_device *ndev;
+
        /* MII and PHY stuffs */
        int old_link;          /* used by bf537_adjust_link */
        int old_speed;