Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb ride 9.99.5 bump: add un_flags here. many of th...



details:   https://anonhg.NetBSD.org/src/rev/cd8bcef4f9a2
branches:  trunk
changeset: 463119:cd8bcef4f9a2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Aug 09 02:14:35 2019 +0000

description:
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.

diffstat:

 sys/dev/usb/usbnet.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r bf83131241f1 -r cd8bcef4f9a2 sys/dev/usb/usbnet.h
--- a/sys/dev/usb/usbnet.h      Fri Aug 09 01:17:33 2019 +0000
+++ b/sys/dev/usb/usbnet.h      Fri Aug 09 02:14:35 2019 +0000
@@ -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 @@
        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 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 @@
 
 /* stop backend */
 void   usbnet_stop(struct usbnet *, struct ifnet *, int);
-void   usbnet_stop_locked(struct usbnet *, struct ifnet *, int);
 
 #endif /* _DEV_USB_USBNET_H */



Home | Main Index | Thread Index | Old Index