diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-20 00:42:07 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-04-20 00:42:07 +0000 |
commit | b5396dca6504168d952b238075ba34f507a94e0b (patch) | |
tree | 39015d7d9f61a69ff36284c190932f40b1bc8834 /sys/arch/sparc64/include | |
parent | 7720807a1d9f91f5c0f47d6b1be219d913aef6ac (diff) |
Add a BUS_DMA_ZERO flag for bus_dmamem_alloc() to return zeroed memory.
Saves every damned driver calling bzero(), and continues the M_ZERO,
PR_ZERO symmetry.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/bus.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/bus.h b/sys/arch/sparc64/include/bus.h index c525fbbb379..0a837546c8f 100644 --- a/sys/arch/sparc64/include/bus.h +++ b/sys/arch/sparc64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.24 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: bus.h,v 1.25 2009/04/20 00:42:06 oga Exp $ */ /* $NetBSD: bus.h,v 1.31 2001/09/21 15:30:41 wiz Exp $ */ /*- @@ -360,6 +360,7 @@ bus_space_barrier(t, h, o, s, f) #define BUS_DMA_STREAMING 0x100 /* hint: sequential, unidirectional */ #define BUS_DMA_READ 0x200 /* mapping is device -> memory only */ #define BUS_DMA_WRITE 0x400 /* mapping is memory -> device only */ +#define BUS_DMA_ZERO 0x800 /* zero memory in dmamem_alloc */ #define BUS_DMA_NOCACHE BUS_DMA_BUS1 #define BUS_DMA_DVMA BUS_DMA_BUS2 /* Don't bother with alignment */ |