diff options
author | hmp <hmp@FreeBSD.org> | 2003-05-30 20:40:33 +0000 |
---|---|---|
committer | hmp <hmp@FreeBSD.org> | 2003-05-30 20:40:33 +0000 |
commit | d48f3818ad991429ac22904f641e2aaa48eeb89a (patch) | |
tree | 9a66557b1ba65bdc8038406307415ee4fdf97d21 /sys/alpha | |
parent | c264d8171dad13e2bbd26da5482a9e13a7d71f94 (diff) | |
download | FreeBSD-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/alpha')
-rw-r--r-- | sys/alpha/include/bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/alpha/include/bus.h b/sys/alpha/include/bus.h index 2d44ddf..76f6477 100644 --- a/sys/alpha/include/bus.h +++ b/sys/alpha/include/bus.h @@ -469,7 +469,7 @@ void busspace_generic_barrier(struct alpha_busspace *space, #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 |