diff options
author | Arnd Bergmann <arnd@arndb.de> | 2006-10-08 18:08:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-10-17 17:46:32 -0400 |
commit | c41286fd42f3545513f8de9f61028120b6d38e89 (patch) | |
tree | 2dddcf5c7423c0db62a1f8752c002cf62080287b /drivers/usb/net/usbnet.h | |
parent | 2a36d7083438ccb607055abae633f39495a99947 (diff) |
usbnet: improve generic ethtool support
This adds generic support for the ethtool commands get_settings,
set_settings, get_link and nway_reset to usbnet. These are now
implemented using mii functions when a low-level driver supports
mdio_read/mdio_write and does not override the usbnet ethtool
commands with its own.
Currently, this applies to the asix and the mcs7830 drivers.
I have tested it on mcs7830.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David Hollis <dhollis@davehollis.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net/usbnet.h')
-rw-r--r-- | drivers/usb/net/usbnet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/net/usbnet.h b/drivers/usb/net/usbnet.h index c0746f0454af..743947c3fb83 100644 --- a/drivers/usb/net/usbnet.h +++ b/drivers/usb/net/usbnet.h | |||
@@ -168,9 +168,13 @@ extern void usbnet_defer_kevent (struct usbnet *, int); | |||
168 | extern void usbnet_skb_return (struct usbnet *, struct sk_buff *); | 168 | extern void usbnet_skb_return (struct usbnet *, struct sk_buff *); |
169 | extern void usbnet_unlink_rx_urbs(struct usbnet *); | 169 | extern void usbnet_unlink_rx_urbs(struct usbnet *); |
170 | 170 | ||
171 | extern int usbnet_get_settings (struct net_device *net, struct ethtool_cmd *cmd); | ||
172 | extern int usbnet_set_settings (struct net_device *net, struct ethtool_cmd *cmd); | ||
173 | extern u32 usbnet_get_link (struct net_device *net); | ||
171 | extern u32 usbnet_get_msglevel (struct net_device *); | 174 | extern u32 usbnet_get_msglevel (struct net_device *); |
172 | extern void usbnet_set_msglevel (struct net_device *, u32); | 175 | extern void usbnet_set_msglevel (struct net_device *, u32); |
173 | extern void usbnet_get_drvinfo (struct net_device *, struct ethtool_drvinfo *); | 176 | extern void usbnet_get_drvinfo (struct net_device *, struct ethtool_drvinfo *); |
177 | extern int usbnet_nway_reset(struct net_device *net); | ||
174 | 178 | ||
175 | /* messaging support includes the interface name, so it must not be | 179 | /* messaging support includes the interface name, so it must not be |
176 | * used before it has one ... notably, in minidriver bind() calls. | 180 | * used before it has one ... notably, in minidriver bind() calls. |