2 * Arch specific extensions to struct device
4 * This file is released under the GPLv2
6 #ifndef _ASM_POWERPC_DEVICE_H
7 #define _ASM_POWERPC_DEVICE_H
16 * Arch extensions to struct device.
18 * When adding fields, consider macio_add_one_device in
19 * drivers/macintosh/macio_asic.c
22 /* DMA operations on that device */
23 struct dma_map_ops *dma_ops;
26 * When an iommu is in use, dma_data is used as a ptr to the base of the
27 * iommu_table. Otherwise, it is a simple numerical offset.
30 dma_addr_t dma_offset;
31 void *iommu_table_base;
34 #ifdef CONFIG_IOMMU_API
38 dma_addr_t max_direct_dma_addr;
41 struct pci_dn *pci_data;
46 #ifdef CONFIG_FAIL_IOMMU
51 struct pdev_archdata {
55 #define ARCH_HAS_DMA_GET_REQUIRED_MASK
57 #endif /* _ASM_POWERPC_DEVICE_H */