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
23 * These two used to be a union. However, with the hybrid ops we need
24 * both so here we store both a DMA offset for direct mappings and
25 * an iommu_table for remapped DMA.
27 dma_addr_t dma_offset
;
30 struct iommu_table
*iommu_table_base
;
33 #ifdef CONFIG_IOMMU_API
37 dma_addr_t max_direct_dma_addr
;
40 struct pci_dn
*pci_data
;
45 #ifdef CONFIG_FAIL_IOMMU
48 #ifdef CONFIG_CXL_BASE
49 struct cxl_context
*cxl_ctx
;
53 struct pdev_archdata
{
57 #define ARCH_HAS_DMA_GET_REQUIRED_MASK
59 #endif /* _ASM_POWERPC_DEVICE_H */