diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2013-10-27 21:39:16 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2013-10-27 21:39:16 +0000 |
commit | 80938e75f0e8ed4811dfb1a9f2889d9359b9466b (patch) | |
tree | 01b51e4040a30364be1c4ef9bcec82c2e4414af5 /sys/ia64/ia64 | |
parent | e0b95cb532b0a47f3441a395aee10651f6df9b7f (diff) | |
download | src-80938e75f0e8ed4811dfb1a9f2889d9359b9466b.tar.gz src-80938e75f0e8ed4811dfb1a9f2889d9359b9466b.zip |
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
Notes
Notes:
svn path=/head/; revision=257228
Diffstat (limited to 'sys/ia64/ia64')
-rw-r--r-- | sys/ia64/ia64/busdma_machdep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/ia64/ia64/busdma_machdep.c b/sys/ia64/ia64/busdma_machdep.c index 770f29f01767..206fc6e7da8a 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. |