Module Name:    src
Committed By:   mrg
Date:           Fri Aug  9 02:14:35 UTC 2019

Modified Files:
        src/sys/dev/usb: usbnet.h

Log Message:
ride 9.99.5 bump: add un_flags here.  many of the softc's only have
a flags member to control device-specific issues, and this means
they can use "struct usbnet" as their softc directly.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/usb/usbnet.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/usbnet.h
diff -u src/sys/dev/usb/usbnet.h:1.7 src/sys/dev/usb/usbnet.h:1.8
--- src/sys/dev/usb/usbnet.h:1.7	Fri Aug  9 01:17:33 2019
+++ src/sys/dev/usb/usbnet.h	Fri Aug  9 02:14:35 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: usbnet.h,v 1.7 2019/08/09 01:17:33 mrg Exp $	*/
+/*	$NetBSD: usbnet.h,v 1.8 2019/08/09 02:14:35 mrg Exp $	*/
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -192,6 +192,7 @@ struct usbnet {
 	device_t		un_dev;
 	struct usbd_interface	*un_iface;
 	struct usbd_device *	un_udev;
+
 	krndsource_t		un_rndsrc;
 	struct usbnet_ops	*un_ops;
 
@@ -207,6 +208,9 @@ struct usbnet {
 	struct callout		un_stat_ch;
 	int			un_if_flags;
 
+	/* This is for driver to use. */
+	unsigned		un_flags;
+
 	/*
 	 * - un_lock protects most of the structure
 	 * - un_miilock must be held to access this device's MII bus
@@ -350,6 +354,5 @@ int	usbnet_activate(device_t, devact_t);
 
 /* stop backend */
 void	usbnet_stop(struct usbnet *, struct ifnet *, int);
-void	usbnet_stop_locked(struct usbnet *, struct ifnet *, int);
 
 #endif /* _DEV_USB_USBNET_H */

Reply via email to