diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:13:34 -0400 |
commit | dbf02fae406daf4d583a279743869c686024c341 (patch) | |
tree | 38e926bdd4b445d1b51f263b2f5c7d3d749e6e43 /drivers/net/pcmcia | |
parent | 4c5d502d8b2db8947c44dc44bdc67dbe55cce2b9 (diff) |
netdev: convert pcmcia drivers to netdev_tx_t
Update all the pcmcia network drivers for netdev_tx_t.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r-- | drivers/net/pcmcia/3c574_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/pcmcia/3c589_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/pcmcia/axnet_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/pcmcia/nmclan_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 6 | ||||
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 5 |
7 files changed, 27 insertions, 14 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c index a23aa8724042..382d26520acc 100644 --- a/drivers/net/pcmcia/3c574_cs.c +++ b/drivers/net/pcmcia/3c574_cs.c | |||
@@ -239,7 +239,8 @@ static void tc574_wait_for_completion(struct net_device *dev, int cmd); | |||
239 | static void tc574_reset(struct net_device *dev); | 239 | static void tc574_reset(struct net_device *dev); |
240 | static void media_check(unsigned long arg); | 240 | static void media_check(unsigned long arg); |
241 | static int el3_open(struct net_device *dev); | 241 | static int el3_open(struct net_device *dev); |
242 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev); | 242 | static netdev_tx_t el3_start_xmit(struct sk_buff *skb, |
243 | struct net_device *dev); | ||
243 | static irqreturn_t el3_interrupt(int irq, void *dev_id); | 244 | static irqreturn_t el3_interrupt(int irq, void *dev_id); |
244 | static void update_stats(struct net_device *dev); | 245 | static void update_stats(struct net_device *dev); |
245 | static struct net_device_stats *el3_get_stats(struct net_device *dev); | 246 | static struct net_device_stats *el3_get_stats(struct net_device *dev); |
@@ -778,7 +779,8 @@ static void pop_tx_status(struct net_device *dev) | |||
778 | } | 779 | } |
779 | } | 780 | } |
780 | 781 | ||
781 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev) | 782 | static netdev_tx_t el3_start_xmit(struct sk_buff *skb, |
783 | struct net_device *dev) | ||
782 | { | 784 | { |
783 | unsigned int ioaddr = dev->base_addr; | 785 | unsigned int ioaddr = dev->base_addr; |
784 | struct el3_private *lp = netdev_priv(dev); | 786 | struct el3_private *lp = netdev_priv(dev); |
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c index d2156ab3da2b..569fb06793cf 100644 --- a/drivers/net/pcmcia/3c589_cs.c +++ b/drivers/net/pcmcia/3c589_cs.c | |||
@@ -149,7 +149,8 @@ static void tc589_reset(struct net_device *dev); | |||
149 | static void media_check(unsigned long arg); | 149 | static void media_check(unsigned long arg); |
150 | static int el3_config(struct net_device *dev, struct ifmap *map); | 150 | static int el3_config(struct net_device *dev, struct ifmap *map); |
151 | static int el3_open(struct net_device *dev); | 151 | static int el3_open(struct net_device *dev); |
152 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev); | 152 | static netdev_tx_t el3_start_xmit(struct sk_buff *skb, |
153 | struct net_device *dev); | ||
153 | static irqreturn_t el3_interrupt(int irq, void *dev_id); | 154 | static irqreturn_t el3_interrupt(int irq, void *dev_id); |
154 | static void update_stats(struct net_device *dev); | 155 | static void update_stats(struct net_device *dev); |
155 | static struct net_device_stats *el3_get_stats(struct net_device *dev); | 156 | static struct net_device_stats *el3_get_stats(struct net_device *dev); |
@@ -604,7 +605,8 @@ static void pop_tx_status(struct net_device *dev) | |||
604 | } | 605 | } |
605 | } | 606 | } |
606 | 607 | ||
607 | static int el3_start_xmit(struct sk_buff *skb, struct net_device *dev) | 608 | static netdev_tx_t el3_start_xmit(struct sk_buff *skb, |
609 | struct net_device *dev) | ||
608 | { | 610 | { |
609 | unsigned int ioaddr = dev->base_addr; | 611 | unsigned int ioaddr = dev->base_addr; |
610 | struct el3_private *priv = netdev_priv(dev); | 612 | struct el3_private *priv = netdev_priv(dev); |
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index 1e87d634d7bc..3b681c1d7523 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c | |||
@@ -92,7 +92,8 @@ static void axnet_release(struct pcmcia_device *link); | |||
92 | static int axnet_open(struct net_device *dev); | 92 | static int axnet_open(struct net_device *dev); |
93 | static int axnet_close(struct net_device *dev); | 93 | static int axnet_close(struct net_device *dev); |
94 | static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 94 | static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
95 | static int axnet_start_xmit(struct sk_buff *skb, struct net_device *dev); | 95 | static netdev_tx_t axnet_start_xmit(struct sk_buff *skb, |
96 | struct net_device *dev); | ||
96 | static struct net_device_stats *get_stats(struct net_device *dev); | 97 | static struct net_device_stats *get_stats(struct net_device *dev); |
97 | static void set_multicast_list(struct net_device *dev); | 98 | static void set_multicast_list(struct net_device *dev); |
98 | static void axnet_tx_timeout(struct net_device *dev); | 99 | static void axnet_tx_timeout(struct net_device *dev); |
@@ -1063,7 +1064,8 @@ static void axnet_tx_timeout(struct net_device *dev) | |||
1063 | * Sends a packet to an 8390 network device. | 1064 | * Sends a packet to an 8390 network device. |
1064 | */ | 1065 | */ |
1065 | 1066 | ||
1066 | static int axnet_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1067 | static netdev_tx_t axnet_start_xmit(struct sk_buff *skb, |
1068 | struct net_device *dev) | ||
1067 | { | 1069 | { |
1068 | long e8390_base = dev->base_addr; | 1070 | long e8390_base = dev->base_addr; |
1069 | struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); | 1071 | struct ei_device *ei_local = (struct ei_device *) netdev_priv(dev); |
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 434d9407bfb3..7e01fbdb87e0 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -96,7 +96,8 @@ static void fmvj18x_detach(struct pcmcia_device *p_dev); | |||
96 | static int fjn_config(struct net_device *dev, struct ifmap *map); | 96 | static int fjn_config(struct net_device *dev, struct ifmap *map); |
97 | static int fjn_open(struct net_device *dev); | 97 | static int fjn_open(struct net_device *dev); |
98 | static int fjn_close(struct net_device *dev); | 98 | static int fjn_close(struct net_device *dev); |
99 | static int fjn_start_xmit(struct sk_buff *skb, struct net_device *dev); | 99 | static netdev_tx_t fjn_start_xmit(struct sk_buff *skb, |
100 | struct net_device *dev); | ||
100 | static irqreturn_t fjn_interrupt(int irq, void *dev_id); | 101 | static irqreturn_t fjn_interrupt(int irq, void *dev_id); |
101 | static void fjn_rx(struct net_device *dev); | 102 | static void fjn_rx(struct net_device *dev); |
102 | static void fjn_reset(struct net_device *dev); | 103 | static void fjn_reset(struct net_device *dev); |
@@ -856,7 +857,8 @@ static void fjn_tx_timeout(struct net_device *dev) | |||
856 | netif_wake_queue(dev); | 857 | netif_wake_queue(dev); |
857 | } | 858 | } |
858 | 859 | ||
859 | static int fjn_start_xmit(struct sk_buff *skb, struct net_device *dev) | 860 | static netdev_tx_t fjn_start_xmit(struct sk_buff *skb, |
861 | struct net_device *dev) | ||
860 | { | 862 | { |
861 | struct local_info_t *lp = netdev_priv(dev); | 863 | struct local_info_t *lp = netdev_priv(dev); |
862 | unsigned int ioaddr = dev->base_addr; | 864 | unsigned int ioaddr = dev->base_addr; |
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c index dd6059076705..5ed6339c52bc 100644 --- a/drivers/net/pcmcia/nmclan_cs.c +++ b/drivers/net/pcmcia/nmclan_cs.c | |||
@@ -424,7 +424,8 @@ static void nmclan_reset(struct net_device *dev); | |||
424 | static int mace_config(struct net_device *dev, struct ifmap *map); | 424 | static int mace_config(struct net_device *dev, struct ifmap *map); |
425 | static int mace_open(struct net_device *dev); | 425 | static int mace_open(struct net_device *dev); |
426 | static int mace_close(struct net_device *dev); | 426 | static int mace_close(struct net_device *dev); |
427 | static int mace_start_xmit(struct sk_buff *skb, struct net_device *dev); | 427 | static netdev_tx_t mace_start_xmit(struct sk_buff *skb, |
428 | struct net_device *dev); | ||
428 | static void mace_tx_timeout(struct net_device *dev); | 429 | static void mace_tx_timeout(struct net_device *dev); |
429 | static irqreturn_t mace_interrupt(int irq, void *dev_id); | 430 | static irqreturn_t mace_interrupt(int irq, void *dev_id); |
430 | static struct net_device_stats *mace_get_stats(struct net_device *dev); | 431 | static struct net_device_stats *mace_get_stats(struct net_device *dev); |
@@ -937,7 +938,8 @@ static void mace_tx_timeout(struct net_device *dev) | |||
937 | netif_wake_queue(dev); | 938 | netif_wake_queue(dev); |
938 | } | 939 | } |
939 | 940 | ||
940 | static int mace_start_xmit(struct sk_buff *skb, struct net_device *dev) | 941 | static netdev_tx_t mace_start_xmit(struct sk_buff *skb, |
942 | struct net_device *dev) | ||
941 | { | 943 | { |
942 | mace_private *lp = netdev_priv(dev); | 944 | mace_private *lp = netdev_priv(dev); |
943 | unsigned int ioaddr = dev->base_addr; | 945 | unsigned int ioaddr = dev->base_addr; |
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 2f39244c17f2..7bde2cd34c7e 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -288,7 +288,8 @@ static int smc_open(struct net_device *dev); | |||
288 | static int smc_close(struct net_device *dev); | 288 | static int smc_close(struct net_device *dev); |
289 | static int smc_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 289 | static int smc_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
290 | static void smc_tx_timeout(struct net_device *dev); | 290 | static void smc_tx_timeout(struct net_device *dev); |
291 | static int smc_start_xmit(struct sk_buff *skb, struct net_device *dev); | 291 | static netdev_tx_t smc_start_xmit(struct sk_buff *skb, |
292 | struct net_device *dev); | ||
292 | static irqreturn_t smc_interrupt(int irq, void *dev_id); | 293 | static irqreturn_t smc_interrupt(int irq, void *dev_id); |
293 | static void smc_rx(struct net_device *dev); | 294 | static void smc_rx(struct net_device *dev); |
294 | static void set_rx_mode(struct net_device *dev); | 295 | static void set_rx_mode(struct net_device *dev); |
@@ -1370,7 +1371,8 @@ static void smc_tx_timeout(struct net_device *dev) | |||
1370 | netif_wake_queue(dev); | 1371 | netif_wake_queue(dev); |
1371 | } | 1372 | } |
1372 | 1373 | ||
1373 | static int smc_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1374 | static netdev_tx_t smc_start_xmit(struct sk_buff *skb, |
1375 | struct net_device *dev) | ||
1374 | { | 1376 | { |
1375 | struct smc_private *smc = netdev_priv(dev); | 1377 | struct smc_private *smc = netdev_priv(dev); |
1376 | unsigned int ioaddr = dev->base_addr; | 1378 | unsigned int ioaddr = dev->base_addr; |
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index eda7bf6047cd..68de89167b49 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -352,7 +352,8 @@ typedef struct local_info_t { | |||
352 | /**************** | 352 | /**************** |
353 | * Some more prototypes | 353 | * Some more prototypes |
354 | */ | 354 | */ |
355 | static int do_start_xmit(struct sk_buff *skb, struct net_device *dev); | 355 | static netdev_tx_t do_start_xmit(struct sk_buff *skb, |
356 | struct net_device *dev); | ||
356 | static void xirc_tx_timeout(struct net_device *dev); | 357 | static void xirc_tx_timeout(struct net_device *dev); |
357 | static void xirc2ps_tx_timeout_task(struct work_struct *work); | 358 | static void xirc2ps_tx_timeout_task(struct work_struct *work); |
358 | static void set_addresses(struct net_device *dev); | 359 | static void set_addresses(struct net_device *dev); |
@@ -1361,7 +1362,7 @@ xirc_tx_timeout(struct net_device *dev) | |||
1361 | schedule_work(&lp->tx_timeout_task); | 1362 | schedule_work(&lp->tx_timeout_task); |
1362 | } | 1363 | } |
1363 | 1364 | ||
1364 | static int | 1365 | static netdev_tx_t |
1365 | do_start_xmit(struct sk_buff *skb, struct net_device *dev) | 1366 | do_start_xmit(struct sk_buff *skb, struct net_device *dev) |
1366 | { | 1367 | { |
1367 | local_info_t *lp = netdev_priv(dev); | 1368 | local_info_t *lp = netdev_priv(dev); |