diff options
author | tmm <tmm@FreeBSD.org> | 2003-01-06 21:59:54 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2003-01-06 21:59:54 +0000 |
commit | 64ef30fddd206a400119c7364e525bdcd940a3de (patch) | |
tree | 62a440f3b650bf019a90f1a972512d13433ad63a /sys/sparc64/include/iommuvar.h | |
parent | eabf06862c56aaa33ce08be99f7aefa90a80fd4b (diff) | |
download | FreeBSD-src-64ef30fddd206a400119c7364e525bdcd940a3de.zip FreeBSD-src-64ef30fddd206a400119c7364e525bdcd940a3de.tar.gz |
Change the iommu code to be able to handle more than one DVMA area per
map. Use this new feature to implement iommu_dvmamap_load_mbuf() and
iommu_dvmamap_load_uio() functions in terms of a new helper function,
iommu_dvmamap_load_buffer(). Reimplement the iommu_dvmamap_load()
to use it, too.
This requires some changes to the map format; in addition to that,
remove unused or redundant members.
Add SBus and Psycho wrappers for the new functions, and make them
available through the respective DMA tags.
Diffstat (limited to 'sys/sparc64/include/iommuvar.h')
-rw-r--r-- | sys/sparc64/include/iommuvar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sparc64/include/iommuvar.h b/sys/sparc64/include/iommuvar.h index 32eb432..1052ba3 100644 --- a/sys/sparc64/include/iommuvar.h +++ b/sys/sparc64/include/iommuvar.h @@ -87,6 +87,10 @@ int iommu_dvmamap_destroy(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, bus_dmamap_t); int iommu_dvmamap_load(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, bus_dmamap_t, void *, bus_size_t, bus_dmamap_callback_t *, void *, int); +int iommu_dvmamap_load_mbuf(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, + bus_dmamap_t, struct mbuf *, bus_dmamap_callback2_t *, void *, int); +int iommu_dvmamap_load_uio(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, + bus_dmamap_t, struct uio *, bus_dmamap_callback2_t *, void *, int); void iommu_dvmamap_unload(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, bus_dmamap_t); void iommu_dvmamap_sync(bus_dma_tag_t, bus_dma_tag_t, struct iommu_state *, |