summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorhmp <hmp@FreeBSD.org>2003-05-30 20:40:33 +0000
committerhmp <hmp@FreeBSD.org>2003-05-30 20:40:33 +0000
commitd48f3818ad991429ac22904f641e2aaa48eeb89a (patch)
tree9a66557b1ba65bdc8038406307415ee4fdf97d21 /sys/ia64
parentc264d8171dad13e2bbd26da5482a9e13a7d71f94 (diff)
downloadFreeBSD-src-d48f3818ad991429ac22904f641e2aaa48eeb89a.zip
FreeBSD-src-d48f3818ad991429ac22904f641e2aaa48eeb89a.tar.gz
Rename BUS_DMAMEM_NOSYNC to BUS_DMA_COHERENT.
The current name is confusing, because it indicates to the client that a bus_dmamap_sync() operation is not necessary when the flag is specified, which is wrong. The main purpose of this flag is to hint the underlying architecture that DMA memory should be mapped in a coherent way, but the architecture can ignore it. But if the architecture does supports coherent mapping of memory, then it makes bus_dmamap_sync() calls cheap. This flag is the same as the one in NetBSD's Bus DMA. Reviewed by: gibbs, scottl, des (implicitly) Approved by: re@ (jhb)
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/bus.h b/sys/ia64/include/bus.h
index c060a4b..bc15d08 100644
--- a/sys/ia64/include/bus.h
+++ b/sys/ia64/include/bus.h
@@ -851,7 +851,7 @@ bus_space_copy_region_8(bus_space_tag_t bst, bus_space_handle_t bsh1,
#define BUS_DMA_WAITOK 0x00 /* safe to sleep (pseudo-flag) */
#define BUS_DMA_NOWAIT 0x01 /* not safe to sleep */
#define BUS_DMA_ALLOCNOW 0x02 /* perform resource allocation now */
-#define BUS_DMAMEM_NOSYNC 0x04 /* map memory to not require sync */
+#define BUS_DMA_COHERENT 0x04 /* hint: map memory in a coherent way */
#define BUS_DMA_ISA 0x10 /* map memory for ISA dma */
#define BUS_DMA_BUS2 0x20 /* placeholders for bus functions... */
#define BUS_DMA_BUS3 0x40
OpenPOWER on IntegriCloud