summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/dump_linuxpagetables.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/dump_linuxpagetables.h')
-rw-r--r--arch/powerpc/mm/dump_linuxpagetables.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/powerpc/mm/dump_linuxpagetables.h b/arch/powerpc/mm/dump_linuxpagetables.h
new file mode 100644
index 000000000000..5d513636de73
--- /dev/null
+++ b/arch/powerpc/mm/dump_linuxpagetables.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <linux/types.h>
+
+struct flag_info {
+ u64 mask;
+ u64 val;
+ const char *set;
+ const char *clear;
+ bool is_val;
+ int shift;
+};
+
+struct pgtable_level {
+ const struct flag_info *flag;
+ size_t num;
+ u64 mask;
+};
+
+extern struct pgtable_level pg_level[5];