Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271578
b: refs/heads/master
c: 39d4ebb
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Oct 21, 2011
1 parent 3acdbc7 commit 251f375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51acc0bcfc91987ed38195918e0b40ff05197585
refs/heads/master: 39d4ebb95925046863dc0ef2698dfcf2c1f1dcbe
8 changes: 3 additions & 5 deletions trunk/include/linux/iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ struct iommu_domain {
#define IOMMU_CAP_CACHE_COHERENCY 0x1
#define IOMMU_CAP_INTR_REMAP 0x2 /* isolates device intrs */

#ifdef CONFIG_IOMMU_API

struct iommu_ops {
int (*domain_init)(struct iommu_domain *domain);
void (*domain_destroy)(struct iommu_domain *domain);
Expand All @@ -49,8 +51,6 @@ struct iommu_ops {
unsigned long cap);
};

#ifdef CONFIG_IOMMU_API

extern void register_iommu(struct iommu_ops *ops);
extern bool iommu_found(void);
extern struct iommu_domain *iommu_domain_alloc(void);
Expand All @@ -70,9 +70,7 @@ extern int iommu_domain_has_cap(struct iommu_domain *domain,

#else /* CONFIG_IOMMU_API */

static inline void register_iommu(struct iommu_ops *ops)
{
}
struct iommu_ops {};

static inline bool iommu_found(void)
{
Expand Down

0 comments on commit 251f375

Please sign in to comment.