efi.h (611ac726f9ebbb12f2113e5345ef109660954eeb) | efi.h (8633ef82f101c040427b57d4df7b706261420b94) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _ASM_EFI_H 3#define _ASM_EFI_H 4 5#include <asm/boot.h> 6#include <asm/cpufeature.h> 7#include <asm/fpsimd.h> 8#include <asm/io.h> 9#include <asm/memory.h> 10#include <asm/mmu_context.h> 11#include <asm/neon.h> 12#include <asm/ptrace.h> 13#include <asm/tlbflush.h> 14 15#ifdef CONFIG_EFI 16extern void efi_init(void); | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _ASM_EFI_H 3#define _ASM_EFI_H 4 5#include <asm/boot.h> 6#include <asm/cpufeature.h> 7#include <asm/fpsimd.h> 8#include <asm/io.h> 9#include <asm/memory.h> 10#include <asm/mmu_context.h> 11#include <asm/neon.h> 12#include <asm/ptrace.h> 13#include <asm/tlbflush.h> 14 15#ifdef CONFIG_EFI 16extern void efi_init(void); |
17extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt); |
|
17#else 18#define efi_init() 19#endif 20 21int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md); 22int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md); 23 24#define arch_efi_call_virt_setup() \ --- 55 unchanged lines hidden (view full) --- 80} 81 82#define alloc_screen_info(x...) &screen_info 83 84static inline void free_screen_info(struct screen_info *si) 85{ 86} 87 | 18#else 19#define efi_init() 20#endif 21 22int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md); 23int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md); 24 25#define arch_efi_call_virt_setup() \ --- 55 unchanged lines hidden (view full) --- 81} 82 83#define alloc_screen_info(x...) &screen_info 84 85static inline void free_screen_info(struct screen_info *si) 86{ 87} 88 |
88static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt) 89{ 90} 91 | |
92#define EFI_ALLOC_ALIGN SZ_64K 93 94/* 95 * On ARM systems, virtually remapped UEFI runtime services are set up in two 96 * distinct stages: 97 * - The stub retrieves the final version of the memory map from UEFI, populates 98 * the virt_addr fields and calls the SetVirtualAddressMap() [SVAM] runtime 99 * service to communicate the new mapping to the firmware (Note that the new --- 32 unchanged lines hidden (view full) --- 132 } 133} 134 135void efi_virtmap_load(void); 136void efi_virtmap_unload(void); 137 138static inline void efi_capsule_flush_cache_range(void *addr, int size) 139{ | 89#define EFI_ALLOC_ALIGN SZ_64K 90 91/* 92 * On ARM systems, virtually remapped UEFI runtime services are set up in two 93 * distinct stages: 94 * - The stub retrieves the final version of the memory map from UEFI, populates 95 * the virt_addr fields and calls the SetVirtualAddressMap() [SVAM] runtime 96 * service to communicate the new mapping to the firmware (Note that the new --- 32 unchanged lines hidden (view full) --- 129 } 130} 131 132void efi_virtmap_load(void); 133void efi_virtmap_unload(void); 134 135static inline void efi_capsule_flush_cache_range(void *addr, int size) 136{ |
140 dcache_clean_inval_poc((unsigned long)addr, (unsigned long)addr + size); | 137 __flush_dcache_area(addr, size); |
141} 142 143#endif /* _ASM_EFI_H */ | 138} 139 140#endif /* _ASM_EFI_H */ |