*参照元 [#d43e70e0] #backlinks *説明 [#e0b2606d] -パス: [[linux-4.4.1/arch/arm64/mm/dma-mapping.c]] -FIXME: これは何? --説明 **引数 [#yedae688] -struct device *dev -- --[[linux-4.4.1/device]] -u64 dma_base -- -u64 size -- -struct iommu_ops *iommu -- --[[linux-4.4.1/iommu_ops]] -bool coherent -- **返り値 [#b426795f] -なし **参考 [#w17639ff] *実装 [#z2f67570] void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, struct iommu_ops *iommu, bool coherent) { if (!dev->archdata.dma_ops) dev->archdata.dma_ops = &swiotlb_dma_ops; - --[[linux-4.4.1/swiotlb_dma_ops(global)]] dev->archdata.dma_coherent = coherent; - --参照するときは is_device_dma_coherent() を使う。 --[[linux-4.4.1/is_device_dma_coherent()]] __iommu_setup_dma_ops(dev, dma_base, size, iommu); - --[[linux-4.4.1/__iommu_setup_dma_ops()]] } *コメント [#o5dda86f]