summaryrefslogtreecommitdiff
path: root/gxp-dma-iommu.h
blob: 971c45fe36aa393414d5703e28750c4f3f2d3b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * GXP DMA IOMMU-specific interface.
 *
 * Copyright (C) 2021 Google LLC
 */
#ifndef __GXP_DMA_IOMMU_H__
#define __GXP_DMA_IOMMU_H__

#include <linux/iommu.h>

#include "gxp-internal.h"

#ifdef CONFIG_GXP_TEST
struct iommu_domain *gxp_dma_iommu_get_default_domain(struct gxp_dev *gxp);
struct iommu_domain *gxp_dma_iommu_get_core_domain(struct gxp_dev *gxp,
						   uint core);
#endif

#endif /* __GXP_DMA_IOMMU_H__ */