summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/include/mpc8260/mmu.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/include/mpc8260/mmu.h')
-rw-r--r--bsps/powerpc/include/mpc8260/mmu.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/bsps/powerpc/include/mpc8260/mmu.h b/bsps/powerpc/include/mpc8260/mmu.h
new file mode 100644
index 0000000000..9445dde3bc
--- /dev/null
+++ b/bsps/powerpc/include/mpc8260/mmu.h
@@ -0,0 +1,47 @@
+/*
+ * mmu.h
+ *
+ * This include file contains definitions pertaining
+ * to the MMU on the MPC8xx.
+ *
+ * Copyright (c) 1999, National Research Council of Canada
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef _MPC8260_MMU_H
+#define _MPC8260_MMU_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * The MMU_TLB_table is used to statically initialize the Table Lookaside
+ * Buffers in the MMU of an MPC8260.
+ */
+typedef struct {
+ uint32_t mmu_epn; /* Effective Page Number */
+ uint32_t mmu_twc; /* Tablewalk Control Register */
+ uint32_t mmu_rpn; /* Real Page Number */
+} MMU_TLB_table_t;
+
+/*
+ * The MMU_TLB_table and its size, MMU_N_TLB_Table_Entries, must be
+ * supplied by the BSP.
+ */
+extern MMU_TLB_table_t MMU_TLB_table[]; /* MMU TLB table supplied by BSP */
+extern int MMU_N_TLB_Table_Entries; /* Number of entries in MMU TLB table */
+
+/* Functions */
+
+void mmu_init( void );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */