We should use lower bits for domain memory region access permissions
and higher bits for other domain memory region attributes. This helps
us use same bit assignment for parsing domain memory region access
permissions from device tree.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
#define SBI_DOMAIN_MEMREGION_READABLE (1UL << 0)
#define SBI_DOMAIN_MEMREGION_WRITEABLE (1UL << 1)
#define SBI_DOMAIN_MEMREGION_EXECUTABLE (1UL << 2)
-#define SBI_DOMAIN_MEMREGION_MMIO (1UL << 3)
-#define SBI_DOMAIN_MEMREGION_MMODE (1UL << 4)
+#define SBI_DOMAIN_MEMREGION_MMODE (1UL << 3)
+#define SBI_DOMAIN_MEMREGION_ACCESS_MASK (0xfUL)
+
+#define SBI_DOMAIN_MEMREGION_MMIO (1UL << 31)
unsigned long flags;
};