forked from boa19861105/android_442_KitKat_kernel_htc_dlxpul
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
5,862 additions
and
4,943 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
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 { | ||
|
||
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 | ||
#endif |
Oops, something went wrong.