-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 308043 b: refs/heads/master c: 4ce63fc h: refs/heads/master i: 308041: 5e8a0ec 308039: ea8ad31 v: v3
- Loading branch information
Marek Szyprowski
committed
May 21, 2012
1 parent
f9458b8
commit 714b991
Showing
6 changed files
with
748 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: f99d60341238fe73fc514129cd9ae4e44e1b2c47 | ||
refs/heads/master: 4ce63fcd919c32d22528e54dcd89506962933719 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifndef ASMARM_DMA_IOMMU_H | ||
#define ASMARM_DMA_IOMMU_H | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#include <linux/mm_types.h> | ||
#include <linux/scatterlist.h> | ||
#include <linux/dma-debug.h> | ||
#include <linux/kmemcheck.h> | ||
|
||
struct dma_iommu_mapping { | ||
/* iommu specific data */ | ||
struct iommu_domain *domain; | ||
|
||
void *bitmap; | ||
size_t bits; | ||
unsigned int order; | ||
dma_addr_t base; | ||
|
||
spinlock_t lock; | ||
struct kref kref; | ||
}; | ||
|
||
struct dma_iommu_mapping * | ||
arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, size_t size, | ||
int order); | ||
|
||
void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping); | ||
|
||
int arm_iommu_attach_device(struct device *dev, | ||
struct dma_iommu_mapping *mapping); | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif |
Oops, something went wrong.