1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #include <linux/types.h> 3 4 struct flag_info { 5 u64 mask; 6 u64 val; 7 const char *set; 8 const char *clear; 9 bool is_val; 10 int shift; 11 }; 12 13 struct pgtable_level { 14 const struct flag_info *flag; 15 size_t num; 16 u64 mask; 17 }; 18 19 extern struct pgtable_level pg_level[5];