Commit 6518bbb8 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

irda: convert to netdev_tx_t

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dbf02fae
...@@ -111,7 +111,8 @@ static int ali_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd ...@@ -111,7 +111,8 @@ static int ali_ircc_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd
static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud);
/* SIR function */ /* SIR function */
static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t ali_ircc_sir_hard_xmit(struct sk_buff *skb,
struct net_device *dev);
static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self); static irqreturn_t ali_ircc_sir_interrupt(struct ali_ircc_cb *self);
static void ali_ircc_sir_receive(struct ali_ircc_cb *self); static void ali_ircc_sir_receive(struct ali_ircc_cb *self);
static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self); static void ali_ircc_sir_write_wakeup(struct ali_ircc_cb *self);
...@@ -119,7 +120,8 @@ static int ali_ircc_sir_write(int iobase, int fifo_size, __u8 *buf, int len); ...@@ -119,7 +120,8 @@ static int ali_ircc_sir_write(int iobase, int fifo_size, __u8 *buf, int len);
static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 speed); static void ali_ircc_sir_change_speed(struct ali_ircc_cb *priv, __u32 speed);
/* FIR function */ /* FIR function */
static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t ali_ircc_fir_hard_xmit(struct sk_buff *skb,
struct net_device *dev);
static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 speed); static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 speed);
static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self); static irqreturn_t ali_ircc_fir_interrupt(struct ali_ircc_cb *self);
static int ali_ircc_dma_receive(struct ali_ircc_cb *self); static int ali_ircc_dma_receive(struct ali_ircc_cb *self);
...@@ -1435,7 +1437,8 @@ static int ali_ircc_net_close(struct net_device *dev) ...@@ -1435,7 +1437,8 @@ static int ali_ircc_net_close(struct net_device *dev)
* Transmit the frame * Transmit the frame
* *
*/ */
static int ali_ircc_fir_hard_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t ali_ircc_fir_hard_xmit(struct sk_buff *skb,
struct net_device *dev)
{ {
struct ali_ircc_cb *self; struct ali_ircc_cb *self;
unsigned long flags; unsigned long flags;
...@@ -1957,7 +1960,8 @@ static int ali_ircc_dma_receive_complete(struct ali_ircc_cb *self) ...@@ -1957,7 +1960,8 @@ static int ali_ircc_dma_receive_complete(struct ali_ircc_cb *self)
* Transmit the frame! * Transmit the frame!
* *
*/ */
static int ali_ircc_sir_hard_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t ali_ircc_sir_hard_xmit(struct sk_buff *skb,
struct net_device *dev)
{ {
struct ali_ircc_cb *self; struct ali_ircc_cb *self;
unsigned long flags; unsigned long flags;
......
...@@ -970,7 +970,7 @@ toshoboe_probe (struct toshoboe_cb *self) ...@@ -970,7 +970,7 @@ toshoboe_probe (struct toshoboe_cb *self)
/* Netdev style code */ /* Netdev style code */
/* Transmit something */ /* Transmit something */
static int static netdev_tx_t
toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev) toshoboe_hard_xmit (struct sk_buff *skb, struct net_device *dev)
{ {
struct toshoboe_cb *self; struct toshoboe_cb *self;
......
...@@ -111,7 +111,8 @@ static void irda_usb_init_qos(struct irda_usb_cb *self) ; ...@@ -111,7 +111,8 @@ static void irda_usb_init_qos(struct irda_usb_cb *self) ;
static struct irda_class_desc *irda_usb_find_class_desc(struct usb_interface *intf); static struct irda_class_desc *irda_usb_find_class_desc(struct usb_interface *intf);
static void irda_usb_disconnect(struct usb_interface *intf); static void irda_usb_disconnect(struct usb_interface *intf);
static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self); static void irda_usb_change_speed_xbofs(struct irda_usb_cb *self);
static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb,
struct net_device *dev);
static int irda_usb_open(struct irda_usb_cb *self); static int irda_usb_open(struct irda_usb_cb *self);
static void irda_usb_close(struct irda_usb_cb *self); static void irda_usb_close(struct irda_usb_cb *self);
static void speed_bulk_callback(struct urb *urb); static void speed_bulk_callback(struct urb *urb);
...@@ -381,7 +382,8 @@ static void speed_bulk_callback(struct urb *urb) ...@@ -381,7 +382,8 @@ static void speed_bulk_callback(struct urb *urb)
/* /*
* Send an IrDA frame to the USB dongle (for transmission) * Send an IrDA frame to the USB dongle (for transmission)
*/ */
static int irda_usb_hard_xmit(struct sk_buff *skb, struct net_device *netdev) static netdev_tx_t irda_usb_hard_xmit(struct sk_buff *skb,
struct net_device *netdev)
{ {
struct irda_usb_cb *self = netdev_priv(netdev); struct irda_usb_cb *self = netdev_priv(netdev);
struct urb *urb = self->tx_urb; struct urb *urb = self->tx_urb;
......
...@@ -150,7 +150,8 @@ static void kingsun_send_irq(struct urb *urb) ...@@ -150,7 +150,8 @@ static void kingsun_send_irq(struct urb *urb)
/* /*
* Called from net/core when new frame is available. * Called from net/core when new frame is available.
*/ */
static int kingsun_hard_xmit(struct sk_buff *skb, struct net_device *netdev) static netdev_tx_t kingsun_hard_xmit(struct sk_buff *skb,
struct net_device *netdev)
{ {
struct kingsun_cb *kingsun; struct kingsun_cb *kingsun;
int wraplen; int wraplen;
......
...@@ -385,7 +385,8 @@ static void ks959_send_irq(struct urb *urb) ...@@ -385,7 +385,8 @@ static void ks959_send_irq(struct urb *urb)
/* /*
* Called from net/core when new frame is available. * Called from net/core when new frame is available.
*/ */
static int ks959_hard_xmit(struct sk_buff *skb, struct net_device *netdev) static netdev_tx_t ks959_hard_xmit(struct sk_buff *skb,
struct net_device *netdev)
{ {
struct ks959_cb *kingsun; struct ks959_cb *kingsun;
unsigned int wraplen; unsigned int wraplen;
......
...@@ -298,7 +298,8 @@ static void ksdazzle_send_irq(struct urb *urb) ...@@ -298,7 +298,8 @@ static void ksdazzle_send_irq(struct urb *urb)
/* /*
* Called from net/core when new frame is available. * Called from net/core when new frame is available.
*/ */
static int ksdazzle_hard_xmit(struct sk_buff *skb, struct net_device *netdev) static netdev_tx_t ksdazzle_hard_xmit(struct sk_buff *skb,
struct net_device *netdev)
{ {
struct ksdazzle_cb *kingsun; struct ksdazzle_cb *kingsun;
unsigned int wraplen; unsigned int wraplen;
......
...@@ -817,7 +817,8 @@ static void mcs_send_irq(struct urb *urb) ...@@ -817,7 +817,8 @@ static void mcs_send_irq(struct urb *urb)
} }
/* Transmit callback funtion. */ /* Transmit callback funtion. */
static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *ndev) static netdev_tx_t mcs_hard_xmit(struct sk_buff *skb,
struct net_device *ndev)
{ {
unsigned long flags; unsigned long flags;
struct mcs_cb *mcs; struct mcs_cb *mcs;
......
...@@ -156,7 +156,8 @@ static int mcs_net_open(struct net_device *netdev); ...@@ -156,7 +156,8 @@ static int mcs_net_open(struct net_device *netdev);
static void mcs_receive_irq(struct urb *urb); static void mcs_receive_irq(struct urb *urb);
static void mcs_send_irq(struct urb *urb); static void mcs_send_irq(struct urb *urb);
static int mcs_hard_xmit(struct sk_buff *skb, struct net_device *netdev); static netdev_tx_t mcs_hard_xmit(struct sk_buff *skb,
struct net_device *netdev);
static int mcs_probe(struct usb_interface *intf, static int mcs_probe(struct usb_interface *intf,
const struct usb_device_id *id); const struct usb_device_id *id);
......
...@@ -173,8 +173,10 @@ static int nsc_ircc_setup(chipio_t *info); ...@@ -173,8 +173,10 @@ static int nsc_ircc_setup(chipio_t *info);
static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self); static void nsc_ircc_pio_receive(struct nsc_ircc_cb *self);
static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self); static int nsc_ircc_dma_receive(struct nsc_ircc_cb *self);
static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase); static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase);
static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t nsc_ircc_hard_xmit_sir(struct sk_buff *skb,
static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev); struct net_device *dev);
static netdev_tx_t nsc_ircc_hard_xmit_fir(struct sk_buff *skb,
struct net_device *dev);
static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size); static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size);
static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase); static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase);
static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 baud); static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 baud);
...@@ -1355,7 +1357,8 @@ static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 speed) ...@@ -1355,7 +1357,8 @@ static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 speed)
* Transmit the frame! * Transmit the frame!
* *
*/ */
static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t nsc_ircc_hard_xmit_sir(struct sk_buff *skb,
struct net_device *dev)
{ {
struct nsc_ircc_cb *self; struct nsc_ircc_cb *self;
unsigned long flags; unsigned long flags;
...@@ -1427,7 +1430,8 @@ static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) ...@@ -1427,7 +1430,8 @@ static int nsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev)
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t nsc_ircc_hard_xmit_fir(struct sk_buff *skb,
struct net_device *dev)
{ {
struct nsc_ircc_cb *self; struct nsc_ircc_cb *self;
unsigned long flags; unsigned long flags;
......
...@@ -582,7 +582,8 @@ EXPORT_SYMBOL(sirdev_receive); ...@@ -582,7 +582,8 @@ EXPORT_SYMBOL(sirdev_receive);
/* callbacks from network layer */ /* callbacks from network layer */
static int sirdev_hard_xmit(struct sk_buff *skb, struct net_device *ndev) static netdev_tx_t sirdev_hard_xmit(struct sk_buff *skb,
struct net_device *ndev)
{ {
struct sir_dev *dev = netdev_priv(ndev); struct sir_dev *dev = netdev_priv(ndev);
unsigned long flags; unsigned long flags;
......
...@@ -194,8 +194,10 @@ static int __exit smsc_ircc_close(struct smsc_ircc_cb *self); ...@@ -194,8 +194,10 @@ static int __exit smsc_ircc_close(struct smsc_ircc_cb *self);
static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self); static int smsc_ircc_dma_receive(struct smsc_ircc_cb *self);
static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self); static void smsc_ircc_dma_receive_complete(struct smsc_ircc_cb *self);
static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self); static void smsc_ircc_sir_receive(struct smsc_ircc_cb *self);
static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t smsc_ircc_hard_xmit_sir(struct sk_buff *skb,
static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev); struct net_device *dev);
static netdev_tx_t smsc_ircc_hard_xmit_fir(struct sk_buff *skb,
struct net_device *dev);
static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs); static void smsc_ircc_dma_xmit(struct smsc_ircc_cb *self, int bofs);
static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self); static void smsc_ircc_dma_xmit_complete(struct smsc_ircc_cb *self);
static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed); static void smsc_ircc_change_speed(struct smsc_ircc_cb *self, u32 speed);
...@@ -486,7 +488,8 @@ static int __init smsc_ircc_init(void) ...@@ -486,7 +488,8 @@ static int __init smsc_ircc_init(void)
return ret; return ret;
} }
static int smsc_ircc_net_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t smsc_ircc_net_xmit(struct sk_buff *skb,
struct net_device *dev)
{ {
struct smsc_ircc_cb *self = netdev_priv(dev); struct smsc_ircc_cb *self = netdev_priv(dev);
...@@ -878,7 +881,8 @@ static void smsc_ircc_timeout(struct net_device *dev) ...@@ -878,7 +881,8 @@ static void smsc_ircc_timeout(struct net_device *dev)
* waits until the next transmit interrupt, and continues until the * waits until the next transmit interrupt, and continues until the
* frame is transmitted. * frame is transmitted.
*/ */
static int smsc_ircc_hard_xmit_sir(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t smsc_ircc_hard_xmit_sir(struct sk_buff *skb,
struct net_device *dev)
{ {
struct smsc_ircc_cb *self; struct smsc_ircc_cb *self;
unsigned long flags; unsigned long flags;
...@@ -1183,7 +1187,8 @@ static void smsc_ircc_set_sir_speed(struct smsc_ircc_cb *self, __u32 speed) ...@@ -1183,7 +1187,8 @@ static void smsc_ircc_set_sir_speed(struct smsc_ircc_cb *self, __u32 speed)
* Transmit the frame! * Transmit the frame!
* *
*/ */
static int smsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t smsc_ircc_hard_xmit_fir(struct sk_buff *skb,
struct net_device *dev)
{ {
struct smsc_ircc_cb *self; struct smsc_ircc_cb *self;
unsigned long flags; unsigned long flags;
......
...@@ -560,7 +560,8 @@ static int change_speed(struct stir_cb *stir, unsigned speed) ...@@ -560,7 +560,8 @@ static int change_speed(struct stir_cb *stir, unsigned speed)
/* /*
* Called from net/core when new frame is available. * Called from net/core when new frame is available.
*/ */
static int stir_hard_xmit(struct sk_buff *skb, struct net_device *netdev) static netdev_tx_t stir_hard_xmit(struct sk_buff *skb,
struct net_device *netdev)
{ {
struct stir_cb *stir = netdev_priv(netdev); struct stir_cb *stir = netdev_priv(netdev);
......
...@@ -87,9 +87,9 @@ static int via_ircc_close(struct via_ircc_cb *self); ...@@ -87,9 +87,9 @@ static int via_ircc_close(struct via_ircc_cb *self);
static int via_ircc_dma_receive(struct via_ircc_cb *self); static int via_ircc_dma_receive(struct via_ircc_cb *self);
static int via_ircc_dma_receive_complete(struct via_ircc_cb *self, static int via_ircc_dma_receive_complete(struct via_ircc_cb *self,
int iobase); int iobase);
static int via_ircc_hard_xmit_sir(struct sk_buff *skb, static netdev_tx_t via_ircc_hard_xmit_sir(struct sk_buff *skb,
struct net_device *dev); struct net_device *dev);
static int via_ircc_hard_xmit_fir(struct sk_buff *skb, static netdev_tx_t via_ircc_hard_xmit_fir(struct sk_buff *skb,
struct net_device *dev); struct net_device *dev);
static void via_hw_init(struct via_ircc_cb *self); static void via_hw_init(struct via_ircc_cb *self);
static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud); static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 baud);
...@@ -823,7 +823,7 @@ static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 speed) ...@@ -823,7 +823,7 @@ static void via_ircc_change_speed(struct via_ircc_cb *self, __u32 speed)
* Transmit the frame! * Transmit the frame!
* *
*/ */
static int via_ircc_hard_xmit_sir(struct sk_buff *skb, static netdev_tx_t via_ircc_hard_xmit_sir(struct sk_buff *skb,
struct net_device *dev) struct net_device *dev)
{ {
struct via_ircc_cb *self; struct via_ircc_cb *self;
...@@ -895,7 +895,7 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb, ...@@ -895,7 +895,7 @@ static int via_ircc_hard_xmit_sir(struct sk_buff *skb,
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
static int via_ircc_hard_xmit_fir(struct sk_buff *skb, static netdev_tx_t via_ircc_hard_xmit_fir(struct sk_buff *skb,
struct net_device *dev) struct net_device *dev)
{ {
struct via_ircc_cb *self; struct via_ircc_cb *self;
......
...@@ -854,7 +854,8 @@ static int vlsi_set_baud(vlsi_irda_dev_t *idev, unsigned iobase) ...@@ -854,7 +854,8 @@ static int vlsi_set_baud(vlsi_irda_dev_t *idev, unsigned iobase)
return ret; return ret;
} }
static int vlsi_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) static netdev_tx_t vlsi_hard_start_xmit(struct sk_buff *skb,
struct net_device *ndev)
{ {
vlsi_irda_dev_t *idev = netdev_priv(ndev); vlsi_irda_dev_t *idev = netdev_priv(ndev);
struct vlsi_ring *r = idev->tx_ring; struct vlsi_ring *r = idev->tx_ring;
......
...@@ -93,7 +93,8 @@ static int w83977af_close(struct w83977af_ir *self); ...@@ -93,7 +93,8 @@ static int w83977af_close(struct w83977af_ir *self);
static int w83977af_probe(int iobase, int irq, int dma); static int w83977af_probe(int iobase, int irq, int dma);
static int w83977af_dma_receive(struct w83977af_ir *self); static int w83977af_dma_receive(struct w83977af_ir *self);
static int w83977af_dma_receive_complete(struct w83977af_ir *self); static int w83977af_dma_receive_complete(struct w83977af_ir *self);
static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb,
struct net_device *dev);
static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size); static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size);
static void w83977af_dma_write(struct w83977af_ir *self, int iobase); static void w83977af_dma_write(struct w83977af_ir *self, int iobase);
static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed); static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed);
...@@ -490,7 +491,8 @@ static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed) ...@@ -490,7 +491,8 @@ static void w83977af_change_speed(struct w83977af_ir *self, __u32 speed)
* Sets up a DMA transfer to send the current frame. * Sets up a DMA transfer to send the current frame.
* *
*/ */
static int w83977af_hard_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t w83977af_hard_xmit(struct sk_buff *skb,
struct net_device *dev)
{ {
struct w83977af_ir *self; struct w83977af_ir *self;
__s32 speed; __s32 speed;
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
static int irlan_eth_open(struct net_device *dev); static int irlan_eth_open(struct net_device *dev);
static int irlan_eth_close(struct net_device *dev); static int irlan_eth_close(struct net_device *dev);
static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev); static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
struct net_device *dev);
static void irlan_eth_set_multicast_list( struct net_device *dev); static void irlan_eth_set_multicast_list( struct net_device *dev);
static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev); static struct net_device_stats *irlan_eth_get_stats(struct net_device *dev);
...@@ -162,7 +163,8 @@ static int irlan_eth_close(struct net_device *dev) ...@@ -162,7 +163,8 @@ static int irlan_eth_close(struct net_device *dev)
* Transmits ethernet frames over IrDA link. * Transmits ethernet frames over IrDA link.
* *
*/ */
static int irlan_eth_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t irlan_eth_xmit(struct sk_buff *skb,
struct net_device *dev)
{ {
struct irlan_cb *self = netdev_priv(dev); struct irlan_cb *self = netdev_priv(dev);
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment