summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-05-23 18:07:20 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-05-23 18:07:20 +0000
commitc51e18a2162a808d87b155cc59b2815d28544d48 (patch)
treeee4fd84fc1c52007eba0cf2481e4e30ce3a619eb /sys/arch/hppa/include
parent1da46f5617e998a3acb6e018b059afce970f05c6 (diff)
Add proper bus_space_vaddr() implementation.
ok miod@
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r--sys/arch/hppa/include/bus.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/hppa/include/bus.h b/sys/arch/hppa/include/bus.h
index 1f7da0e0745..68810683dbd 100644
--- a/sys/arch/hppa/include/bus.h
+++ b/sys/arch/hppa/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.24 2005/01/09 06:58:51 mickey Exp $ */
+/* $OpenBSD: bus.h,v 1.25 2007/05/23 18:07:19 kettenis Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -56,6 +56,7 @@ struct hppa_bus_space_tag {
void (*hbt_free)(void *, bus_space_handle_t, bus_size_t);
void (*hbt_barrier)(void *v, bus_space_handle_t h,
bus_size_t o, bus_size_t l, int op);
+ void *(*hbt_vaddr)(void *v, bus_space_handle_t h);
u_int8_t (*hbt_r1)(void *, bus_space_handle_t, bus_size_t);
u_int16_t (*hbt_r2)(void *, bus_space_handle_t, bus_size_t);
@@ -287,8 +288,8 @@ extern const struct hppa_bus_space_tag hppa_bustag;
#define bus_space_barrier(t,h,o,l,op) \
((t)->hbt_barrier((t)->hbt_cookie, (h), (o), (l), (op)))
-#define bus_space_vaddr(t,h,o,l,op) \
- ((t)->hbt_vaddr((t)->hbt_cookie, (h), (o), (l), (op)))
+#define bus_space_vaddr(t,h) \
+ ((t)->hbt_vaddr((t)->hbt_cookie, (h)))
#define BUS_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */
#define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */