hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/usb/usbnet.h
....@@ -30,7 +30,7 @@
3030 /* housekeeping */
3131 struct usb_device *udev;
3232 struct usb_interface *intf;
33
- struct driver_info *driver_info;
33
+ const struct driver_info *driver_info;
3434 const char *driver_name;
3535 void *driver_priv;
3636 wait_queue_head_t wait;
....@@ -85,8 +85,6 @@
8585 # define EVENT_LINK_CHANGE 11
8686 # define EVENT_SET_RX_MODE 12
8787 # define EVENT_NO_IP_ALIGN 13
88
- u32 rx_speed; /* in bps - NOT Mbps */
89
- u32 tx_speed; /* in bps - NOT Mbps */
9088
9189 ANDROID_KABI_RESERVE(1);
9290 ANDROID_KABI_RESERVE(2);
....@@ -130,8 +128,6 @@
130128 #define FLAG_MULTI_PACKET 0x2000
131129 #define FLAG_RX_ASSEMBLE 0x4000 /* rx packets may span >1 frames */
132130 #define FLAG_NOARP 0x8000 /* device can't do ARP */
133
-
134
-#define FLAG_LTE 0x10000 /* use "lte%d" names */
135131
136132 /* init device ... can sleep, or cause probe() failure */
137133 int (*bind)(struct usbnet *, struct usb_interface *);
....@@ -221,6 +217,7 @@
221217 struct usb_interface *data;
222218 };
223219
220
+extern void usbnet_cdc_update_filter(struct usbnet *dev);
224221 extern int usbnet_generic_cdc_bind(struct usbnet *, struct usb_interface *);
225222 extern int usbnet_ether_cdc_bind(struct usbnet *dev, struct usb_interface *intf);
226223 extern int usbnet_cdc_bind(struct usbnet *, struct usb_interface *);
....@@ -267,7 +264,7 @@
267264 extern int usbnet_stop(struct net_device *net);
268265 extern netdev_tx_t usbnet_start_xmit(struct sk_buff *skb,
269266 struct net_device *net);
270
-extern void usbnet_tx_timeout(struct net_device *net);
267
+extern void usbnet_tx_timeout(struct net_device *net, unsigned int txqueue);
271268 extern int usbnet_change_mtu(struct net_device *net, int new_mtu);
272269
273270 extern int usbnet_get_endpoints(struct usbnet *, struct usb_interface *);
....@@ -287,6 +284,7 @@
287284 extern u32 usbnet_get_link(struct net_device *net);
288285 extern u32 usbnet_get_msglevel(struct net_device *);
289286 extern void usbnet_set_msglevel(struct net_device *, u32);
287
+extern void usbnet_set_rx_mode(struct net_device *net);
290288 extern void usbnet_get_drvinfo(struct net_device *, struct ethtool_drvinfo *);
291289 extern int usbnet_nway_reset(struct net_device *net);
292290