summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2012-06-10 10:20:03 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2012-06-10 10:20:03 +0000
commit59168cf6f14fcdb4ad5df20155506f27584e4971 (patch)
tree6402f5204c940c7e6a86cb6bdf80f029ead4ec76 /sys/dev/usb/usb.h
parent0d9401ff7b4a2fc48127bccb88d7a27244f7def6 (diff)
Remove leftovers from the "usb event" removal.
ok jsg@, fgsch@
Diffstat (limited to 'sys/dev/usb/usb.h')
-rw-r--r--sys/dev/usb/usb.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index 07a631cb7eb..c9e2e774c77 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.h,v 1.39 2012/01/08 13:12:38 miod Exp $ */
+/* $OpenBSD: usb.h,v 1.40 2012/06/10 10:20:02 mpi Exp $ */
/* $NetBSD: usb.h,v 1.69 2002/09/22 23:20:50 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $ */
@@ -648,29 +648,6 @@ struct usb_device_stats {
u_long uds_requests[4]; /* indexed by transfer type UE_* */
};
-/* Events that can be read from /dev/usb */
-struct usb_event {
- int ue_type;
-#define USB_EVENT_CTRLR_ATTACH 1
-#define USB_EVENT_CTRLR_DETACH 2
-#define USB_EVENT_DEVICE_ATTACH 3
-#define USB_EVENT_DEVICE_DETACH 4
-#define USB_EVENT_DRIVER_ATTACH 5
-#define USB_EVENT_DRIVER_DETACH 6
-#define USB_EVENT_IS_ATTACH(n) ((n) == USB_EVENT_CTRLR_ATTACH || (n) == USB_EVENT_DEVICE_ATTACH || (n) == USB_EVENT_DRIVER_ATTACH)
-#define USB_EVENT_IS_DETACH(n) ((n) == USB_EVENT_CTRLR_DETACH || (n) == USB_EVENT_DEVICE_DETACH || (n) == USB_EVENT_DRIVER_DETACH)
- struct timespec ue_time;
- union {
- struct {
- int ue_bus;
- } ue_ctrlr;
- struct usb_device_info ue_device;
- struct {
- char ue_devname[16];
- } ue_driver;
- } u;
-};
-
/* USB controller */
#define USB_REQUEST _IOWR('U', 1, struct usb_ctl_request)
#define USB_SETDEBUG _IOW ('U', 2, unsigned int)