diff options
author | Joerg Roedel <joro@8bytes.org> | 2013-02-04 08:00:01 -0500 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-02-06 04:47:28 -0500 |
commit | 693567125bde1966a095267a9d8ca1b8d40f59ee (patch) | |
tree | 0ab1b5b9fea365c2d3d0b16388652c5041ce438d /include/linux/iommu.h | |
parent | d7787d579cbef9f8079104759a2259fc916c688c (diff) |
iommu: Add DOMAIN_ATTR_WINDOWS domain attribute
This attribute can be used to set and get the number of
subwindows on IOMMUs that are window-based.
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 5ea3d7250917..ba3b8a98a049 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h | |||
@@ -60,6 +60,7 @@ struct iommu_domain { | |||
60 | enum iommu_attr { | 60 | enum iommu_attr { |
61 | DOMAIN_ATTR_GEOMETRY, | 61 | DOMAIN_ATTR_GEOMETRY, |
62 | DOMAIN_ATTR_PAGING, | 62 | DOMAIN_ATTR_PAGING, |
63 | DOMAIN_ATTR_WINDOWS, | ||
63 | DOMAIN_ATTR_MAX, | 64 | DOMAIN_ATTR_MAX, |
64 | }; | 65 | }; |
65 | 66 | ||
@@ -106,6 +107,10 @@ struct iommu_ops { | |||
106 | int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr, | 107 | int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr, |
107 | phys_addr_t paddr, u64 size); | 108 | phys_addr_t paddr, u64 size); |
108 | void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr); | 109 | void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr); |
110 | /* Set the numer of window per domain */ | ||
111 | int (*domain_set_windows)(struct iommu_domain *domain, u32 w_count); | ||
112 | /* Get the numer of window per domain */ | ||
113 | u32 (*domain_get_windows)(struct iommu_domain *domain); | ||
109 | 114 | ||
110 | unsigned long pgsize_bitmap; | 115 | unsigned long pgsize_bitmap; |
111 | }; | 116 | }; |