Add TranslationGranule module
Collect all translation granule related calculations into the
TranslationGranule module.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I96286fe3f62d87541615189ce879b944507d493b
diff --git a/src/lib.rs b/src/lib.rs
index 74d4f88..f5b1962 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -30,6 +30,7 @@
pub mod address;
mod descriptor;
+mod granule;
pub mod kernel_space;
pub mod page_pool;
mod region;
@@ -161,6 +162,8 @@
EL3, // EL3, TTBR0_EL3
}
+pub type TranslationGranule<const VA_BITS: usize> = granule::TranslationGranule<VA_BITS>;
+
pub struct Xlat {
base_table: Box<BaseTable>,
page_pool: PagePool,