diff options
author | kib <kib@FreeBSD.org> | 2013-10-27 21:39:16 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-10-27 21:39:16 +0000 |
commit | 79afbd5fdd5f600c2a390a04f729e1249f04c316 (patch) | |
tree | 01b51e4040a30364be1c4ef9bcec82c2e4414af5 /sys/sparc64/include | |
parent | 5449e20fb6562d1e14526a10b8fe9cd8b0ecd846 (diff) | |
download | FreeBSD-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/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 7395794..7d74419 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_ */ |