aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/net/usbnet.h
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2005-08-31 12:53:10 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 19:28:31 -0400
commit2e55cc7210fef90f88201e860d8767594974574e (patch)
tree6e2a9a9a5a974a5ac6f1b76c36a4aab01d8d2fe5 /drivers/usb/net/usbnet.h
parent38bde1d4699af45e6a4167a72e2e512e45c35ca8 (diff)
[PATCH] USB: usbnet (3/9) module for ASIX Ethernet adapters
This patch moves the ASIX AX8817x driver into its own file, just using the "usbnet" infrastructure as a utility library. - As with "cdc_subset" this involved minor Kconfig/kbuild tweaks, moving code from one file to another, and exporting a few functions. - This includes updates from Jamie Painter to add (and use) a new hook to handle the different maximum transfer sizes for rx and tx sides. - Also from Jamie, some bugfixes: * MDIO byteorder (to address some PPC media negotiation problems); * Force alignment at key spots when using ax88772 framing (on some embedded hardware, the network stack will break otherwise); * Address some link reset problems. It also makes this driver use the standard (5 seconds vs half second) control timeouts used elsewhere in USB; and wraps a few lines before the 80th column (which previously needed it). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net/usbnet.h')
-rw-r--r--drivers/usb/net/usbnet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/net/usbnet.h b/drivers/usb/net/usbnet.h
index d903b4617563..21b5feb54fc0 100644
--- a/drivers/usb/net/usbnet.h
+++ b/drivers/usb/net/usbnet.h
@@ -44,6 +44,7 @@ struct usbnet {
44 unsigned long data [5]; 44 unsigned long data [5];
45 u32 xid; 45 u32 xid;
46 u32 hard_mtu; /* count any extra framing */ 46 u32 hard_mtu; /* count any extra framing */
47 size_t rx_urb_size; /* size for rx urbs */
47 struct mii_if_info mii; 48 struct mii_if_info mii;
48 49
49 /* various kinds of pending driver work */ 50 /* various kinds of pending driver work */
@@ -140,6 +141,13 @@ struct skb_data { /* skb->cb is one of these */
140}; 141};
141 142
142 143
144extern int usbnet_get_endpoints(struct usbnet *, struct usb_interface *);
145extern void usbnet_defer_kevent (struct usbnet *, int);
146extern void usbnet_skb_return (struct usbnet *, struct sk_buff *);
147
148extern u32 usbnet_get_msglevel (struct net_device *);
149extern void usbnet_set_msglevel (struct net_device *, u32);
150extern void usbnet_get_drvinfo (struct net_device *, struct ethtool_drvinfo *);
143 151
144/* messaging support includes the interface name, so it must not be 152/* messaging support includes the interface name, so it must not be
145 * used before it has one ... notably, in minidriver bind() calls. 153 * used before it has one ... notably, in minidriver bind() calls.