diff options
author | mux <mux@FreeBSD.org> | 2003-07-27 13:52:10 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-07-27 13:52:10 +0000 |
commit | 4e543dc21243ab3f7b1444dd28899ce4ce4f7a67 (patch) | |
tree | a4a7889831600966a860a57cdff8cfd02bf4f17f /sys/amd64/include/bus_dma.h | |
parent | 0d4044b1e668c1fbed194bf8172757d4d61e9fdb (diff) | |
download | FreeBSD-src-4e543dc21243ab3f7b1444dd28899ce4ce4f7a67.zip FreeBSD-src-4e543dc21243ab3f7b1444dd28899ce4ce4f7a67.tar.gz |
- Introduce a new busdma flag BUS_DMA_ZERO to request for zero'ed
memory in bus_dmamem_alloc(). This is possible now that
contigmalloc() supports the M_ZERO flag.
- Remove the locking of Giant around calls to contigmalloc() since
contigmalloc() now grabs Giant itself.
Diffstat (limited to 'sys/amd64/include/bus_dma.h')
-rw-r--r-- | sys/amd64/include/bus_dma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/bus_dma.h b/sys/amd64/include/bus_dma.h index b0928f1..b9129e9 100644 --- a/sys/amd64/include/bus_dma.h +++ b/sys/amd64/include/bus_dma.h @@ -79,6 +79,7 @@ #define BUS_DMA_NOWAIT 0x01 /* not safe to sleep */ #define BUS_DMA_ALLOCNOW 0x02 /* perform resource allocation now */ #define BUS_DMA_COHERENT 0x04 /* hint map memory in a coherent way */ +#define BUS_DMA_ZERO 0x08 /* allocate zero'ed memory */ #define BUS_DMA_BUS1 0x10 /* placeholders for bus functions... */ #define BUS_DMA_BUS2 0x20 #define BUS_DMA_BUS3 0x40 |