| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * omap iommu: main structures |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2008-2009 Nokia Corporation |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #ifndef _OMAP_IOMMU_H |
|---|
| .. | .. |
|---|
| 76 | 73 | |
|---|
| 77 | 74 | void *ctx; /* iommu context: registres saved area */ |
|---|
| 78 | 75 | |
|---|
| 76 | + struct cr_regs *cr_ctx; |
|---|
| 77 | + u32 num_cr_ctx; |
|---|
| 78 | + |
|---|
| 79 | 79 | int has_bus_err_back; |
|---|
| 80 | 80 | u32 id; |
|---|
| 81 | 81 | |
|---|
| 82 | 82 | struct iommu_device iommu; |
|---|
| 83 | 83 | struct iommu_group *group; |
|---|
| 84 | + |
|---|
| 85 | + u8 pwrst; |
|---|
| 84 | 86 | }; |
|---|
| 85 | 87 | |
|---|
| 86 | 88 | /** |
|---|
| 87 | 89 | * struct omap_iommu_arch_data - omap iommu private data |
|---|
| 88 | | - * @iommu_dev: handle of the iommu device |
|---|
| 90 | + * @iommu_dev: handle of the OMAP iommu device |
|---|
| 91 | + * @dev: handle of the iommu device |
|---|
| 89 | 92 | * |
|---|
| 90 | 93 | * This is an omap iommu private data object, which binds an iommu user |
|---|
| 91 | 94 | * to its iommu device. This object should be placed at the iommu user's |
|---|
| .. | .. |
|---|
| 94 | 97 | */ |
|---|
| 95 | 98 | struct omap_iommu_arch_data { |
|---|
| 96 | 99 | struct omap_iommu *iommu_dev; |
|---|
| 100 | + struct device *dev; |
|---|
| 97 | 101 | }; |
|---|
| 98 | 102 | |
|---|
| 99 | 103 | struct cr_regs { |
|---|