Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / loongarch / include / asm / efi.h
blobeddc8e79b3fae7ba6688e702164f4c2c9d204811
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5 #ifndef _ASM_LOONGARCH_EFI_H
6 #define _ASM_LOONGARCH_EFI_H
8 #include <linux/efi.h>
10 void __init efi_init(void);
11 void __init efi_runtime_init(void);
12 void __init *efi_fdt_pointer(void);
13 void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
15 #define ARCH_EFI_IRQ_FLAGS_MASK 0x00000004 /* Bit 2: CSR.CRMD.IE */
17 #define arch_efi_call_virt_setup()
18 #define arch_efi_call_virt_teardown()
20 #define EFI_ALLOC_ALIGN SZ_64K
21 #define EFI_RT_VIRTUAL_OFFSET CSR_DMW0_BASE
23 static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
25 return ULONG_MAX;
28 static inline unsigned long efi_get_kimg_min_align(void)
30 return SZ_2M;
33 #define EFI_KIMG_PREFERRED_ADDRESS PHYSADDR(VMLINUX_LOAD_ADDRESS)
35 #endif /* _ASM_LOONGARCH_EFI_H */