Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358828
b: refs/heads/master
c: d2e1216
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Feb 6, 2013
1 parent 78c42d5 commit 97ebf96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57886518a8cdd319a04f5ea06a5f7ffcb8a93120
refs/heads/master: d2e121601619631517409cba34e50db3cbff5852
5 changes: 5 additions & 0 deletions trunk/drivers/iommu/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,13 +869,18 @@ int iommu_domain_get_attr(struct iommu_domain *domain,
enum iommu_attr attr, void *data)
{
struct iommu_domain_geometry *geometry;
bool *paging;
int ret = 0;

switch (attr) {
case DOMAIN_ATTR_GEOMETRY:
geometry = data;
*geometry = domain->geometry;

break;
case DOMAIN_ATTR_PAGING:
paging = data;
*paging = (domain->ops->pgsize_bitmap != 0UL);
break;
default:
if (!domain->ops->domain_get_attr)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ struct iommu_domain {

enum iommu_attr {
DOMAIN_ATTR_GEOMETRY,
DOMAIN_ATTR_PAGING,
DOMAIN_ATTR_MAX,
};

Expand Down

0 comments on commit 97ebf96

Please sign in to comment.