diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 19:35:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 19:41:01 -0700 |
commit | 777baa4711c6b8373f4e03a3a558d44a6b046d7a (patch) | |
tree | 5c6f4f07f1d72433f906437369e8ab81011b5870 /include/linux/usb | |
parent | 805aaa29fa3c5afb26cb42f440f40d3f7f5c4bdc (diff) | |
download | op-kernel-dev-777baa4711c6b8373f4e03a3a558d44a6b046d7a.zip op-kernel-dev-777baa4711c6b8373f4e03a3a558d44a6b046d7a.tar.gz |
usbnet: support net_device_ops
Use net_device_ops for usbnet device, and export for use
by other derived drivers.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/usbnet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index 7d38222..36fabb9 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h @@ -176,6 +176,11 @@ struct skb_data { /* skb->cb is one of these */ size_t length; }; +extern int usbnet_open (struct net_device *net); +extern int usbnet_stop (struct net_device *net); +extern int usbnet_start_xmit (struct sk_buff *skb, struct net_device *net); +extern void usbnet_tx_timeout (struct net_device *net); +extern int usbnet_change_mtu (struct net_device *net, int new_mtu); extern int usbnet_get_endpoints(struct usbnet *, struct usb_interface *); extern void usbnet_defer_kevent (struct usbnet *, int); |