struct sk_buff *skb = urb->context; struct net_device *netdev = skb->dev;
usb_fill_bulk_urb(priv->tx_urb, priv->udev, priv->tx_pipe, skb->data, skb->len, jp1081b_tx_complete, skb); Jp1081b Usb Lan Driver 21
static int jp1081b_init_mac(struct net_device *netdev) USB_RECIP_DEVICE, 0x00, 0x01, mac_addr, 6, USB_CTRL_TIMEOUT); struct sk_buff *skb = urb->
static int jp1081b_stop(struct net_device *netdev) struct net_device *netdev = skb->
netdev->stats.tx_packets++; netdev->stats.tx_bytes += skb->len; dev_kfree_skb_irq(skb); netif_wake_queue(netdev);
static int jp1081b_open(struct net_device *netdev)
#define USB_BULK_IN 0x81 #define USB_BULK_OUT 0x02 #define USB_CTRL_TIMEOUT 1000