1515
1616/* Domain management interface for IOMMU drivers */
1717int iommu_get_dma_cookie (struct iommu_domain * domain );
18- int iommu_get_msi_cookie (struct iommu_domain * domain , dma_addr_t base );
1918void iommu_put_dma_cookie (struct iommu_domain * domain );
2019
21- /* Setup call for arch DMA mapping code */
22- void iommu_setup_dma_ops (struct device * dev , u64 dma_base , u64 dma_limit );
2320int iommu_dma_init_fq (struct iommu_domain * domain );
2421
25- /* The DMA API isn't _quite_ the whole story, though... */
26- /*
27- * iommu_dma_prepare_msi() - Map the MSI page in the IOMMU device
28- *
29- * The MSI page will be stored in @desc.
30- *
31- * Return: 0 on success otherwise an error describing the failure.
32- */
33- int iommu_dma_prepare_msi (struct msi_desc * desc , phys_addr_t msi_addr );
34-
35- /* Update the MSI message if required. */
36- void iommu_dma_compose_msi_msg (struct msi_desc * desc ,
37- struct msi_msg * msg );
38-
3922void iommu_dma_get_resv_regions (struct device * dev , struct list_head * list );
4023
4124void iommu_dma_free_cpu_cached_iovas (unsigned int cpu ,
@@ -46,15 +29,8 @@ extern bool iommu_dma_forcedac;
4629#else /* CONFIG_IOMMU_DMA */
4730
4831struct iommu_domain ;
49- struct msi_desc ;
50- struct msi_msg ;
5132struct device ;
5233
53- static inline void iommu_setup_dma_ops (struct device * dev , u64 dma_base ,
54- u64 dma_limit )
55- {
56- }
57-
5834static inline int iommu_dma_init_fq (struct iommu_domain * domain )
5935{
6036 return - EINVAL ;
@@ -65,26 +41,10 @@ static inline int iommu_get_dma_cookie(struct iommu_domain *domain)
6541 return - ENODEV ;
6642}
6743
68- static inline int iommu_get_msi_cookie (struct iommu_domain * domain , dma_addr_t base )
69- {
70- return - ENODEV ;
71- }
72-
7344static inline void iommu_put_dma_cookie (struct iommu_domain * domain )
7445{
7546}
7647
77- static inline int iommu_dma_prepare_msi (struct msi_desc * desc ,
78- phys_addr_t msi_addr )
79- {
80- return 0 ;
81- }
82-
83- static inline void iommu_dma_compose_msi_msg (struct msi_desc * desc ,
84- struct msi_msg * msg )
85- {
86- }
87-
8848static inline void iommu_dma_get_resv_regions (struct device * dev , struct list_head * list )
8949{
9050}
0 commit comments