From d48f3818ad991429ac22904f641e2aaa48eeb89a Mon Sep 17 00:00:00 2001 From: hmp Date: Fri, 30 May 2003 20:40:33 +0000 Subject: 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) --- sys/i4b/layer1/itjc/i4b_itjc_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i4b') 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) -- cgit v1.1