diff options
Diffstat (limited to 'include/asm-powerpc/iommu.h')
-rw-r--r-- | include/asm-powerpc/iommu.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/include/asm-powerpc/iommu.h b/include/asm-powerpc/iommu.h index f89f06050893..d5677cbec200 100644 --- a/include/asm-powerpc/iommu.h +++ b/include/asm-powerpc/iommu.h | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | #ifndef _ASM_IOMMU_H | 21 | #ifndef _ASM_IOMMU_H |
22 | #define _ASM_IOMMU_H | 22 | #define _ASM_IOMMU_H |
23 | #ifdef __KERNEL__ | ||
23 | 24 | ||
24 | #include <linux/config.h> | 25 | #include <linux/config.h> |
25 | #include <asm/types.h> | 26 | #include <asm/types.h> |
@@ -56,32 +57,13 @@ struct device_node; | |||
56 | 57 | ||
57 | /* Walks all buses and creates iommu tables */ | 58 | /* Walks all buses and creates iommu tables */ |
58 | extern void iommu_setup_pSeries(void); | 59 | extern void iommu_setup_pSeries(void); |
59 | extern void iommu_setup_u3(void); | 60 | extern void iommu_setup_dart(void); |
60 | 61 | ||
61 | /* Frees table for an individual device node */ | 62 | /* Frees table for an individual device node */ |
62 | extern void iommu_free_table(struct device_node *dn); | 63 | extern void iommu_free_table(struct device_node *dn); |
63 | 64 | ||
64 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | 65 | #endif /* CONFIG_PPC_MULTIPLATFORM */ |
65 | 66 | ||
66 | #ifdef CONFIG_PPC_PSERIES | ||
67 | |||
68 | /* Creates table for an individual device node */ | ||
69 | extern void iommu_devnode_init_pSeries(struct device_node *dn); | ||
70 | |||
71 | #endif /* CONFIG_PPC_PSERIES */ | ||
72 | |||
73 | #ifdef CONFIG_PPC_ISERIES | ||
74 | |||
75 | /* Creates table for an individual device node */ | ||
76 | extern void iommu_devnode_init_iSeries(struct device_node *dn); | ||
77 | /* Get table parameters from HV */ | ||
78 | extern void iommu_table_getparms_iSeries(unsigned long busno, | ||
79 | unsigned char slotno, | ||
80 | unsigned char virtbus, | ||
81 | struct iommu_table* tbl); | ||
82 | |||
83 | #endif /* CONFIG_PPC_ISERIES */ | ||
84 | |||
85 | /* Initializes an iommu_table based in values set in the passed-in | 67 | /* Initializes an iommu_table based in values set in the passed-in |
86 | * structure | 68 | * structure |
87 | */ | 69 | */ |
@@ -104,7 +86,7 @@ extern void iommu_unmap_single(struct iommu_table *tbl, dma_addr_t dma_handle, | |||
104 | 86 | ||
105 | extern void iommu_init_early_pSeries(void); | 87 | extern void iommu_init_early_pSeries(void); |
106 | extern void iommu_init_early_iSeries(void); | 88 | extern void iommu_init_early_iSeries(void); |
107 | extern void iommu_init_early_u3(void); | 89 | extern void iommu_init_early_dart(void); |
108 | 90 | ||
109 | #ifdef CONFIG_PCI | 91 | #ifdef CONFIG_PCI |
110 | extern void pci_iommu_init(void); | 92 | extern void pci_iommu_init(void); |
@@ -113,6 +95,7 @@ extern void pci_direct_iommu_init(void); | |||
113 | static inline void pci_iommu_init(void) { } | 95 | static inline void pci_iommu_init(void) { } |
114 | #endif | 96 | #endif |
115 | 97 | ||
116 | extern void alloc_u3_dart_table(void); | 98 | extern void alloc_dart_table(void); |
117 | 99 | ||
100 | #endif /* __KERNEL__ */ | ||
118 | #endif /* _ASM_IOMMU_H */ | 101 | #endif /* _ASM_IOMMU_H */ |