--- a/devices/8139too-2.6.29-ethercat.c Thu Sep 06 19:52:17 2012 +0200
+++ b/devices/8139too-2.6.29-ethercat.c Thu Sep 06 20:22:24 2012 +0200
@@ -654,7 +654,7 @@
struct mii_if_info mii;
unsigned int regs_len;
unsigned long fifo_copy_timeout;
-
+
ec_device_t *ecdev;
};
@@ -1066,7 +1066,7 @@
tp->mii.reg_num_mask = 0x1f;
/* dev is fully set up and ready to use now */
-
+
// offer device to EtherCAT master module
tp->ecdev = ecdev_offer(dev, ec_poll, THIS_MODULE);
@@ -1811,24 +1811,24 @@
wmb();
RTL_W32_F (TxStatus0 + (entry * sizeof (u32)),
tp->tx_flag | max(len, (unsigned int)ETH_ZLEN));
-
+
dev->trans_start = jiffies;
-
+
tp->cur_tx++;
} else {
spin_lock_irqsave(&tp->lock, flags);
wmb();
RTL_W32_F (TxStatus0 + (entry * sizeof (u32)),
tp->tx_flag | max(len, (unsigned int)ETH_ZLEN));
-
+
dev->trans_start = jiffies;
-
+
tp->cur_tx++;
-
+
if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx)
netif_stop_queue (dev);
spin_unlock_irqrestore(&tp->lock, flags);
-
+
if (netif_msg_tx_queued(tp))
printk (KERN_DEBUG "%s: Queued Tx packet size %u to slot %d.\n",
dev->name, len, entry);