Currently, the arch_efi_call_virt() assumes all users of it will have defined a type 'efi_##f##_t' to make use of it. Simplify the arch_efi_call_virt() macro by eliminating the explicit need for efi_##f##_t type for every user of this macro. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> [ardb: apply Sudeep's ARM fix to i686, Loongarch and RISC-V too] Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
29 lines
736 B
C
29 lines
736 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
#ifndef _ASM_LOONGARCH_EFI_H
|
|
#define _ASM_LOONGARCH_EFI_H
|
|
|
|
#include <linux/efi.h>
|
|
|
|
void __init efi_init(void);
|
|
void __init efi_runtime_init(void);
|
|
void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
|
|
|
|
#define ARCH_EFI_IRQ_FLAGS_MASK 0x00000004 /* Bit 2: CSR.CRMD.IE */
|
|
|
|
#define arch_efi_call_virt_setup()
|
|
#define arch_efi_call_virt_teardown()
|
|
|
|
#define EFI_ALLOC_ALIGN SZ_64K
|
|
|
|
struct screen_info *alloc_screen_info(void);
|
|
void free_screen_info(struct screen_info *si);
|
|
|
|
static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
|
|
{
|
|
return ULONG_MAX;
|
|
}
|
|
|
|
#endif /* _ASM_LOONGARCH_EFI_H */
|