summaryrefslogtreecommitdiff
path: root/sys/arch/atari/include
diff options
context:
space:
mode:
authorleo <leo@NetBSD.org>2001-05-28 07:16:11 +0000
committerleo <leo@NetBSD.org>2001-05-28 07:16:11 +0000
commit78dbcfe665d7d1cefde9800393fec0d2bc9f3280 (patch)
tree1c453a27cf71bea33cb4a7ea2e457b1a1a285638 /sys/arch/atari/include
parentbe288018e282600fe1f001b1facbaf1974b1d5a1 (diff)
Add bus_space_vaddr().
Diffstat (limited to 'sys/arch/atari/include')
-rw-r--r--sys/arch/atari/include/bus.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/atari/include/bus.h b/sys/arch/atari/include/bus.h
index 77729b53560..784b65b8273 100644
--- a/sys/arch/atari/include/bus.h
+++ b/sys/arch/atari/include/bus.h
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.25 2001/03/09 20:55:47 leo Exp $ */
+/* $NetBSD: bus.h,v 1.26 2001/05/28 07:16:11 leo Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -506,6 +506,15 @@ struct atari_bus_space {
#define bus_space_copy_region_8(t, h1, o1, h2, o2, c) \
__abs_copy(8, (t), (h1), (o1), (h2), (o2), (c))
+/*
+ * void *bus_space_vaddr __P((bus_space_tag_t, bus_space_handle_t));
+ *
+ * Get the kernel virtual address for the mapped bus space.
+ * Only allowed for regions mapped with BUS_SPACE_MAP_LINEAR.
+ * (XXX not enforced)
+ */
+#define bus_space_vaddr(t, h) ((void)(t), (void *)(h))
+
#define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t)
/*