aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/tulip/de2104x.c3
-rw-r--r--drivers/net/tulip/de4x5.c11
-rw-r--r--drivers/net/tulip/dmfe.c5
-rw-r--r--drivers/net/tulip/tulip_core.c5
-rw-r--r--drivers/net/tulip/uli526x.c6
-rw-r--r--drivers/net/tulip/winbond-840.c4
-rw-r--r--drivers/net/tulip/xircom_cb.c6
7 files changed, 23 insertions, 17 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c
index bc8a6b263b40..74e5ba42d38d 100644
--- a/drivers/net/tulip/de2104x.c
+++ b/drivers/net/tulip/de2104x.c
@@ -599,7 +599,8 @@ next:
599 netif_wake_queue(de->dev); 599 netif_wake_queue(de->dev);
600} 600}
601 601
602static int de_start_xmit (struct sk_buff *skb, struct net_device *dev) 602static netdev_tx_t de_start_xmit (struct sk_buff *skb,
603 struct net_device *dev)
603{ 604{
604 struct de_private *de = netdev_priv(dev); 605 struct de_private *de = netdev_priv(dev);
605 unsigned int entry, tx_free; 606 unsigned int entry, tx_free;
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c
index acfdccd44567..a8349b7200b5 100644
--- a/drivers/net/tulip/de4x5.c
+++ b/drivers/net/tulip/de4x5.c
@@ -895,7 +895,8 @@ static struct {
895** Public Functions 895** Public Functions
896*/ 896*/
897static int de4x5_open(struct net_device *dev); 897static int de4x5_open(struct net_device *dev);
898static int de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev); 898static netdev_tx_t de4x5_queue_pkt(struct sk_buff *skb,
899 struct net_device *dev);
899static irqreturn_t de4x5_interrupt(int irq, void *dev_id); 900static irqreturn_t de4x5_interrupt(int irq, void *dev_id);
900static int de4x5_close(struct net_device *dev); 901static int de4x5_close(struct net_device *dev);
901static struct net_device_stats *de4x5_get_stats(struct net_device *dev); 902static struct net_device_stats *de4x5_get_stats(struct net_device *dev);
@@ -1456,18 +1457,16 @@ de4x5_sw_reset(struct net_device *dev)
1456/* 1457/*
1457** Writes a socket buffer address to the next available transmit descriptor. 1458** Writes a socket buffer address to the next available transmit descriptor.
1458*/ 1459*/
1459static int 1460static netdev_tx_t
1460de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev) 1461de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev)
1461{ 1462{
1462 struct de4x5_private *lp = netdev_priv(dev); 1463 struct de4x5_private *lp = netdev_priv(dev);
1463 u_long iobase = dev->base_addr; 1464 u_long iobase = dev->base_addr;
1464 int status = NETDEV_TX_OK;
1465 u_long flags = 0; 1465 u_long flags = 0;
1466 1466
1467 netif_stop_queue(dev); 1467 netif_stop_queue(dev);
1468 if (!lp->tx_enable) { /* Cannot send for now */ 1468 if (!lp->tx_enable) /* Cannot send for now */
1469 return NETDEV_TX_LOCKED; 1469 return NETDEV_TX_LOCKED;
1470 }
1471 1470
1472 /* 1471 /*
1473 ** Clean out the TX ring asynchronously to interrupts - sometimes the 1472 ** Clean out the TX ring asynchronously to interrupts - sometimes the
@@ -1521,7 +1520,7 @@ de4x5_queue_pkt(struct sk_buff *skb, struct net_device *dev)
1521 1520
1522 lp->cache.lock = 0; 1521 lp->cache.lock = 0;
1523 1522
1524 return status; 1523 return NETDEV_TX_OK;
1525} 1524}
1526 1525
1527/* 1526/*
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c
index 5e15fab58c17..a45ded0538b8 100644
--- a/drivers/net/tulip/dmfe.c
+++ b/drivers/net/tulip/dmfe.c
@@ -311,7 +311,7 @@ static u8 SF_mode; /* Special Function: 1:VLAN, 2:RX Flow Control
311 311
312/* function declaration ------------------------------------- */ 312/* function declaration ------------------------------------- */
313static int dmfe_open(struct DEVICE *); 313static int dmfe_open(struct DEVICE *);
314static int dmfe_start_xmit(struct sk_buff *, struct DEVICE *); 314static netdev_tx_t dmfe_start_xmit(struct sk_buff *, struct DEVICE *);
315static int dmfe_stop(struct DEVICE *); 315static int dmfe_stop(struct DEVICE *);
316static void dmfe_set_filter_mode(struct DEVICE *); 316static void dmfe_set_filter_mode(struct DEVICE *);
317static const struct ethtool_ops netdev_ethtool_ops; 317static const struct ethtool_ops netdev_ethtool_ops;
@@ -661,7 +661,8 @@ static void dmfe_init_dm910x(struct DEVICE *dev)
661 * Send a packet to media from the upper layer. 661 * Send a packet to media from the upper layer.
662 */ 662 */
663 663
664static int dmfe_start_xmit(struct sk_buff *skb, struct DEVICE *dev) 664static netdev_tx_t dmfe_start_xmit(struct sk_buff *skb,
665 struct DEVICE *dev)
665{ 666{
666 struct dmfe_board_info *db = netdev_priv(dev); 667 struct dmfe_board_info *db = netdev_priv(dev);
667 struct tx_desc *txptr; 668 struct tx_desc *txptr;
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c
index 019050f273a2..2a01f0e421ab 100644
--- a/drivers/net/tulip/tulip_core.c
+++ b/drivers/net/tulip/tulip_core.c
@@ -256,7 +256,8 @@ const char tulip_media_cap[32] =
256static void tulip_tx_timeout(struct net_device *dev); 256static void tulip_tx_timeout(struct net_device *dev);
257static void tulip_init_ring(struct net_device *dev); 257static void tulip_init_ring(struct net_device *dev);
258static void tulip_free_ring(struct net_device *dev); 258static void tulip_free_ring(struct net_device *dev);
259static int tulip_start_xmit(struct sk_buff *skb, struct net_device *dev); 259static netdev_tx_t tulip_start_xmit(struct sk_buff *skb,
260 struct net_device *dev);
260static int tulip_open(struct net_device *dev); 261static int tulip_open(struct net_device *dev);
261static int tulip_close(struct net_device *dev); 262static int tulip_close(struct net_device *dev);
262static void tulip_up(struct net_device *dev); 263static void tulip_up(struct net_device *dev);
@@ -645,7 +646,7 @@ static void tulip_init_ring(struct net_device *dev)
645 tp->tx_ring[i-1].buffer2 = cpu_to_le32(tp->tx_ring_dma); 646 tp->tx_ring[i-1].buffer2 = cpu_to_le32(tp->tx_ring_dma);
646} 647}
647 648
648static int 649static netdev_tx_t
649tulip_start_xmit(struct sk_buff *skb, struct net_device *dev) 650tulip_start_xmit(struct sk_buff *skb, struct net_device *dev)
650{ 651{
651 struct tulip_private *tp = netdev_priv(dev); 652 struct tulip_private *tp = netdev_priv(dev);
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c
index 9074a34eb814..c457a0ca55ad 100644
--- a/drivers/net/tulip/uli526x.c
+++ b/drivers/net/tulip/uli526x.c
@@ -215,7 +215,8 @@ static int mode = 8;
215 215
216/* function declaration ------------------------------------- */ 216/* function declaration ------------------------------------- */
217static int uli526x_open(struct net_device *); 217static int uli526x_open(struct net_device *);
218static int uli526x_start_xmit(struct sk_buff *, struct net_device *); 218static netdev_tx_t uli526x_start_xmit(struct sk_buff *,
219 struct net_device *);
219static int uli526x_stop(struct net_device *); 220static int uli526x_stop(struct net_device *);
220static void uli526x_set_filter_mode(struct net_device *); 221static void uli526x_set_filter_mode(struct net_device *);
221static const struct ethtool_ops netdev_ethtool_ops; 222static const struct ethtool_ops netdev_ethtool_ops;
@@ -567,7 +568,8 @@ static void uli526x_init(struct net_device *dev)
567 * Send a packet to media from the upper layer. 568 * Send a packet to media from the upper layer.
568 */ 569 */
569 570
570static int uli526x_start_xmit(struct sk_buff *skb, struct net_device *dev) 571static netdev_tx_t uli526x_start_xmit(struct sk_buff *skb,
572 struct net_device *dev)
571{ 573{
572 struct uli526x_board_info *db = netdev_priv(dev); 574 struct uli526x_board_info *db = netdev_priv(dev);
573 struct tx_desc *txptr; 575 struct tx_desc *txptr;
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c
index 1853530a32a2..3e59397e5386 100644
--- a/drivers/net/tulip/winbond-840.c
+++ b/drivers/net/tulip/winbond-840.c
@@ -333,7 +333,7 @@ static void init_registers(struct net_device *dev);
333static void tx_timeout(struct net_device *dev); 333static void tx_timeout(struct net_device *dev);
334static int alloc_ringdesc(struct net_device *dev); 334static int alloc_ringdesc(struct net_device *dev);
335static void free_ringdesc(struct netdev_private *np); 335static void free_ringdesc(struct netdev_private *np);
336static int start_tx(struct sk_buff *skb, struct net_device *dev); 336static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev);
337static irqreturn_t intr_handler(int irq, void *dev_instance); 337static irqreturn_t intr_handler(int irq, void *dev_instance);
338static void netdev_error(struct net_device *dev, int intr_status); 338static void netdev_error(struct net_device *dev, int intr_status);
339static int netdev_rx(struct net_device *dev); 339static int netdev_rx(struct net_device *dev);
@@ -997,7 +997,7 @@ static void free_ringdesc(struct netdev_private *np)
997 997
998} 998}
999 999
1000static int start_tx(struct sk_buff *skb, struct net_device *dev) 1000static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev)
1001{ 1001{
1002 struct netdev_private *np = netdev_priv(dev); 1002 struct netdev_private *np = netdev_priv(dev);
1003 unsigned entry; 1003 unsigned entry;
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c
index 22b6a239fb33..0f2ca5980c3c 100644
--- a/drivers/net/tulip/xircom_cb.c
+++ b/drivers/net/tulip/xircom_cb.c
@@ -113,7 +113,8 @@ struct xircom_private {
113static int xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id); 113static int xircom_probe(struct pci_dev *pdev, const struct pci_device_id *id);
114static void xircom_remove(struct pci_dev *pdev); 114static void xircom_remove(struct pci_dev *pdev);
115static irqreturn_t xircom_interrupt(int irq, void *dev_instance); 115static irqreturn_t xircom_interrupt(int irq, void *dev_instance);
116static int xircom_start_xmit(struct sk_buff *skb, struct net_device *dev); 116static netdev_tx_t xircom_start_xmit(struct sk_buff *skb,
117 struct net_device *dev);
117static int xircom_open(struct net_device *dev); 118static int xircom_open(struct net_device *dev);
118static int xircom_close(struct net_device *dev); 119static int xircom_close(struct net_device *dev);
119static void xircom_up(struct xircom_private *card); 120static void xircom_up(struct xircom_private *card);
@@ -384,7 +385,8 @@ static irqreturn_t xircom_interrupt(int irq, void *dev_instance)
384 return IRQ_HANDLED; 385 return IRQ_HANDLED;
385} 386}
386 387
387static int xircom_start_xmit(struct sk_buff *skb, struct net_device *dev) 388static netdev_tx_t xircom_start_xmit(struct sk_buff *skb,
389 struct net_device *dev)
388{ 390{
389 struct xircom_private *card; 391 struct xircom_private *card;
390 unsigned long flags; 392 unsigned long flags;