efi: Merge EFI system table revision and vendor checks
We have three different versions of the code that checks the EFI system table revision and copies the firmware vendor string, and they are mostly equivalent, with the exception of the use of early_memremap_ro vs. __va() and the lowest major revision to warn about. Let's move this into common code and factor out the commonalities. Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64 Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
@@ -616,6 +616,10 @@ static inline void efi_esrt_init(void) { }
|
||||
#endif
|
||||
extern int efi_config_parse_tables(void *config_tables, int count, int sz,
|
||||
efi_config_table_type_t *arch_tables);
|
||||
extern int efi_systab_check_header(const efi_table_hdr_t *systab_hdr,
|
||||
int min_major_version);
|
||||
extern void efi_systab_report_header(const efi_table_hdr_t *systab_hdr,
|
||||
unsigned long fw_vendor);
|
||||
extern u64 efi_get_iobase (void);
|
||||
extern int efi_mem_type(unsigned long phys_addr);
|
||||
extern u64 efi_mem_attributes (unsigned long phys_addr);
|
||||
|
||||
Reference in New Issue
Block a user