summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-03-07 18:08:09 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-03-07 18:08:09 +0000
commit2afe5d52c97872711a9e4d37486cda176ec8cd45 (patch)
tree37b952aa0b88672624bf358ec5bed4014c4cf289 /sys/arch/hppa
parentd4daec323e15eacdfee711f69ae5c11d6fa99b79 (diff)
Clean up BUS_DMA_* flags, and make sure all arch's define:
BUS_DMA_READ, BUS_DMA_WRITE, and BUS_DMA_STREAMING
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/include/bus.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/sys/arch/hppa/include/bus.h b/sys/arch/hppa/include/bus.h
index 0e069b60dc9..ab30eddd3d0 100644
--- a/sys/arch/hppa/include/bus.h
+++ b/sys/arch/hppa/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.17 2002/02/16 03:13:32 mickey Exp $ */
+/* $OpenBSD: bus.h,v 1.18 2002/03/07 18:08:08 jason Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -286,11 +286,18 @@ 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_DMA_WAITOK 0x00
-#define BUS_DMA_NOWAIT 0x01
-#define BUS_DMA_ALLOCNOW 0x02
-#define BUS_DMA_COHERENT 0x04
-#define BUS_DMAMEM_NOSYNC 0x10
+#define BUS_DMA_WAITOK 0x000 /* safe to sleep (pseudo-flag) */
+#define BUS_DMA_NOWAIT 0x001 /* not safe to sleep */
+#define BUS_DMA_ALLOCNOW 0x002 /* perform resource allocation now */
+#define BUS_DMA_COHERENT 0x004 /* hint: map memory DMA coherent */
+#define BUS_DMAMEM_NOSYNC 0x010
+#define BUS_DMA_BUS1 0x020 /* placeholders for bus functions... */
+#define BUS_DMA_BUS2 0x040
+#define BUS_DMA_BUS3 0x080
+#define BUS_DMA_BUS4 0x100
+#define BUS_DMA_STREAMING 0x200 /* hint: sequential, unidirectional */
+#define BUS_DMA_READ 0x400 /* mapping is device -> memory only */
+#define BUS_DMA_WRITE 0x800 /* mapping is memory -> device only */
/* Forwards needed by prototypes below. */
struct mbuf;