aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:54 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:13:50 -0400
commit27a1de95a1461ec0589005c293d6ac23a46cb72d (patch)
tree167e0c9aa3f2b179f4a38a7df734739e0b9cda6d
parentad096463f7ff809389454ea4219058a36564d55e (diff)
3com: convert drivers to netdev_tx_t
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/3c501.c2
-rw-r--r--drivers/net/3c501.h2
-rw-r--r--drivers/net/3c505.c4
-rw-r--r--drivers/net/3c507.c6
-rw-r--r--drivers/net/3c509.c4
-rw-r--r--drivers/net/3c515.c8
-rw-r--r--drivers/net/3c523.c4
-rw-r--r--drivers/net/3c527.c6
-rw-r--r--drivers/net/3c59x.c10
9 files changed, 26 insertions, 20 deletions
diff --git a/drivers/net/3c501.c b/drivers/net/3c501.c
index e29fb1a4a611..f60309175ef5 100644
--- a/drivers/net/3c501.c
+++ b/drivers/net/3c501.c
@@ -409,7 +409,7 @@ static void el_timeout(struct net_device *dev)
409 * no real choice. 409 * no real choice.
410 */ 410 */
411 411
412static int el_start_xmit(struct sk_buff *skb, struct net_device *dev) 412static netdev_tx_t el_start_xmit(struct sk_buff *skb, struct net_device *dev)
413{ 413{
414 struct net_local *lp = netdev_priv(dev); 414 struct net_local *lp = netdev_priv(dev);
415 int ioaddr = dev->base_addr; 415 int ioaddr = dev->base_addr;
diff --git a/drivers/net/3c501.h b/drivers/net/3c501.h
index f40b0493337a..183fd55f03cb 100644
--- a/drivers/net/3c501.h
+++ b/drivers/net/3c501.h
@@ -6,7 +6,7 @@
6static int el1_probe1(struct net_device *dev, int ioaddr); 6static int el1_probe1(struct net_device *dev, int ioaddr);
7static int el_open(struct net_device *dev); 7static int el_open(struct net_device *dev);
8static void el_timeout(struct net_device *dev); 8static void el_timeout(struct net_device *dev);
9static int el_start_xmit(struct sk_buff *skb, struct net_device *dev); 9static netdev_tx_t el_start_xmit(struct sk_buff *skb, struct net_device *dev);
10static irqreturn_t el_interrupt(int irq, void *dev_id); 10static irqreturn_t el_interrupt(int irq, void *dev_id);
11static void el_receive(struct net_device *dev); 11static void el_receive(struct net_device *dev);
12static void el_reset(struct net_device *dev); 12static void el_reset(struct net_device *dev);
diff --git a/drivers/net/3c505.c b/drivers/net/3c505.c
index 7bba480d7220..a21c9d15ef8a 100644
--- a/drivers/net/3c505.c
+++ b/drivers/net/3c505.c
@@ -976,7 +976,7 @@ static int elp_open(struct net_device *dev)
976 * 976 *
977 ******************************************************/ 977 ******************************************************/
978 978
979static bool send_packet(struct net_device *dev, struct sk_buff *skb) 979static netdev_tx_t send_packet(struct net_device *dev, struct sk_buff *skb)
980{ 980{
981 elp_device *adapter = netdev_priv(dev); 981 elp_device *adapter = netdev_priv(dev);
982 unsigned long target; 982 unsigned long target;
@@ -1067,7 +1067,7 @@ static void elp_timeout(struct net_device *dev)
1067 * 1067 *
1068 ******************************************************/ 1068 ******************************************************/
1069 1069
1070static int elp_start_xmit(struct sk_buff *skb, struct net_device *dev) 1070static netdev_tx_t elp_start_xmit(struct sk_buff *skb, struct net_device *dev)
1071{ 1071{
1072 unsigned long flags; 1072 unsigned long flags;
1073 elp_device *adapter = netdev_priv(dev); 1073 elp_device *adapter = netdev_priv(dev);
diff --git a/drivers/net/3c507.c b/drivers/net/3c507.c
index 9e93a0b39b6e..a6dc8bcbc7df 100644
--- a/drivers/net/3c507.c
+++ b/drivers/net/3c507.c
@@ -284,7 +284,8 @@ static unsigned short init_words[] = {
284 284
285static int el16_probe1(struct net_device *dev, int ioaddr); 285static int el16_probe1(struct net_device *dev, int ioaddr);
286static int el16_open(struct net_device *dev); 286static int el16_open(struct net_device *dev);
287static int el16_send_packet(struct sk_buff *skb, struct net_device *dev); 287static netdev_tx_t el16_send_packet(struct sk_buff *skb,
288 struct net_device *dev);
288static irqreturn_t el16_interrupt(int irq, void *dev_id); 289static irqreturn_t el16_interrupt(int irq, void *dev_id);
289static void el16_rx(struct net_device *dev); 290static void el16_rx(struct net_device *dev);
290static int el16_close(struct net_device *dev); 291static int el16_close(struct net_device *dev);
@@ -509,7 +510,8 @@ static void el16_tx_timeout (struct net_device *dev)
509} 510}
510 511
511 512
512static int el16_send_packet (struct sk_buff *skb, struct net_device *dev) 513static netdev_tx_t el16_send_packet (struct sk_buff *skb,
514 struct net_device *dev)
513{ 515{
514 struct net_local *lp = netdev_priv(dev); 516 struct net_local *lp = netdev_priv(dev);
515 int ioaddr = dev->base_addr; 517 int ioaddr = dev->base_addr;
diff --git a/drivers/net/3c509.c b/drivers/net/3c509.c
index d2515d840c00..3b00a4e927aa 100644
--- a/drivers/net/3c509.c
+++ b/drivers/net/3c509.c
@@ -191,7 +191,7 @@ static void el3_common_remove(struct net_device *dev);
191static ushort id_read_eeprom(int index); 191static ushort id_read_eeprom(int index);
192static ushort read_eeprom(int ioaddr, int index); 192static ushort read_eeprom(int ioaddr, int index);
193static int el3_open(struct net_device *dev); 193static int el3_open(struct net_device *dev);
194static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev); 194static netdev_tx_t el3_start_xmit(struct sk_buff *skb, struct net_device *dev);
195static irqreturn_t el3_interrupt(int irq, void *dev_id); 195static irqreturn_t el3_interrupt(int irq, void *dev_id);
196static void update_stats(struct net_device *dev); 196static void update_stats(struct net_device *dev);
197static struct net_device_stats *el3_get_stats(struct net_device *dev); 197static struct net_device_stats *el3_get_stats(struct net_device *dev);
@@ -816,7 +816,7 @@ el3_tx_timeout (struct net_device *dev)
816} 816}
817 817
818 818
819static int 819static netdev_tx_t
820el3_start_xmit(struct sk_buff *skb, struct net_device *dev) 820el3_start_xmit(struct sk_buff *skb, struct net_device *dev)
821{ 821{
822 struct el3_private *lp = netdev_priv(dev); 822 struct el3_private *lp = netdev_priv(dev);
diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c
index 3116410b3499..4adcb950f5f1 100644
--- a/drivers/net/3c515.c
+++ b/drivers/net/3c515.c
@@ -369,8 +369,8 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
369 struct pnp_dev *idev, int card_number); 369 struct pnp_dev *idev, int card_number);
370static int corkscrew_open(struct net_device *dev); 370static int corkscrew_open(struct net_device *dev);
371static void corkscrew_timer(unsigned long arg); 371static void corkscrew_timer(unsigned long arg);
372static int corkscrew_start_xmit(struct sk_buff *skb, 372static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb,
373 struct net_device *dev); 373 struct net_device *dev);
374static int corkscrew_rx(struct net_device *dev); 374static int corkscrew_rx(struct net_device *dev);
375static void corkscrew_timeout(struct net_device *dev); 375static void corkscrew_timeout(struct net_device *dev);
376static int boomerang_rx(struct net_device *dev); 376static int boomerang_rx(struct net_device *dev);
@@ -998,8 +998,8 @@ static void corkscrew_timeout(struct net_device *dev)
998 netif_wake_queue(dev); 998 netif_wake_queue(dev);
999} 999}
1000 1000
1001static int corkscrew_start_xmit(struct sk_buff *skb, 1001static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb,
1002 struct net_device *dev) 1002 struct net_device *dev)
1003{ 1003{
1004 struct corkscrew_private *vp = netdev_priv(dev); 1004 struct corkscrew_private *vp = netdev_priv(dev);
1005 int ioaddr = dev->base_addr; 1005 int ioaddr = dev->base_addr;
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c
index 70c701b80d99..cb0b730799ba 100644
--- a/drivers/net/3c523.c
+++ b/drivers/net/3c523.c
@@ -183,7 +183,7 @@ sizeof(nop_cmd) = 8;
183static irqreturn_t elmc_interrupt(int irq, void *dev_id); 183static irqreturn_t elmc_interrupt(int irq, void *dev_id);
184static int elmc_open(struct net_device *dev); 184static int elmc_open(struct net_device *dev);
185static int elmc_close(struct net_device *dev); 185static int elmc_close(struct net_device *dev);
186static int elmc_send_packet(struct sk_buff *, struct net_device *); 186static netdev_tx_t elmc_send_packet(struct sk_buff *, struct net_device *);
187static struct net_device_stats *elmc_get_stats(struct net_device *dev); 187static struct net_device_stats *elmc_get_stats(struct net_device *dev);
188static void elmc_timeout(struct net_device *dev); 188static void elmc_timeout(struct net_device *dev);
189#ifdef ELMC_MULTICAST 189#ifdef ELMC_MULTICAST
@@ -1129,7 +1129,7 @@ static void elmc_timeout(struct net_device *dev)
1129 * send frame 1129 * send frame
1130 */ 1130 */
1131 1131
1132static int elmc_send_packet(struct sk_buff *skb, struct net_device *dev) 1132static netdev_tx_t elmc_send_packet(struct sk_buff *skb, struct net_device *dev)
1133{ 1133{
1134 int len; 1134 int len;
1135 int i; 1135 int i;
diff --git a/drivers/net/3c527.c b/drivers/net/3c527.c
index 72b9ed7f4641..6021e6dded8f 100644
--- a/drivers/net/3c527.c
+++ b/drivers/net/3c527.c
@@ -213,7 +213,8 @@ static int mc32_probe1(struct net_device *dev, int ioaddr);
213static int mc32_command(struct net_device *dev, u16 cmd, void *data, int len); 213static int mc32_command(struct net_device *dev, u16 cmd, void *data, int len);
214static int mc32_open(struct net_device *dev); 214static int mc32_open(struct net_device *dev);
215static void mc32_timeout(struct net_device *dev); 215static void mc32_timeout(struct net_device *dev);
216static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev); 216static netdev_tx_t mc32_send_packet(struct sk_buff *skb,
217 struct net_device *dev);
217static irqreturn_t mc32_interrupt(int irq, void *dev_id); 218static irqreturn_t mc32_interrupt(int irq, void *dev_id);
218static int mc32_close(struct net_device *dev); 219static int mc32_close(struct net_device *dev);
219static struct net_device_stats *mc32_get_stats(struct net_device *dev); 220static struct net_device_stats *mc32_get_stats(struct net_device *dev);
@@ -1020,7 +1021,8 @@ static void mc32_timeout(struct net_device *dev)
1020 * 1021 *
1021 */ 1022 */
1022 1023
1023static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev) 1024static netdev_tx_t mc32_send_packet(struct sk_buff *skb,
1025 struct net_device *dev)
1024{ 1026{
1025 struct mc32_local *lp = netdev_priv(dev); 1027 struct mc32_local *lp = netdev_priv(dev);
1026 u32 head = atomic_read(&lp->tx_ring_head); 1028 u32 head = atomic_read(&lp->tx_ring_head);
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index beb040264dbd..7adff4d0960d 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -716,8 +716,10 @@ static int mdio_read(struct net_device *dev, int phy_id, int location);
716static void mdio_write(struct net_device *vp, int phy_id, int location, int value); 716static void mdio_write(struct net_device *vp, int phy_id, int location, int value);
717static void vortex_timer(unsigned long arg); 717static void vortex_timer(unsigned long arg);
718static void rx_oom_timer(unsigned long arg); 718static void rx_oom_timer(unsigned long arg);
719static int vortex_start_xmit(struct sk_buff *skb, struct net_device *dev); 719static netdev_tx_t vortex_start_xmit(struct sk_buff *skb,
720static int boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev); 720 struct net_device *dev);
721static netdev_tx_t boomerang_start_xmit(struct sk_buff *skb,
722 struct net_device *dev);
721static int vortex_rx(struct net_device *dev); 723static int vortex_rx(struct net_device *dev);
722static int boomerang_rx(struct net_device *dev); 724static int boomerang_rx(struct net_device *dev);
723static irqreturn_t vortex_interrupt(int irq, void *dev_id); 725static irqreturn_t vortex_interrupt(int irq, void *dev_id);
@@ -2035,7 +2037,7 @@ vortex_error(struct net_device *dev, int status)
2035 } 2037 }
2036} 2038}
2037 2039
2038static int 2040static netdev_tx_t
2039vortex_start_xmit(struct sk_buff *skb, struct net_device *dev) 2041vortex_start_xmit(struct sk_buff *skb, struct net_device *dev)
2040{ 2042{
2041 struct vortex_private *vp = netdev_priv(dev); 2043 struct vortex_private *vp = netdev_priv(dev);
@@ -2090,7 +2092,7 @@ vortex_start_xmit(struct sk_buff *skb, struct net_device *dev)
2090 return NETDEV_TX_OK; 2092 return NETDEV_TX_OK;
2091} 2093}
2092 2094
2093static int 2095static netdev_tx_t
2094boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev) 2096boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev)
2095{ 2097{
2096 struct vortex_private *vp = netdev_priv(dev); 2098 struct vortex_private *vp = netdev_priv(dev);