hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iommu/omap-iommu.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * omap iommu: main structures
34 *
45 * Copyright (C) 2008-2009 Nokia Corporation
56 *
67 * 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.
118 */
129
1310 #ifndef _OMAP_IOMMU_H
....@@ -76,16 +73,22 @@
7673
7774 void *ctx; /* iommu context: registres saved area */
7875
76
+ struct cr_regs *cr_ctx;
77
+ u32 num_cr_ctx;
78
+
7979 int has_bus_err_back;
8080 u32 id;
8181
8282 struct iommu_device iommu;
8383 struct iommu_group *group;
84
+
85
+ u8 pwrst;
8486 };
8587
8688 /**
8789 * 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
8992 *
9093 * This is an omap iommu private data object, which binds an iommu user
9194 * to its iommu device. This object should be placed at the iommu user's
....@@ -94,6 +97,7 @@
9497 */
9598 struct omap_iommu_arch_data {
9699 struct omap_iommu *iommu_dev;
100
+ struct device *dev;
97101 };
98102
99103 struct cr_regs {