qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: qemu-devel@nongnu.org, mst@redhat.com
Subject: [Qemu-devel] [PATCH v2 5/7] hw/acpi: export acpi_checksum()
Date: Mon, 15 Apr 2013 22:47:50 +0200	[thread overview]
Message-ID: <1366058872-11196-6-git-send-email-lersek@redhat.com> (raw)
In-Reply-To: <1366058872-11196-1-git-send-email-lersek@redhat.com>

Again, this enables reuse when preparing per-table fw_cfg blobs later.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---
 include/hw/acpi/acpi.h |    2 ++
 hw/acpi/core.c         |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h
index bc7e107..7e51110 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -180,4 +180,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/core.c b/hw/acpi/core.c
index 36a4d03..3be7e09 100644
--- a/hw/acpi/core.c
+++ b/hw/acpi/core.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;
-- 
1.7.1

  parent reply	other threads:[~2013-04-15 20:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 20:47 [Qemu-devel] [PATCH v2 0/7] publish etc/acpi/APIC in fw_cfg Laszlo Ersek
2013-04-15 20:47 ` [Qemu-devel] [PATCH v2 1/7] refer to FWCfgState explicitly Laszlo Ersek
2013-04-15 20:47 ` [Qemu-devel] [PATCH v2 2/7] acpi_table_install(): fix funcparam formatting in leading comment Laszlo Ersek
2013-04-15 20:47 ` [Qemu-devel] [PATCH v2 3/7] hw/acpi: extract standard table headers as a standalone structure Laszlo Ersek
2013-04-15 20:47 ` [Qemu-devel] [PATCH v2 4/7] hw/acpi: export default ACPI headers using the type just introduced Laszlo Ersek
2013-04-15 20:47 ` Laszlo Ersek [this message]
2013-04-15 20:47 ` [Qemu-devel] [PATCH v2 6/7] hw/i386/pc.c: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/apic.h Laszlo Ersek
2013-04-15 21:06   ` Eric Blake
2013-04-15 21:27     ` Laszlo Ersek
2013-04-15 20:47 ` [Qemu-devel] [PATCH v2 7/7] hw/i386: build ACPI MADT (APIC) for fw_cfg clients Laszlo Ersek
2013-04-15 21:11   ` Eric Blake
2013-04-15 21:32     ` Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1366058872-11196-6-git-send-email-lersek@redhat.com \
    --to=lersek@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).