diff options
author | scottl <scottl@FreeBSD.org> | 2005-01-15 09:20:47 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-01-15 09:20:47 +0000 |
commit | c1d168f9a450be99fc5b9c2de536f93f01049276 (patch) | |
tree | e22e3ce5d9a4a3aa8f706dad2502620c4b7c0391 /sys/sparc64/include | |
parent | f4c183f0bacf6ff6016a7255beb1692cf302b883 (diff) | |
download | FreeBSD-src-c1d168f9a450be99fc5b9c2de536f93f01049276.zip FreeBSD-src-c1d168f9a450be99fc5b9c2de536f93f01049276.tar.gz |
Add the bus_dmamap_load_mbuf_sg() function to sparc64.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/bus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sparc64/include/bus.h b/sys/sparc64/include/bus.h index 4aa0a7b..1a90e24 100644 --- a/sys/sparc64/include/bus.h +++ b/sys/sparc64/include/bus.h @@ -988,6 +988,8 @@ struct bus_dma_methods { bus_size_t, bus_dmamap_callback_t *, void *, int); int (*dm_dmamap_load_mbuf)(bus_dma_tag_t, bus_dmamap_t, struct mbuf *, bus_dmamap_callback2_t *, void *, int); + int (*dm_dmamap_load_mbuf_sg)(bus_dma_tag_t, bus_dmamap_t, + struct mbuf *, bus_dma_segment_t *segs, int *nsegs, int); int (*dm_dmamap_load_uio)(bus_dma_tag_t, bus_dmamap_t, struct uio *, bus_dmamap_callback2_t *, void *, int); void (*dm_dmamap_unload)(bus_dma_tag_t, bus_dmamap_t); @@ -1039,6 +1041,8 @@ int bus_dma_tag_destroy(bus_dma_tag_t); ((t)->dt_mt->dm_dmamap_load((t), (m), (p), (s), (cb), (cba), (f))) #define bus_dmamap_load_mbuf(t, m, mb, cb, cba, f) \ ((t)->dt_mt->dm_dmamap_load_mbuf((t), (m), (mb), (cb), (cba), (f))) +#define bus_dmamap_load_mbuf_sg(t, m, mb, segs, nsegs, f) \ + ((t)->dt_mt->dm_dmamap_load_mbuf_sg((t), (m), (mb), (segs), (nsegs), (f))) #define bus_dmamap_load_uio(t, m, ui, cb, cba, f) \ ((t)->dt_mt->dm_dmamap_load_uio((t), (m), (ui), (cb), (cba), (f))) #define bus_dmamap_unload(t, p) \ |