diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:13:50 -0400 |
commit | 27a1de95a1461ec0589005c293d6ac23a46cb72d (patch) | |
tree | 167e0c9aa3f2b179f4a38a7df734739e0b9cda6d | |
parent | ad096463f7ff809389454ea4219058a36564d55e (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.c | 2 | ||||
-rw-r--r-- | drivers/net/3c501.h | 2 | ||||
-rw-r--r-- | drivers/net/3c505.c | 4 | ||||
-rw-r--r-- | drivers/net/3c507.c | 6 | ||||
-rw-r--r-- | drivers/net/3c509.c | 4 | ||||
-rw-r--r-- | drivers/net/3c515.c | 8 | ||||
-rw-r--r-- | drivers/net/3c523.c | 4 | ||||
-rw-r--r-- | drivers/net/3c527.c | 6 | ||||
-rw-r--r-- | drivers/net/3c59x.c | 10 |
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 | ||
412 | static int el_start_xmit(struct sk_buff *skb, struct net_device *dev) | 412 | static 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 @@ | |||
6 | static int el1_probe1(struct net_device *dev, int ioaddr); | 6 | static int el1_probe1(struct net_device *dev, int ioaddr); |
7 | static int el_open(struct net_device *dev); | 7 | static int el_open(struct net_device *dev); |
8 | static void el_timeout(struct net_device *dev); | 8 | static void el_timeout(struct net_device *dev); |
9 | static int el_start_xmit(struct sk_buff *skb, struct net_device *dev); | 9 | static netdev_tx_t el_start_xmit(struct sk_buff *skb, struct net_device *dev); |
10 | static irqreturn_t el_interrupt(int irq, void *dev_id); | 10 | static irqreturn_t el_interrupt(int irq, void *dev_id); |
11 | static void el_receive(struct net_device *dev); | 11 | static void el_receive(struct net_device *dev); |
12 | static void el_reset(struct net_device *dev); | 12 | static 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 | ||
979 | static bool send_packet(struct net_device *dev, struct sk_buff *skb) | 979 | static 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 | ||
1070 | static int elp_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1070 | static 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 | ||
285 | static int el16_probe1(struct net_device *dev, int ioaddr); | 285 | static int el16_probe1(struct net_device *dev, int ioaddr); |
286 | static int el16_open(struct net_device *dev); | 286 | static int el16_open(struct net_device *dev); |
287 | static int el16_send_packet(struct sk_buff *skb, struct net_device *dev); | 287 | static netdev_tx_t el16_send_packet(struct sk_buff *skb, |
288 | struct net_device *dev); | ||
288 | static irqreturn_t el16_interrupt(int irq, void *dev_id); | 289 | static irqreturn_t el16_interrupt(int irq, void *dev_id); |
289 | static void el16_rx(struct net_device *dev); | 290 | static void el16_rx(struct net_device *dev); |
290 | static int el16_close(struct net_device *dev); | 291 | static 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 | ||
512 | static int el16_send_packet (struct sk_buff *skb, struct net_device *dev) | 513 | static 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); | |||
191 | static ushort id_read_eeprom(int index); | 191 | static ushort id_read_eeprom(int index); |
192 | static ushort read_eeprom(int ioaddr, int index); | 192 | static ushort read_eeprom(int ioaddr, int index); |
193 | static int el3_open(struct net_device *dev); | 193 | static int el3_open(struct net_device *dev); |
194 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev); | 194 | static netdev_tx_t el3_start_xmit(struct sk_buff *skb, struct net_device *dev); |
195 | static irqreturn_t el3_interrupt(int irq, void *dev_id); | 195 | static irqreturn_t el3_interrupt(int irq, void *dev_id); |
196 | static void update_stats(struct net_device *dev); | 196 | static void update_stats(struct net_device *dev); |
197 | static struct net_device_stats *el3_get_stats(struct net_device *dev); | 197 | static 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 | ||
819 | static int | 819 | static netdev_tx_t |
820 | el3_start_xmit(struct sk_buff *skb, struct net_device *dev) | 820 | el3_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); |
370 | static int corkscrew_open(struct net_device *dev); | 370 | static int corkscrew_open(struct net_device *dev); |
371 | static void corkscrew_timer(unsigned long arg); | 371 | static void corkscrew_timer(unsigned long arg); |
372 | static int corkscrew_start_xmit(struct sk_buff *skb, | 372 | static netdev_tx_t corkscrew_start_xmit(struct sk_buff *skb, |
373 | struct net_device *dev); | 373 | struct net_device *dev); |
374 | static int corkscrew_rx(struct net_device *dev); | 374 | static int corkscrew_rx(struct net_device *dev); |
375 | static void corkscrew_timeout(struct net_device *dev); | 375 | static void corkscrew_timeout(struct net_device *dev); |
376 | static int boomerang_rx(struct net_device *dev); | 376 | static 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 | ||
1001 | static int corkscrew_start_xmit(struct sk_buff *skb, | 1001 | static 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; | |||
183 | static irqreturn_t elmc_interrupt(int irq, void *dev_id); | 183 | static irqreturn_t elmc_interrupt(int irq, void *dev_id); |
184 | static int elmc_open(struct net_device *dev); | 184 | static int elmc_open(struct net_device *dev); |
185 | static int elmc_close(struct net_device *dev); | 185 | static int elmc_close(struct net_device *dev); |
186 | static int elmc_send_packet(struct sk_buff *, struct net_device *); | 186 | static netdev_tx_t elmc_send_packet(struct sk_buff *, struct net_device *); |
187 | static struct net_device_stats *elmc_get_stats(struct net_device *dev); | 187 | static struct net_device_stats *elmc_get_stats(struct net_device *dev); |
188 | static void elmc_timeout(struct net_device *dev); | 188 | static 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 | ||
1132 | static int elmc_send_packet(struct sk_buff *skb, struct net_device *dev) | 1132 | static 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); | |||
213 | static int mc32_command(struct net_device *dev, u16 cmd, void *data, int len); | 213 | static int mc32_command(struct net_device *dev, u16 cmd, void *data, int len); |
214 | static int mc32_open(struct net_device *dev); | 214 | static int mc32_open(struct net_device *dev); |
215 | static void mc32_timeout(struct net_device *dev); | 215 | static void mc32_timeout(struct net_device *dev); |
216 | static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev); | 216 | static netdev_tx_t mc32_send_packet(struct sk_buff *skb, |
217 | struct net_device *dev); | ||
217 | static irqreturn_t mc32_interrupt(int irq, void *dev_id); | 218 | static irqreturn_t mc32_interrupt(int irq, void *dev_id); |
218 | static int mc32_close(struct net_device *dev); | 219 | static int mc32_close(struct net_device *dev); |
219 | static struct net_device_stats *mc32_get_stats(struct net_device *dev); | 220 | static 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 | ||
1023 | static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev) | 1024 | static 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); | |||
716 | static void mdio_write(struct net_device *vp, int phy_id, int location, int value); | 716 | static void mdio_write(struct net_device *vp, int phy_id, int location, int value); |
717 | static void vortex_timer(unsigned long arg); | 717 | static void vortex_timer(unsigned long arg); |
718 | static void rx_oom_timer(unsigned long arg); | 718 | static void rx_oom_timer(unsigned long arg); |
719 | static int vortex_start_xmit(struct sk_buff *skb, struct net_device *dev); | 719 | static netdev_tx_t vortex_start_xmit(struct sk_buff *skb, |
720 | static int boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev); | 720 | struct net_device *dev); |
721 | static netdev_tx_t boomerang_start_xmit(struct sk_buff *skb, | ||
722 | struct net_device *dev); | ||
721 | static int vortex_rx(struct net_device *dev); | 723 | static int vortex_rx(struct net_device *dev); |
722 | static int boomerang_rx(struct net_device *dev); | 724 | static int boomerang_rx(struct net_device *dev); |
723 | static irqreturn_t vortex_interrupt(int irq, void *dev_id); | 725 | static 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 | ||
2038 | static int | 2040 | static netdev_tx_t |
2039 | vortex_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2041 | vortex_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 | ||
2093 | static int | 2095 | static netdev_tx_t |
2094 | boomerang_start_xmit(struct sk_buff *skb, struct net_device *dev) | 2096 | boomerang_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); |