1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
5 #ifndef _ASM_LOONGARCH_EFI_H
6 #define _ASM_LOONGARCH_EFI_H
10 void __init efi_init(void);
11 void __init efi_runtime_init(void);
12 void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
14 #define ARCH_EFI_IRQ_FLAGS_MASK 0x00000004 /* Bit 2: CSR.CRMD.IE */
16 #define arch_efi_call_virt_setup()
17 #define arch_efi_call_virt_teardown()
19 #define EFI_ALLOC_ALIGN SZ_64K
20 #define EFI_RT_VIRTUAL_OFFSET CSR_DMW0_BASE
22 static inline struct screen_info *alloc_screen_info(void)
27 static inline void free_screen_info(struct screen_info *si)
31 static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
36 #endif /* _ASM_LOONGARCH_EFI_H */