1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Arch specific extensions to struct device
5 #ifndef _ASM_POWERPC_DEVICE_H
6 #define _ASM_POWERPC_DEVICE_H
15 * Arch extensions to struct device.
17 * When adding fields, consider macio_add_one_device in
18 * drivers/macintosh/macio_asic.c
22 * These two used to be a union. However, with the hybrid ops we need
23 * both so here we store both a DMA offset for direct mappings and
24 * an iommu_table for remapped DMA.
26 dma_addr_t dma_offset
;
29 struct iommu_table
*iommu_table_base
;
33 struct pci_dn
*pci_data
;
38 #ifdef CONFIG_FAIL_IOMMU
41 #ifdef CONFIG_CXL_BASE
42 struct cxl_context
*cxl_ctx
;
49 struct pdev_archdata
{
53 #endif /* _ASM_POWERPC_DEVICE_H */