summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2007-09-22 09:57:41 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2007-09-22 09:57:41 +0000
commit4d5f4442c51a6c709703b7cc56b5fd143a46ec69 (patch)
tree3c03849038fc9e4aa527326b6d63a5e6d88e6c6c /sys/dev
parent2b06a9b9fda98edfa12a5f5d052640501c31862c (diff)
replace even more ctob and btoc with ptoa and atop respectively plus
uvm_extern.h where needed
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/oosiopvar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ic/oosiopvar.h b/sys/dev/ic/oosiopvar.h
index f6a9ade3cd8..6d670aeabd7 100644
--- a/sys/dev/ic/oosiopvar.h
+++ b/sys/dev/ic/oosiopvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: oosiopvar.h,v 1.2 2004/03/14 12:23:49 miod Exp $ */
+/* $OpenBSD: oosiopvar.h,v 1.3 2007/09/22 09:57:40 martin Exp $ */
/* $NetBSD: oosiopvar.h,v 1.2 2003/05/03 18:11:23 wiz Exp $ */
/*
@@ -27,10 +27,12 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <uvm/uvm_extern.h>
+
#define OOSIOP_NTGT 8 /* Max targets */
#define OOSIOP_NCB 32 /* Initial command buffers */
-#define OOSIOP_NSG (MIN(btoc(MAXPHYS) + 1, 32)) /* Max S/G operation */
-#define OOSIOP_MAX_XFER ctob(OOSIOP_NSG - 1)
+#define OOSIOP_NSG (MIN(atop(MAXPHYS) + 1, 32)) /* Max S/G operation */
+#define OOSIOP_MAX_XFER ptoa(OOSIOP_NSG - 1)
struct oosiop_xfer {
/* script for scatter/gather DMA (move*nsg+jump) */