summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.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/uhci.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/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 26ebe968c72..afb00e99c6e 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.58 2007/06/12 16:26:36 mbalmer Exp $ */
+/* $OpenBSD: uhci.c,v 1.59 2007/06/14 12:58:09 mbalmer Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -89,6 +89,8 @@ int uhcinoloop = 0;
#define DPRINTFN(n,x)
#endif
+#define mstohz(ms) ((ms) * hz / 1000)
+
/*
* The UHCI controller is little endian, so on big endian machines
* the data stored in memory needs to be swapped.