aboutsummaryrefslogtreecommitdiffstats
path: root/src/fw/smbios.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-12-10 10:10:42 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-12-18 11:39:12 -0500
commit97f6c5b0246225c5b5341e13af6e5578ccedb190 (patch)
tree461fb5df98675168453a5d8dddf91e58fc52b389 /src/fw/smbios.c
parent7b02616560f908a2d34009d87ceed0306a851420 (diff)
downloadseabios-97f6c5b0246225c5b5341e13af6e5578ccedb190.tar.gz
smbios: Rename code specific for SMBIOS 2.1 entry points
Rename copy_smbios(), smbios_next(), SMBIOS_SIGNATURE, smbios_entry_point, and SMBiosAddr, to indicate they refer to SMBIOS 2.1 entry points. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'src/fw/smbios.c')
-rw-r--r--src/fw/smbios.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fw/smbios.c b/src/fw/smbios.c
index 62a563b2..730b6898 100644
--- a/src/fw/smbios.c
+++ b/src/fw/smbios.c
@@ -11,13 +11,13 @@
#include "output.h" // dprintf
#include "paravirt.h" // RamSize
#include "romfile.h" // romfile_findprefix
-#include "std/smbios.h" // struct smbios_entry_point
+#include "std/smbios.h" // struct smbios_21_entry_point
#include "string.h" // memset
#include "util.h" // MaxCountCPUs
#include "x86.h" // cpuid
static void
-smbios_entry_point_setup(u16 max_structure_size,
+smbios_21_entry_point_setup(u16 max_structure_size,
u16 structure_table_length,
void *structure_table_address,
u16 number_of_structures)
@@ -35,9 +35,9 @@ smbios_entry_point_setup(u16 max_structure_size,
}
memcpy(finaltable, structure_table_address, structure_table_length);
- struct smbios_entry_point ep;
+ struct smbios_21_entry_point ep;
memset(&ep, 0, sizeof(ep));
- ep.signature = SMBIOS_SIGNATURE;
+ ep.signature = SMBIOS_21_SIGNATURE;
ep.length = 0x1f;
ep.smbios_major_version = 2;
ep.smbios_minor_version = 4;
@@ -53,7 +53,7 @@ smbios_entry_point_setup(u16 max_structure_size,
ep.intermediate_checksum -= checksum((void*)&ep + 0x10, ep.length - 0x10);
- copy_smbios(&ep);
+ copy_smbios_21(&ep);
}
static int
@@ -584,6 +584,6 @@ smbios_legacy_setup(void)
#undef add_struct
- smbios_entry_point_setup(max_struct_size, p - start, start, nr_structs);
+ smbios_21_entry_point_setup(max_struct_size, p - start, start, nr_structs);
free(start);
}