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/amd64 | |
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/amd64')
-rw-r--r-- | sys/amd64/include/bus_dma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/bus_dma.h b/sys/amd64/include/bus_dma.h index a74a942..6a434cf 100644 --- a/sys/amd64/include/bus_dma.h +++ b/sys/amd64/include/bus_dma.h @@ -78,7 +78,7 @@ #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_BUS1 0x10 /* placeholders for bus functions... */ #define BUS_DMA_BUS2 0x20 #define BUS_DMA_BUS3 0x40 |