hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/include/asm/device.h
....@@ -1,7 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Arch specific extensions to struct device
3
- *
4
- * This file is released under the GPLv2
54 */
65 #ifndef _ASM_POWERPC_DEVICE_H
76 #define _ASM_POWERPC_DEVICE_H
....@@ -30,12 +29,6 @@
3029 struct iommu_table *iommu_table_base;
3130 #endif
3231
33
-#ifdef CONFIG_IOMMU_API
34
- void *iommu_domain;
35
-#endif
36
-#ifdef CONFIG_SWIOTLB
37
- dma_addr_t max_direct_dma_addr;
38
-#endif
3932 #ifdef CONFIG_PPC64
4033 struct pci_dn *pci_data;
4134 #endif
....@@ -48,12 +41,13 @@
4841 #ifdef CONFIG_CXL_BASE
4942 struct cxl_context *cxl_ctx;
5043 #endif
44
+#ifdef CONFIG_PCI_IOV
45
+ void *iov_data;
46
+#endif
5147 };
5248
5349 struct pdev_archdata {
5450 u64 dma_mask;
5551 };
56
-
57
-#define ARCH_HAS_DMA_GET_REQUIRED_MASK
5852
5953 #endif /* _ASM_POWERPC_DEVICE_H */