Files
2024-06-17 20:18:01 +08:00

37 lines
933 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2020 Loongson Technology Co., Ltd.
*/
#ifndef _ASM_LOONGARCH_EFI_H
#define _ASM_LOONGARCH_EFI_H
#include <linux/efi.h>
extern void __init efi_init(void);
extern void __init efi_runtime_init(void);
#define ARCH_EFI_IRQ_FLAGS_MASK 0x00000001 /*bit0: CP0 Status.IE*/
static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
{
}
#define arch_efi_call_virt_setup() \
({ \
})
#define arch_efi_call_virt(p, f, args...) \
({ \
efi_##f##_t * __f; \
__f = p->f; \
__f(args); \
})
#define arch_efi_call_virt_teardown() \
({ \
})
#define EFI_ALLOC_ALIGN SZ_16K
#endif /* _ASM_LOONGARCH_EFI_H */