summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-03-29 00:58:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-03-29 00:58:51 +0000
commitfea96a54343dad5185083989277b0f94907b7527 (patch)
tree234e6c41b3fdf5d7990e47edc22367228554658a /sys
parent93ec258088a91bab557da48eb56045cf442f45e3 (diff)
bus_space_vaddr and related definitions (needs actual implementations)
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/bus.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/bus.h b/sys/arch/hppa/include/bus.h
index b5a0377eeff..705a1c15eb2 100644
--- a/sys/arch/hppa/include/bus.h
+++ b/sys/arch/hppa/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.19 2002/03/14 01:26:32 millert Exp $ */
+/* $OpenBSD: bus.h,v 1.20 2003/03/29 00:58:50 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -166,6 +166,12 @@ struct hppa_bus_space_tag {
typedef const struct hppa_bus_space_tag *bus_space_tag_t;
extern const struct hppa_bus_space_tag hppa_bustag;
+/* flags for bus space map functions */
+#define BUS_SPACE_MAP_CACHEABLE 0x0001
+#define BUS_SPACE_MAP_LINEAR 0x0002
+#define BUS_SPACE_MAP_READONLY 0x0004
+#define BUS_SPACE_MAP_PREFETCHABLE 0x0008
+
/* bus access routines */
#define bus_space_map(t,a,c,ca,hp) \
@@ -285,6 +291,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_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */
#define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */