From c0ae04040277bce6f4e5166196992f9c876e22c9 Mon Sep 17 00:00:00 2001 From: Marc Balmer Date: Thu, 14 Jun 2007 12:58:10 +0000 Subject: Move the mstohz macro out of ubs_port.h and to the three places where it is used. ok jsg. --- sys/dev/usb/ohci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/ohci.c') 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. -- cgit v1.2.3