summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-12-17 13:38:21 +0000
committerkib <kib@FreeBSD.org>2013-12-17 13:38:21 +0000
commit5a15f697f5d29af8bf18d2a720eea2984b635ba6 (patch)
tree6a0b3790dc5ec2d04c7ed2eb81bac164e10b23c1 /sys/mips
parent3e0674d8073161d9702f24c4bea374b3391de589 (diff)
downloadFreeBSD-src-5a15f697f5d29af8bf18d2a720eea2984b635ba6.zip
FreeBSD-src-5a15f697f5d29af8bf18d2a720eea2984b635ba6.tar.gz
MFC r257228:
Add bus_dmamap_load_ma() function to load map with the array of vm_pages.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/busdma_machdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/mips/mips/busdma_machdep.c b/sys/mips/mips/busdma_machdep.c
index f3275e6..823ae9c 100644
--- a/sys/mips/mips/busdma_machdep.c
+++ b/sys/mips/mips/busdma_machdep.c
@@ -878,6 +878,16 @@ _bus_dmamap_load_phys(bus_dma_tag_t dmat, bus_dmamap_t map,
return (0);
}
+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 entrance, and the ending segment on exit.
OpenPOWER on IntegriCloud