qcom-iommu-util: Add iommu_domain_ops to qcom_iommu_ops

commit 9a630a4b41 ("iommu: Split struct iommu_ops") adds a new type
iommu_domain_ops that covers all per-domain (i.e. "translation) operations
(setting up page tables, doing TLB maintenance, etc.) are moved from
iommu_ops into this domain specific structure. As a result of this,
IOMMU domains now only supply a pointer to these domain ops and not
the iommu_ops.

Thus, add a iommu_domain_ops member in qciom_iommu_ops.

Change-Id: I77919feed92232e1b487cd621d164f597676d14c
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
This commit is contained in:
Chris Goldsworthy 2022-05-25 16:44:51 -07:00
parent 58dfec1dca
commit 5aea34a2f3

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef __QCOM_IOMMU_UTIL_H
@ -97,8 +98,9 @@ struct qcom_iommu_ops {
int (*enable_s1_translation)(struct iommu_domain *domain);
int (*get_mappings_configuration)(struct iommu_domain *domain);
struct iommu_ops iommu_ops;
struct iommu_domain_ops domain_ops;
};
#define to_qcom_iommu_ops(x) (container_of(x, struct qcom_iommu_ops, iommu_ops))
#define to_qcom_iommu_ops(x) (container_of(x, struct qcom_iommu_ops, domain_ops))
struct device_node *qcom_iommu_group_parse_phandle(struct device *dev);
int qcom_iommu_generate_dma_regions(struct device *dev,