xref: /linux/arch/powerpc/mm/ptdump/ptdump.h (revision 509d3f45847627f4c5cdce004c3ec79262b5239c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/types.h>
3 #include <linux/seq_file.h>
4 
5 struct flag_info {
6 	u64		mask;
7 	u64		val;
8 	const char	*set;
9 	const char	*clear;
10 	bool		is_val;
11 	int		shift;
12 };
13 
14 struct ptdump_pg_level {
15 	const struct flag_info *flag;
16 	char name[4];
17 	size_t num;
18 	u64 mask;
19 };
20 
21 extern struct ptdump_pg_level pg_level[5];
22 
23 void pt_dump_size(struct seq_file *m, unsigned long delta);
24