summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-03-20 08:30:14 +1300
committerHeinrich Schuchardt <[email protected]>2023-03-25 11:07:22 +0100
commit041840eeeb129ab979cbc05d6c5fb80162f50add (patch)
tree81429a88821eb48c03138af7d5f5b84ea76062ee /include
parent30c9646eff1e8559865e3eb6581c15e96660d254 (diff)
efi: Split out table-listing code into a new file
This code is used with EFI_LOADER but is also useful (with some modifications) for the EFI app and payload. Move it into a shared file. Show the address of the table so it can be examined if needed. Also show the table name as unknown if necessary. Our list of GUIDs is fairly small. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/efi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h
index 2f312da3cba..f0e5faa7549 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -648,4 +648,13 @@ int efi_call_exit_boot_services(void);
int efi_get_mmap(struct efi_mem_desc **descp, int *sizep, uint *keyp,
int *desc_sizep, uint *versionp);
+/**
+ * efi_show_tables() - Show a list of available tables
+ *
+ * Shows the address, GUID (and name where known) for each table
+ *
+ * @systab: System table containing the list of tables
+ */
+void efi_show_tables(struct efi_system_table *systab);
+
#endif /* _LINUX_EFI_H */