This patch series isolates acpi.c to the code that generates acpi tables and isolates smbios.c to the code that generates smbios tables. The code not specific to table generation (eg, parsing logic) is moved to biostables.c. Finally the bios table generation code is marked so that developers are warned against trying to add enhancements.
I've also added a patch here to refactor the way the bios tables are copied to their final locations when seabios does generate them. The code will now use the same mechanism that coreboot/csm would use when copying tables.
-Kevin
Kevin O'Connor (5): acpi: Move acpi parsing logic from acpi.c to biostables.c / paravirt.c. smbios: Move smbios parsing logic from smbios.c to biostables.c. Move PirAddr definition from pirtable.c to biostables.c. Use biostables.c for copying bios tables even when generating them. Document no new changes to pirtable.c, mptable.c, acpi.c, and smbios.c.
src/fw/acpi.c | 149 +++------------------------------- src/fw/biostables.c | 228 ++++++++++++++++++++++++++++++++++++++++++++++++---- src/fw/mptable.c | 34 +++----- src/fw/paravirt.c | 22 +++++ src/fw/pirtable.c | 11 +-- src/fw/smbios.c | 108 ++++--------------------- src/util.h | 21 ++--- 7 files changed, 284 insertions(+), 289 deletions(-)