From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acwwY-0004tb-Sz for qemu-devel@nongnu.org; Mon, 07 Mar 2016 10:19:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acwwN-0005IA-IL for qemu-devel@nongnu.org; Mon, 07 Mar 2016 10:19:34 -0500 From: Igor Mammedov Date: Mon, 7 Mar 2016 16:19:02 +0100 Message-Id: <1457363948-71300-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] acpi: simplify bios_linker API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, guangrong.xiao@linux.intel.com, ehabkost@redhat.com, mst@redhat.com, qemu-arm@nongnu.org, zhaoshenglong@huawei.com, pbonzini@redhat.com Simplify bios_linker API by adding filei name + blob tracking so user would have to suppily less arguments which reduces chances of mistake by using wrong blob pointer with not related file. And also refactor API to take file offsets, as it's what actually API were doing only internally, instead of using host pointers. I hope ti makes it easier for API user to use API without need to look at implementation on QEMU/SeaBIOS. Igor Mammedov (6): acpi: convert linker from GArray to BOISLinker structure acpi: simplify bios_linker API by removing redundant 'table' argument acpi: cleanup bios_linker_loader_cleanup() tpm: apci: cleanup TCPA table initialization acpi: make bios_linker_loader_add_pointer() API offset based acpi: make bios_linker_loader_add_checksum() API offset based hw/acpi/aml-build.c | 33 +++---- hw/acpi/bios-linker-loader.c | 179 +++++++++++++++++++++-------------- hw/acpi/nvdimm.c | 6 +- hw/arm/virt-acpi-build.c | 51 +++++----- hw/i386/acpi-build.c | 89 +++++++++-------- include/hw/acpi/aml-build.h | 7 +- include/hw/acpi/bios-linker-loader.h | 28 +++--- include/hw/mem/nvdimm.h | 3 +- 8 files changed, 222 insertions(+), 174 deletions(-) -- 1.8.3.1