diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2017-02-15 20:34:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-09 07:36:14 +0100 |
commit | 83c9ce1dbc41f9e1d609a3047c9a035168cdf22f (patch) | |
tree | 629ce3a18a9447b4e057981da4fbb4c963bb06e0 /include | |
parent | 7e3fcac20a499a268d3374d8fc515044e3bcf6f0 (diff) | |
download | barebox-83c9ce1dbc41f9e1d609a3047c9a035168cdf22f.tar.gz barebox-83c9ce1dbc41f9e1d609a3047c9a035168cdf22f.tar.xz |
efi: bus: add firmware vendor and resision and tables info
This alllow us to known where we boot from
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/efi.h b/include/efi.h index fa6fb27821..4b812c9ab6 100644 --- a/include/efi.h +++ b/include/efi.h @@ -488,6 +488,11 @@ extern efi_guid_t efi_block_io_protocol_guid; extern efi_guid_t efi_barebox_vendor_guid; extern efi_guid_t efi_systemd_vendor_guid; +typedef struct { + efi_guid_t guid; + unsigned long table; +} efi_config_table_t; + #define EFI_SYSTEM_TABLE_SIGNATURE ((u64)0x5453595320494249ULL) #define EFI_2_30_SYSTEM_TABLE_REVISION ((2 << 16) | (30)) @@ -510,7 +515,7 @@ typedef struct { efi_runtime_services_t *runtime; efi_boot_services_t *boottime; unsigned long nr_tables; - unsigned long tables; + efi_config_table_t *tables; } efi_system_table_t; typedef struct { |