Received: by 10.25.208.211 with SMTP id h202csp1439908lfg; Mon, 7 Mar 2016 07:19:25 -0800 (PST) X-Received: by 10.140.131.6 with SMTP id 6mr29348315qhd.67.1457363965498; Mon, 07 Mar 2016 07:19:25 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l74si17193439qgl.121.2016.03.07.07.19.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 07 Mar 2016 07:19:25 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Received: from localhost ([::1]:56357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acwwP-0004pS-0i for alex.bennee@linaro.org; Mon, 07 Mar 2016 10:19:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acwwJ-0004oN-BY for qemu-arm@nongnu.org; Mon, 07 Mar 2016 10:19:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acwwE-00057V-HY for qemu-arm@nongnu.org; Mon, 07 Mar 2016 10:19:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acwwE-00057F-CZ; Mon, 07 Mar 2016 10:19:14 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 0FBEB4C0B8; Mon, 7 Mar 2016 15:19:14 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.34.112.60]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u27FJBIt013702; Mon, 7 Mar 2016 10:19:12 -0500 From: Igor Mammedov To: qemu-devel@nongnu.org Date: Mon, 7 Mar 2016 16:19:02 +0100 Message-Id: <1457363948-71300-1-git-send-email-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 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 Subject: [Qemu-arm] [PATCH 0/6] acpi: simplify bios_linker API X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: G7RSaJn7Dv7P 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