diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-01-24 15:13:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-01-24 15:13:56 +0000 |
commit | 1d6b724bfa6a6172f86d24c40b0049dc68478933 (patch) | |
tree | 08abfceb0c008f639b15e399c43355410ae0a6ae /sys/arch/i386/isa | |
parent | a6df289ceccb462f47b110cf3f1c0e999fb98525 (diff) |
Add bus_dmamem_alloc_range(9) to allow drivers to allocate DMA'able memory
within a range that is more (or less) restrictive than the default range.
ok deraadt@, stsp@
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r-- | sys/arch/i386/isa/isa_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c index cef9b3e6b0c..f7daed5d7d5 100644 --- a/sys/arch/i386/isa/isa_machdep.c +++ b/sys/arch/i386/isa/isa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.c,v 1.78 2014/12/22 03:14:59 deraadt Exp $ */ +/* $OpenBSD: isa_machdep.c,v 1.79 2015/01/24 15:13:55 kettenis Exp $ */ /* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ /*- @@ -148,6 +148,7 @@ struct bus_dma_tag isa_bus_dma_tag = { _isa_bus_dmamap_unload, _isa_bus_dmamap_sync, _isa_bus_dmamem_alloc, + _bus_dmamem_alloc_range, _bus_dmamem_free, _bus_dmamem_map, _bus_dmamem_unmap, @@ -939,7 +940,7 @@ _isa_bus_dmamem_alloc(bus_dma_tag_t t, bus_size_t size, bus_size_t alignment, /* Otherwise try anywhere (we'll bounce later) */ error = _bus_dmamem_alloc_range(t, size, alignment, boundary, - segs, nsegs, rsegs, flags, (paddr_t)0, (paddr_t)-1); + segs, nsegs, rsegs, flags, (bus_addr_t)0, (bus_addr_t)-1); return (error); } |