aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/io-pgtable.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-12-14 23:34:50 +0200
committerWill Deacon <will.deacon@arm.com>2015-01-19 14:46:45 +0000
commitc896c132b01895fd1445d178e36155b671c6f9ee (patch)
treec3eb6cde7882626616ca25f31084ec918fbc2238 /drivers/iommu/io-pgtable.h
parentiommu: add self-consistency tests to ARM LPAE IO page table allocator (diff)
downloadlinux-dev-c896c132b01895fd1445d178e36155b671c6f9ee.tar.xz
linux-dev-c896c132b01895fd1445d178e36155b671c6f9ee.zip
iommu: io-pgtable-arm: add non-secure quirk
The quirk causes the Non-Secure bit to be set in all page table entries. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/io-pgtable.h')
-rw-r--r--drivers/iommu/io-pgtable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/io-pgtable.h b/drivers/iommu/io-pgtable.h
index 05c4e593a25f..10e32f69c668 100644
--- a/drivers/iommu/io-pgtable.h
+++ b/drivers/iommu/io-pgtable.h
@@ -43,7 +43,8 @@ struct iommu_gather_ops {
* @tlb: TLB management callbacks for this set of tables.
*/
struct io_pgtable_cfg {
- int quirks; /* IO_PGTABLE_QUIRK_* */
+ #define IO_PGTABLE_QUIRK_ARM_NS (1 << 0) /* Set NS bit in PTEs */
+ int quirks;
unsigned long pgsize_bitmap;
unsigned int ias;
unsigned int oas;