summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/ptdump/ptdump.h
blob: 5d513636de73a1cfe8fb0da407898f7c8da38312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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];