2018-05-08 21:20:54 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2015-12-04 00:21:29 +07:00
|
|
|
/*
|
2018-05-08 21:20:54 +07:00
|
|
|
* Copyright (C) 2014-2018 Etnaviv Project
|
2015-12-04 00:21:29 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ETNAVIV_IOMMU_H__
|
|
|
|
#define __ETNAVIV_IOMMU_H__
|
|
|
|
|
|
|
|
struct etnaviv_gpu;
|
2017-09-07 22:06:28 +07:00
|
|
|
struct etnaviv_iommu_domain;
|
2015-12-04 00:21:29 +07:00
|
|
|
|
2017-09-07 22:06:28 +07:00
|
|
|
struct etnaviv_iommu_domain *
|
|
|
|
etnaviv_iommuv1_domain_alloc(struct etnaviv_gpu *gpu);
|
2016-08-16 16:31:09 +07:00
|
|
|
void etnaviv_iommuv1_restore(struct etnaviv_gpu *gpu);
|
2016-08-20 05:16:58 +07:00
|
|
|
|
2017-09-07 22:06:28 +07:00
|
|
|
struct etnaviv_iommu_domain *
|
|
|
|
etnaviv_iommuv2_domain_alloc(struct etnaviv_gpu *gpu);
|
2016-08-20 05:16:58 +07:00
|
|
|
void etnaviv_iommuv2_restore(struct etnaviv_gpu *gpu);
|
2015-12-04 00:21:29 +07:00
|
|
|
|
|
|
|
#endif /* __ETNAVIV_IOMMU_H__ */
|