summaryrefslogtreecommitdiffstats
path: root/sys/i4b
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/i4b
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/i4b')
-rw-r--r--sys/i4b/layer1/itjc/i4b_itjc_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i4b/layer1/itjc/i4b_itjc_pci.c b/sys/i4b/layer1/itjc/i4b_itjc_pci.c
index bdb512e..e1028fe 100644
--- a/sys/i4b/layer1/itjc/i4b_itjc_pci.c
+++ b/sys/i4b/layer1/itjc/i4b_itjc_pci.c
@@ -1607,7 +1607,7 @@ itjc_attach(device_t dev)
ITJC_DMA_POOL_BYTES, /* maxsize*/
1, /* nsegments*/
ITJC_DMA_POOL_BYTES, /* maxsegsz*/
- BUS_DMA_ALLOCNOW | BUS_DMAMEM_NOSYNC, /* flags*/
+ BUS_DMA_ALLOCNOW | BUS_DMA_COHERENT, /* flags*/
&ctx->tag);
if (error)
@@ -1621,7 +1621,7 @@ itjc_attach(device_t dev)
error = bus_dmamem_alloc(
ctx->tag, /* DMA tag */
(void **)&ctx->pool, /* KV addr of the allocated memory */
- BUS_DMA_NOWAIT | BUS_DMAMEM_NOSYNC, /* flags */
+ BUS_DMA_NOWAIT | BUS_DMA_COHERENT, /* flags */
&ctx->map); /* KV <-> PCI map */
if (error)
OpenPOWER on IntegriCloud