[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v9 23/27] hpet: add API to find it
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH v9 23/27] hpet: add API to find it |
Date: |
Mon, 7 Oct 2013 12:36:37 +0300 |
Add API to find HPET using QOM.
Reviewed-by: Gerd Hoffmann <address@hidden>
Tested-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
include/hw/timer/hpet.h | 2 ++
hw/timer/hpet.c | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/include/hw/timer/hpet.h b/include/hw/timer/hpet.h
index 757f79f..ab44bd3 100644
--- a/include/hw/timer/hpet.h
+++ b/include/hw/timer/hpet.h
@@ -71,4 +71,6 @@ struct hpet_fw_config
} QEMU_PACKED;
extern struct hpet_fw_config hpet_cfg;
+
+bool hpet_find(void);
#endif
diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
index fcd22ae..2eb75ea 100644
--- a/hw/timer/hpet.c
+++ b/hw/timer/hpet.c
@@ -757,6 +757,11 @@ static void hpet_device_class_init(ObjectClass *klass,
void *data)
dc->props = hpet_device_properties;
}
+bool hpet_find(void)
+{
+ return object_resolve_path_type("", TYPE_HPET, NULL);
+}
+
static const TypeInfo hpet_device_info = {
.name = TYPE_HPET,
.parent = TYPE_SYS_BUS_DEVICE,
--
MST
- [Qemu-devel] [PATCH v9 13/27] acpi: pre-compiled ASL files, (continued)
- [Qemu-devel] [PATCH v9 13/27] acpi: pre-compiled ASL files, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 14/27] acpi: ssdt pcihp: updat generated file, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 15/27] loader: use file path size from fw_cfg.h, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 16/27] i386: add bios linker/loader, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 17/27] loader: allow adding ROMs in done callbacks, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 18/27] i386: define pc guest info, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 19/27] acpi/piix: add macros for acpi property names, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 20/27] piix: APIs for pc guest info, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 21/27] ich9: APIs for pc guest info, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 22/27] pvpanic: add API to access io port, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 23/27] hpet: add API to find it,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH v9 24/27] i386: ACPI table generation code from seabios, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 25/27] ssdt: fix PBLK length, Michael S. Tsirkin, 2013/10/07
- [Qemu-devel] [PATCH v9 26/27] ssdt-proc: update generated file, Michael S. Tsirkin, 2013/10/07
- Re: [Qemu-devel] [PATCH v9 00/27] qemu: generate acpi tables for the guest, Igor Mammedov, 2013/10/07
- [Qemu-devel] [PATCH v9 27/27] don't post me: update bios, Michael S. Tsirkin, 2013/10/07
- Re: [Qemu-devel] [PATCH v9 00/27] qemu: generate acpi tables for the guest, Andreas Färber, 2013/10/07
- Re: [Qemu-devel] [PATCH v9 00/27] qemu: generate acpi tables for the guest, Michael S. Tsirkin, 2013/10/13