Commit | Line | Data |
---|---|---|
a9dcad5e HD |
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 | ||
72b15b6a ORL |
13 | #include <linux/platform_device.h> |
14 | ||
ed1c7de2 | 15 | #define MMU_REG_SIZE 256 |
a9dcad5e | 16 | |
ed1c7de2 TL |
17 | /** |
18 | * struct iommu_arch_data - omap iommu private data | |
19 | * @name: name of the iommu device | |
20 | * @iommu_dev: handle of the iommu device | |
21 | * | |
22 | * This is an omap iommu private data object, which binds an iommu user | |
23 | * to its iommu device. This object should be placed at the iommu user's | |
24 | * dev_archdata so generic IOMMU API can be used without having to | |
25 | * utilize omap-specific plumbing anymore. | |
26 | */ | |
27 | struct omap_iommu_arch_data { | |
28 | const char *name; | |
29 | struct omap_iommu *iommu_dev; | |
a9dcad5e HD |
30 | }; |
31 | ||
32 | struct iommu_platform_data { | |
33 | const char *name; | |
72b15b6a ORL |
34 | const char *reset_name; |
35 | int nr_tlb_entries; | |
72b15b6a ORL |
36 | |
37 | int (*assert_reset)(struct platform_device *pdev, const char *name); | |
38 | int (*deassert_reset)(struct platform_device *pdev, const char *name); | |
a9dcad5e | 39 | }; |