summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_domain.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi/sbi_domain.h')
-rw-r--r--include/sbi/sbi_domain.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sbi/sbi_domain.h b/include/sbi/sbi_domain.h
index 1f8b942..f9f4f7d 100644
--- a/include/sbi/sbi_domain.h
+++ b/include/sbi/sbi_domain.h
@@ -128,6 +128,20 @@ ulong sbi_domain_get_assigned_hartmask(const struct sbi_domain *dom,
void sbi_domain_memregion_initfw(struct sbi_domain_memregion *reg);
/**
+ * Initialize a domain memory region based on it's physical
+ * address and size.
+ *
+ * @param addr start physical address of memory region
+ * @param size physical size of memory region
+ * @param flags memory region flags
+ * @param reg pointer to memory region being initialized
+ */
+void sbi_domain_memregion_init(unsigned long addr,
+ unsigned long size,
+ unsigned long flags,
+ struct sbi_domain_memregion *reg);
+
+/**
* Check whether we can access specified address for given mode and
* memory region flags under a domain
* @param dom pointer to domain