summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdivar.h
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2010-12-06 04:25:28 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2010-12-06 04:25:28 +0000
commit6f1809065a5ecadb4d890dd7e0d8d387acc5e608 (patch)
treefa332c907a8e5021b97dbd89a0dcc4c84349d3eb /sys/dev/usb/usbdivar.h
parent441fa3ce331bbaf030cb213296348b42f53cb05b (diff)
* add dying flag to struct usbd_device
* add usbd_deactivate(), which should be use to set the dying flag in struct usbd_device * add usbd_is_dying(), which can be used to check if either the device or the associated bus dying flag has been set * use usbd_is_dying() to check if the deivce or bus is dying before issuing transfers or requests
Diffstat (limited to 'sys/dev/usb/usbdivar.h')
-rw-r--r--sys/dev/usb/usbdivar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h
index b2a22a27a86..2ebdb9b9d9b 100644
--- a/sys/dev/usb/usbdivar.h
+++ b/sys/dev/usb/usbdivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdivar.h,v 1.39 2010/09/23 05:44:16 jakemsr Exp $ */
+/* $OpenBSD: usbdivar.h,v 1.40 2010/12/06 04:25:27 jakemsr Exp $ */
/* $NetBSD: usbdivar.h,v 1.70 2002/07/11 21:14:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */
@@ -125,6 +125,7 @@ struct usbd_bus {
struct usbd_device {
struct usbd_bus *bus; /* our controller */
struct usbd_pipe *default_pipe; /* pipe 0 */
+ u_int8_t dying; /* removed */
u_int8_t address; /* device address */
u_int8_t config; /* current configuration # */
u_int8_t depth; /* distance from root hub */