summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_port.h
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-10 10:15:36 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-10 10:15:36 +0000
commitba9346211f99b37c96aa619b9981b230c7b4a61d (patch)
treeccdeec5702822686e8702f14d705203c1db83ac3 /sys/dev/usb/usb_port.h
parente306807c0defd347a543fa24bbd4d248729fe129 (diff)
Remove definitions and usage of usb_callout and related macros. These macros
were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r--sys/dev/usb/usb_port.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 9e450fc3c14..0e830f536da 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_port.h,v 1.74 2007/06/10 08:02:16 mbalmer Exp $ */
+/* $OpenBSD: usb_port.h,v 1.75 2007/06/10 10:15:35 mbalmer Exp $ */
/* $NetBSD: usb_port.h,v 1.62 2003/02/15 18:33:30 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -98,17 +98,6 @@ typedef struct device *device_ptr_t;
u_int offs; \
} usb_dma_t
-typedef struct timeout usb_callout_t;
-#define usb_callout_init(h) timeout_set(&(h), NULL, NULL)
-#define usb_callout(h, t, f, d) \
- do { \
- timeout_del(&(h)); \
- timeout_set(&(h), (f), (d)); \
- timeout_add(&(h), (t)); \
- } while (0)
-#define usb_callout_pending(h) timeout_pending(&(h))
-#define usb_uncallout(h, f, d) timeout_del(&(h))
-
#define USB_DECLARE_DRIVER_CLASS(dname, devclass) \
int __CONCAT(dname,_match)(struct device *, void *, void *); \
void __CONCAT(dname,_attach)(struct device *, struct device *, void *); \