Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/busdma_machdep.c
Show First 20 Lines • Show All 1,204 Lines • ▼ Show 20 Lines | bus_dmamap_load_mem(map->dmat, map, &map->mem, | ||||
BUS_DMA_WAITOK); | BUS_DMA_WAITOK); | ||||
(dmat->lockfunc)(dmat->lockfuncarg, BUS_DMA_UNLOCK); | (dmat->lockfunc)(dmat->lockfuncarg, BUS_DMA_UNLOCK); | ||||
mtx_lock(&bounce_lock); | mtx_lock(&bounce_lock); | ||||
} | } | ||||
mtx_unlock(&bounce_lock); | mtx_unlock(&bounce_lock); | ||||
} | } | ||||
int | int | ||||
bus_dma_tag_set_iommu(bus_dma_tag_t tag, struct device *iommu, void *cookie) | bus_dma_tag_set_iommu(bus_dma_tag_t tag, device_t iommu, void *cookie) | ||||
{ | { | ||||
tag->iommu = iommu; | tag->iommu = iommu; | ||||
tag->iommu_cookie = cookie; | tag->iommu_cookie = cookie; | ||||
return (0); | return (0); | ||||
} | } | ||||