summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-10-27 21:39:16 +0000
committerkib <kib@FreeBSD.org>2013-10-27 21:39:16 +0000
commit79afbd5fdd5f600c2a390a04f729e1249f04c316 (patch)
tree01b51e4040a30364be1c4ef9bcec82c2e4414af5 /sys/ia64
parent5449e20fb6562d1e14526a10b8fe9cd8b0ecd846 (diff)
downloadFreeBSD-src-79afbd5fdd5f600c2a390a04f729e1249f04c316.zip
FreeBSD-src-79afbd5fdd5f600c2a390a04f729e1249f04c316.tar.gz
Add bus_dmamap_load_ma() function to load map with the array of
vm_pages. Provide trivial implementation which forwards the load to _bus_dmamap_load_phys() page by page. Right now all architectures use bus_dmamap_load_ma_triv(). Tested by: pho (as part of the functional patch) Sponsored by: The FreeBSD Foundation MFC after: 1 month
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/busdma_machdep.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/ia64/ia64/busdma_machdep.c b/sys/ia64/ia64/busdma_machdep.c
index 770f29f..206fc6e 100644
--- a/sys/ia64/ia64/busdma_machdep.c
+++ b/sys/ia64/ia64/busdma_machdep.c
@@ -658,6 +658,17 @@ _bus_dmamap_load_phys(bus_dma_tag_t dmat, bus_dmamap_t map,
*/
return (buflen != 0 ? EFBIG : 0); /* XXX better return value here? */
}
+
+int
+_bus_dmamap_load_ma(bus_dma_tag_t dmat, bus_dmamap_t map,
+ struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags,
+ bus_dma_segment_t *segs, int *segp)
+{
+
+ return (bus_dmamap_load_ma_triv(dmat, map, ma, tlen, ma_offs, flags,
+ segs, segp));
+}
+
/*
* Utility function to load a linear buffer. segp contains
* the starting segment on entrace, and the ending segment on exit.
OpenPOWER on IntegriCloud