From: Laszlo Ersek <lersek@redhat.com>
To: aliguori@us.ibm.com, qemu-devel@nongnu.org, seabios@seabios.org
Subject: [Qemu-devel] [qemu PATCH 4/5] hw/acpi: export acpi_checksum()
Date: Mon, 8 Apr 2013 15:13:22 +0200 [thread overview]
Message-ID: <1365426803-1781-5-git-send-email-lersek@redhat.com> (raw)
In-Reply-To: <1365426803-1781-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>
---
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;
--
1.7.1
next prev parent reply other threads:[~2013-04-08 13:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-08 13:13 [Qemu-devel] [qemu PATCH 0/5] publish etc/acpi/APIC in fw_cfg Laszlo Ersek
2013-04-08 13:13 ` [Qemu-devel] [qemu PATCH 1/5] refer to FWCfgState explicitly Laszlo Ersek
2013-04-08 13:13 ` [Qemu-devel] [qemu PATCH 2/5] hw/acpi: extract standard table headers as a standalone structure Laszlo Ersek
2013-04-08 13:13 ` [Qemu-devel] [qemu PATCH 3/5] hw/acpi: export default ACPI headers using the type just introduced Laszlo Ersek
2013-04-08 13:13 ` Laszlo Ersek [this message]
2013-04-08 13:13 ` [Qemu-devel] [qemu PATCH 5/5] i386/pc: build ACPI MADT (APIC) for fw_cfg clients 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=1365426803-1781-5-git-send-email-lersek@redhat.com \
--to=lersek@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.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).