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.
This commit is contained in:
mrg 2019-08-09 02:14:35 +00:00
parent d066f229b9
commit 1c9a69203e

View File

@ -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 */