aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_if.m
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2000-04-08 14:17:18 +0000
committerDoug Rabson <dfr@FreeBSD.org>2000-04-08 14:17:18 +0000
commitf7b776917236d24a4ac7aaa19b3595abdd8411f9 (patch)
treeca88dc81a74fcf14251e5739f0c749c870d15692 /sys/dev/usb/usb_if.m
parentc685012659605ce74be13f8080db20a5482cd1be (diff)
downloadsrc-f7b776917236d24a4ac7aaa19b3595abdd8411f9.tar.gz
src-f7b776917236d24a4ac7aaa19b3595abdd8411f9.zip
* Factor out the object system from new-bus so that it can be used by
non-device code. * Re-implement the method dispatch to improve efficiency. The new system takes about 40ns for a method dispatch on a 300Mhz PII which is only 10ns slower than a direct function call on the same hardware. This changes the new-bus ABI slightly so make sure you re-compile any driver modules which you use.
Notes
Notes: svn path=/head/; revision=59093
Diffstat (limited to 'sys/dev/usb/usb_if.m')
-rw-r--r--sys/dev/usb/usb_if.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_if.m b/sys/dev/usb/usb_if.m
index e497817de526..c1b27c8a4bec 100644
--- a/sys/dev/usb/usb_if.m
+++ b/sys/dev/usb/usb_if.m
@@ -31,6 +31,8 @@
# USB interface description
#
+#include <sys/bus.h>
+
INTERFACE usb;
# The device should start probing for new drivers again