]> git.proxmox.com Git - qemu.git/blobdiff - hw/timer/hpet.c
hpet: add API to find it
[qemu.git] / hw / timer / hpet.c
index fcd22aea59d8193dbd16aaa1e02bfe8c85df08fc..2eb75ea945005b22148d2071211735bd0d703201 100644 (file)
@@ -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,