diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-10 15:06:27 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-12-18 11:39:12 -0500 |
commit | b251b21b2bb39e819321d89f48d14cb0559a0036 (patch) | |
tree | 05375b73354f2ab1fb12cbfa2ccec5d692097d8a /src/fw/biostables.c | |
parent | cfd1ef3ab92da94bebee84947abe2b8cad1ae1bc (diff) | |
download | seabios-b251b21b2bb39e819321d89f48d14cb0559a0036.tar.gz |
smbios: smbios_get_tables() function
The new function will be useful for code that just needs the
address and length of SMBIOS tables.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'src/fw/biostables.c')
-rw-r--r-- | src/fw/biostables.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fw/biostables.c b/src/fw/biostables.c index 3c30331e..1adc694c 100644 --- a/src/fw/biostables.c +++ b/src/fw/biostables.c @@ -315,6 +315,15 @@ copy_smbios_21(void *pos) SMBios21Addr = copy_fseg_table("SMBIOS", pos, p->length); } +void *smbios_get_tables(u32 *length) +{ + if (SMBios21Addr) { + *length = SMBios21Addr->structure_table_length; + return (void *)SMBios21Addr->structure_table_address; + } + return NULL; +} + void display_uuid(void) { |