summaryrefslogtreecommitdiffstats
path: root/sys/sys/bus_dma.h
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-07-27 13:52:10 +0000
committermux <mux@FreeBSD.org>2003-07-27 13:52:10 +0000
commit4e543dc21243ab3f7b1444dd28899ce4ce4f7a67 (patch)
treea4a7889831600966a860a57cdff8cfd02bf4f17f /sys/sys/bus_dma.h
parent0d4044b1e668c1fbed194bf8172757d4d61e9fdb (diff)
downloadFreeBSD-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/sys/bus_dma.h')
-rw-r--r--sys/sys/bus_dma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/bus_dma.h b/sys/sys/bus_dma.h
index 3539a33..9b75eae 100644
--- a/sys/sys/bus_dma.h
+++ b/sys/sys/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
OpenPOWER on IntegriCloud