19 #include <linux/pci.h>
21 #include <asm/machdep.h>
22 #include <asm/swiotlb.h>
27 static u64 swiotlb_powerpc_get_required(
struct device *
dev)
32 if (max_direct_dma_addr && end > max_direct_dma_addr)
33 end = max_direct_dma_addr;
34 end += get_dma_offset(dev);
36 mask = 1ULL << (fls64(end) - 1);
63 .get_required_mask = swiotlb_powerpc_get_required,
71 hose = pci_bus_to_host(pdev->
bus);
72 sd = &pdev->
dev.archdata;
74 hose->dma_window_base_cur + hose->dma_window_size;
92 set_dma_ops(dev, &swiotlb_dma_ops);
98 .notifier_call = ppc_swiotlb_bus_notify,
105 &ppc_swiotlb_plat_bus_notifier);
115 static int __init swiotlb_late_init(
void)