1
2
3
4
5 #ifndef _ASM_POWERPC_DEVICE_H
6 #define _ASM_POWERPC_DEVICE_H
7
8 struct device_node;
9 #ifdef CONFIG_PPC64
10 struct pci_dn;
11 struct iommu_table;
12 #endif
13
14
15
16
17
18
19
20 struct dev_archdata {
21
22
23
24
25 bool iommu_bypass : 1;
26
27
28
29
30
31 dma_addr_t dma_offset;
32
33 #ifdef CONFIG_PPC64
34 struct iommu_table *iommu_table_base;
35 #endif
36
37 #ifdef CONFIG_IOMMU_API
38 void *iommu_domain;
39 #endif
40 #ifdef CONFIG_PPC64
41 struct pci_dn *pci_data;
42 #endif
43 #ifdef CONFIG_EEH
44 struct eeh_dev *edev;
45 #endif
46 #ifdef CONFIG_FAIL_IOMMU
47 int fail_iommu;
48 #endif
49 #ifdef CONFIG_CXL_BASE
50 struct cxl_context *cxl_ctx;
51 #endif
52 };
53
54 struct pdev_archdata {
55 u64 dma_mask;
56 };
57
58 #endif