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/sparc64/include | |
parent | e0b95cb532b0a47f3441a395aee10651f6df9b7f (diff) |
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/sparc64/include')
-rw-r--r-- | sys/sparc64/include/bus_dma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/include/bus_dma.h b/sys/sparc64/include/bus_dma.h index 7395794692a7..7d74419cc6fc 100644 --- a/sys/sparc64/include/bus_dma.h +++ b/sys/sparc64/include/bus_dma.h @@ -146,5 +146,7 @@ struct bus_dma_tag { ((t)->dt_mt->dm_dmamem_alloc((t), (v), (f), (m))) #define bus_dmamem_free(t, v, m) \ ((t)->dt_mt->dm_dmamem_free((t), (v), (m))) +#define _bus_dmamap_load_ma(t, m, a, tt, o, f, s, p) \ + bus_dmamap_load_ma_triv((t), (m), (a), (tt), (o), (f), (s), (p)) #endif /* !_SPARC64_BUS_DMA_H_ */ |