blob: 3d36a526aedef223c4fa7cc255cf922259e8f154 [file] [log] [blame]
Patrick Daly23301482017-10-12 16:18:25 -07001/*
2 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#ifndef __ARM_SMMU_ERRATA_H__
16#define __ARM_SMMU_ERRATA_H__
17
18#define ARM_SMMU_MIN_IOVA_ALIGN SZ_16K
19#define ARM_SMMU_GUARD_PROT (IOMMU_READ | IOMMU_WRITE | IOMMU_GUARD)
20
21#ifdef CONFIG_ARM_SMMU
22
23struct page *arm_smmu_errata_get_guard_page(int vmid);
24#else
25
26static inline struct page *arm_smmu_errata_get_guard_page(
27 int vmid)
28{
29 return NULL;
30}
31#endif
32#endif