efi.h 837 B

123456789101112131415161718192021222324252627282930313233343536
  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
  7. #include <linux/efi.h>
  8. void __init efi_init(void);
  9. void __init efi_runtime_init(void);
  10. void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
  11. #define ARCH_EFI_IRQ_FLAGS_MASK 0x00000004 /* Bit 2: CSR.CRMD.IE */
  12. #define arch_efi_call_virt_setup()
  13. #define arch_efi_call_virt_teardown()
  14. #define EFI_ALLOC_ALIGN SZ_64K
  15. #define EFI_RT_VIRTUAL_OFFSET CSR_DMW0_BASE
  16. static inline struct screen_info *alloc_screen_info(void)
  17. {
  18. return &screen_info;
  19. }
  20. static inline void free_screen_info(struct screen_info *si)
  21. {
  22. }
  23. static inline unsigned long efi_get_max_initrd_addr(unsigned long image_addr)
  24. {
  25. return ULONG_MAX;
  26. }
  27. #endif /* _ASM_LOONGARCH_EFI_H */