Jp1081b Usb Lan Driver 21 〈Fresh〉

struct jp1081b_private *priv = netdev_priv(netdev);

all: $(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules

// Allocate buffers and URBs priv->rx_buffer = kmalloc(2048, GFP_KERNEL); priv->tx_buffer = kmalloc(2048, GFP_KERNEL); priv->rx_urb = usb_alloc_urb(0, GFP_KERNEL); priv->tx_urb = usb_alloc_urb(0, GFP_KERNEL); if (!priv->rx_buffer Jp1081b Usb Lan Driver 21

#endif #include <linux/module.h> #include <linux/kernel.h> #include <linux/usb.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/ethtool.h> #include <linux/skbuff.h> #include "jp1081b.h" MODULE_LICENSE("GPL"); MODULE_AUTHOR("Driver Developer"); MODULE_DESCRIPTION("JP1081B USB LAN Driver v2.1"); MODULE_VERSION("2.1");

static void jp1081b_rx_complete(struct urb *urb) struct jp1081b_private *priv = netdev_priv(netdev)

static struct usb_driver jp1081b_driver = .name = "jp1081b", .id_table = jp1081b_table, .probe = jp1081b_probe, .disconnect = jp1081b_disconnect, ;

static const struct net_device_ops jp1081b_netdev_ops = .ndo_open = jp1081b_open, .ndo_stop = jp1081b_stop, .ndo_start_xmit = jp1081b_start_xmit, .ndo_set_mac_address = eth_mac_addr, ; rx_buffer = kmalloc(2048

static void jp1081b_tx_complete(struct urb *urb)

static void jp1081b_disconnect(struct usb_interface *intf)

struct usb_device *udev = interface_to_usbdev(intf); struct net_device *netdev; struct jp1081b_private *priv; int ret;

if (!netdev) return;

Reader Reviews
loading comments
Add a comment: (You need to login to post a comment)
Rate this title: