From patchwork Mon Apr 8 13:13:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 234774 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DB10D2C0100 for ; Mon, 8 Apr 2013 23:39:59 +1000 (EST) Received: from localhost ([::1]:57125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPBsV-0004uK-P8 for incoming@patchwork.ozlabs.org; Mon, 08 Apr 2013 09:12:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPBr4-000379-8Z for qemu-devel@nongnu.org; Mon, 08 Apr 2013 09:11:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPBqv-0004Mv-Ej for qemu-devel@nongnu.org; Mon, 08 Apr 2013 09:11:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPBqv-0004Mj-7f for qemu-devel@nongnu.org; Mon, 08 Apr 2013 09:11:17 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r38DBGL2007277 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Apr 2013 09:11:16 -0400 Received: from lacos-laptop.usersys.redhat.com (vpn1-7-196.ams2.redhat.com [10.36.7.196]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r38DB9BY030228; Mon, 8 Apr 2013 09:11:15 -0400 From: Laszlo Ersek To: aliguori@us.ibm.com, qemu-devel@nongnu.org, seabios@seabios.org Date: Mon, 8 Apr 2013 15:13:22 +0200 Message-Id: <1365426803-1781-5-git-send-email-lersek@redhat.com> In-Reply-To: <1365426803-1781-1-git-send-email-lersek@redhat.com> References: <1365426803-1781-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [qemu PATCH 4/5] hw/acpi: export acpi_checksum() X-BeenThere: qemu-devel@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-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Again, this enables reuse when preparing per-table fw_cfg blobs later. Signed-off-by: Laszlo Ersek --- hw/acpi.h | 2 ++ hw/acpi.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/acpi.h b/hw/acpi.h index e3e17e9..2c89e59 100644 --- a/hw/acpi.h +++ b/hw/acpi.h @@ -167,4 +167,6 @@ typedef struct acpi_table_std_header { } QEMU_PACKED AcpiTableStdHdr; extern const AcpiTableStdHdr acpi_dfl_hdr; + +int acpi_checksum(const uint8_t *data, int len); #endif /* !QEMU_HW_ACPI_H */ diff --git a/hw/acpi.c b/hw/acpi.c index f24be53..07634e1 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -69,7 +69,7 @@ static void acpi_register_config(void) machine_init(acpi_register_config); -static int acpi_checksum(const uint8_t *data, int len) +int acpi_checksum(const uint8_t *data, int len) { int sum, i; sum = 0;