diff options
| author | Joerg Roedel <joro@8bytes.org> | 2012-12-03 12:40:59 -0500 |
|---|---|---|
| committer | Joerg Roedel <joro@8bytes.org> | 2012-12-03 12:40:59 -0500 |
| commit | 18e170d03bcd17f5ccb35b271a95783f63145be7 (patch) | |
| tree | 5ce68cab628b93119d4c160efc6092e1ba6fa93e /include/linux/platform_data | |
| parent | 9489e9dcae718d5fde988e4a684a0f55b5f94d17 (diff) | |
| parent | 2ab7c84815cffd5fe4946a472fc67fefa8ac3c29 (diff) | |
Merge branch 'omap-for-v3.8/cleanup-headers-iommu' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/omap
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/iommu-omap.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/linux/platform_data/iommu-omap.h b/include/linux/platform_data/iommu-omap.h new file mode 100644 index 000000000000..c677b9f2fefa --- /dev/null +++ b/include/linux/platform_data/iommu-omap.h | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /* | ||
| 2 | * omap iommu: main structures | ||
| 3 | * | ||
| 4 | * Copyright (C) 2008-2009 Nokia Corporation | ||
| 5 | * | ||
| 6 | * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com> | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #define MMU_REG_SIZE 256 | ||
| 14 | |||
| 15 | /** | ||
| 16 | * struct iommu_arch_data - omap iommu private data | ||
| 17 | * @name: name of the iommu device | ||
| 18 | * @iommu_dev: handle of the iommu device | ||
| 19 | * | ||
| 20 | * This is an omap iommu private data object, which binds an iommu user | ||
| 21 | * to its iommu device. This object should be placed at the iommu user's | ||
| 22 | * dev_archdata so generic IOMMU API can be used without having to | ||
| 23 | * utilize omap-specific plumbing anymore. | ||
| 24 | */ | ||
| 25 | struct omap_iommu_arch_data { | ||
| 26 | const char *name; | ||
| 27 | struct omap_iommu *iommu_dev; | ||
| 28 | }; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * struct omap_mmu_dev_attr - OMAP mmu device attributes for omap_hwmod | ||
| 32 | * @da_start: device address where the va space starts. | ||
| 33 | * @da_end: device address where the va space ends. | ||
| 34 | * @nr_tlb_entries: number of entries supported by the translation | ||
| 35 | * look-aside buffer (TLB). | ||
| 36 | */ | ||
| 37 | struct omap_mmu_dev_attr { | ||
| 38 | u32 da_start; | ||
| 39 | u32 da_end; | ||
| 40 | int nr_tlb_entries; | ||
| 41 | }; | ||
| 42 | |||
| 43 | struct iommu_platform_data { | ||
| 44 | const char *name; | ||
| 45 | const char *clk_name; | ||
| 46 | const int nr_tlb_entries; | ||
| 47 | u32 da_start; | ||
| 48 | u32 da_end; | ||
| 49 | }; | ||
