summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/param.h
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2005-07-09 22:51:14 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2005-07-09 22:51:14 +0000
commita3e24ae25c49bd2c55b3271114cc95c11eee1146 (patch)
treead7b9bd3ac78eb731a1fc584f4fb6f77243429c5 /sys/arch/sparc64/include/param.h
parent19253c52801186cb965c463644848be350c06075 (diff)
Implement _bus_dmamem_mmap instead of just calling panic();
This is needed by bktr(4). ok mickey@ miod@
Diffstat (limited to 'sys/arch/sparc64/include/param.h')
-rw-r--r--sys/arch/sparc64/include/param.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/param.h b/sys/arch/sparc64/include/param.h
index f77b3241f2e..22b105e1833 100644
--- a/sys/arch/sparc64/include/param.h
+++ b/sys/arch/sparc64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.14 2004/08/06 22:31:31 mickey Exp $ */
+/* $OpenBSD: param.h,v 1.15 2005/07/09 22:51:13 robert Exp $ */
/* $NetBSD: param.h,v 1.25 2001/05/30 12:28:51 mrg Exp $ */
/*
@@ -215,6 +215,11 @@ extern int nbpg, pgofset, pgshift;
#define bdbtofsb(bn) ((bn) / (BLKDEV_IOSIZE / DEV_BSIZE))
/*
+ * Mach derived conversion macros
+ */
+#define sparc64_btop(x) ((unsigned long)(x) >> PGSHIFT)
+
+/*
* dvmamap manages a range of DVMA addresses intended to create double
* mappings of physical memory. In a way, `dvmamap' is a submap of the
* VM map `phys_map'. The difference is the use of the `resource map'