1 /*
2 * Copyright 2019 The Hafnium Authors.
3 *
4 * Use of this source code is governed by a BSD-style
5 * license that can be found in the LICENSE file or at
6 * https://opensource.org/licenses/BSD-3-Clause.
7 */
8
9 #include "hf/plat/iommu.h"
10
plat_iommu_init(const struct fdt * fdt,struct mm_stage1_locked stage1_locked,struct mpool * ppool)11 bool plat_iommu_init(const struct fdt *fdt,
12 struct mm_stage1_locked stage1_locked, struct mpool *ppool)
13 {
14 (void)fdt;
15 (void)stage1_locked;
16 (void)ppool;
17
18 return true;
19 }
20
plat_iommu_unmap_iommus(struct vm_locked vm_locked,struct mpool * ppool)21 bool plat_iommu_unmap_iommus(struct vm_locked vm_locked, struct mpool *ppool)
22 {
23 (void)vm_locked;
24 (void)ppool;
25
26 return true;
27 }
28
plat_iommu_identity_map(struct vm_locked vm_locked,paddr_t begin,paddr_t end,uint32_t mode)29 void plat_iommu_identity_map(struct vm_locked vm_locked, paddr_t begin,
30 paddr_t end, uint32_t mode)
31 {
32 (void)vm_locked;
33 (void)begin;
34 (void)end;
35 (void)mode;
36 }
37
plat_iommu_attach_peripheral(struct mm_stage1_locked stage1_locked,struct vm_locked vm_locked,const struct manifest_vm * manifest_vm,struct mpool * ppool)38 bool plat_iommu_attach_peripheral(struct mm_stage1_locked stage1_locked,
39 struct vm_locked vm_locked,
40 const struct manifest_vm *manifest_vm,
41 struct mpool *ppool)
42 {
43 (void)stage1_locked;
44 (void)vm_locked;
45 (void)manifest_vm;
46 (void)ppool;
47
48 return true;
49 }
50