1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ASM_RISCV_VMALLOC_H
3 #define _ASM_RISCV_VMALLOC_H
5 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
7 extern bool pgtable_l4_enabled
, pgtable_l5_enabled
;
9 #define IOREMAP_MAX_ORDER (PUD_SHIFT)
11 #define arch_vmap_pud_supported arch_vmap_pud_supported
12 static inline bool arch_vmap_pud_supported(pgprot_t prot
)
14 return pgtable_l4_enabled
|| pgtable_l5_enabled
;
17 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
18 static inline bool arch_vmap_pmd_supported(pgprot_t prot
)
25 #endif /* _ASM_RISCV_VMALLOC_H */