summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ohci.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 12:58:10 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-14 12:58:10 +0000
commitc0ae04040277bce6f4e5166196992f9c876e22c9 (patch)
treecb08304965d1a2fea19200bada144fda23f9a852 /sys/dev/usb/ohci.c
parent82b5c3e51fffd2cde145ec6a9a9c23b297698539 (diff)
Move the mstohz macro out of ubs_port.h and to the three places where it is
used. ok jsg.
Diffstat (limited to 'sys/dev/usb/ohci.c')
-rw-r--r--sys/dev/usb/ohci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 64328cfd54f..1e30d54c019 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ohci.c,v 1.82 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: ohci.c,v 1.83 2007/06/14 12:58:09 mbalmer Exp $ */
/* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
@@ -81,6 +81,8 @@ int ohcidebug = 0;
#define DPRINTFN(n,x)
#endif
+#define mstohz(ms) ((ms) * hz / 1000)
+
/*
* The OHCI controller is little endian, so on big endian machines
* the data stored in memory needs to be swapped.