[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 5/9] acpi: expose acpi_checksum()
From: |
Chao Peng |
Subject: |
[Qemu-devel] [RFC 5/9] acpi: expose acpi_checksum() |
Date: |
Fri, 17 Jun 2016 04:14:13 -0400 |
From: Haozhong Zhang <address@hidden>
It will be used in later commits.
Signed-off-by: Haozhong Zhang <address@hidden>
---
hw/acpi/core.c | 2 +-
include/hw/acpi/acpi.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/acpi/core.c b/hw/acpi/core.c
index d24b9a9..70ad6ff 100644
--- a/hw/acpi/core.c
+++ b/hw/acpi/core.c
@@ -69,7 +69,7 @@ static void acpi_register_config(void)
opts_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;
diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h
index c717f15..b23eff8 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -188,4 +188,6 @@ struct AcpiSlicOem {
};
int acpi_get_slic_oem(AcpiSlicOem *oem);
+int acpi_checksum(const uint8_t *data, int len);
+
#endif /* !QEMU_HW_ACPI_H */
--
1.8.3.1
- [Qemu-devel] [RFC 0/9] Introduce light weight PC platform pc-lite, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 2/9] pci: introduce light weight PCIE Host emulation pci-lite, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 3/9] acpi: add support for pc-lite platform, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 1/9] acpi: introduce light weight ACPI PM emulation pm-lite, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 7/9] pc: skip setting CMOS data when RTC device is unavailable, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 5/9] acpi: expose acpi_checksum(),
Chao Peng <=
- [Qemu-devel] [RFC 4/9] acpi: expose data structurs and functions of BIOS linker loader, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 8/9] pc: support direct loading protected/long mode kernel, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 6/9] acpi: patch guest ACPI for pc-lite, Chao Peng, 2016/06/17
- [Qemu-devel] [RFC 9/9] pc: introduce light weight PC board pc-lite, Chao Peng, 2016/06/17
- Re: [Qemu-devel] [RFC 0/9] Introduce light weight PC platform pc-lite, Paolo Bonzini, 2016/06/17