diff options
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index a444c790fa72..b96a5b2136e4 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
@@ -24,9 +24,10 @@ | |||
24 | #include <linux/types.h> | 24 | #include <linux/types.h> |
25 | #include <trace/events/iommu.h> | 25 | #include <trace/events/iommu.h> |
26 | 26 | ||
27 | #define IOMMU_READ (1) | 27 | #define IOMMU_READ (1 << 0) |
28 | #define IOMMU_WRITE (2) | 28 | #define IOMMU_WRITE (1 << 1) |
29 | #define IOMMU_CACHE (4) /* DMA cache coherency */ | 29 | #define IOMMU_CACHE (1 << 2) /* DMA cache coherency */ |
30 | #define IOMMU_EXEC (1 << 3) | ||
30 | 31 | ||
31 | struct iommu_ops; | 32 | struct iommu_ops; |
32 | struct iommu_group; | 33 | struct iommu_group; |
@@ -247,6 +248,11 @@ static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) | |||
247 | return NULL; | 248 | return NULL; |
248 | } | 249 | } |
249 | 250 | ||
251 | static inline struct iommu_group *iommu_group_get_by_id(int id) | ||
252 | { | ||
253 | return NULL; | ||
254 | } | ||
255 | |||
250 | static inline void iommu_domain_free(struct iommu_domain *domain) | 256 | static inline void iommu_domain_free(struct iommu_domain *domain) |
251 | { | 257 | { |
252 | } | 258 | } |
@@ -291,8 +297,8 @@ static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_ad | |||
291 | return 0; | 297 | return 0; |
292 | } | 298 | } |
293 | 299 | ||
294 | static inline int domain_has_cap(struct iommu_domain *domain, | 300 | static inline int iommu_domain_has_cap(struct iommu_domain *domain, |
295 | unsigned long cap) | 301 | unsigned long cap) |
296 | { | 302 | { |
297 | return 0; | 303 | return 0; |
298 | } | 304 | } |