diff mbox series

[07/10] hw/misc/pvpanic: add configure query interface

Message ID 1543077273-16201-7-git-send-email-peng.hao2@zte.com.cn (mailing list archive)
State New, archived
Headers show
Series [01/10] hw/misc/pvpanic: Build the pvpanic device in $(common-obj) | expand

Commit Message

Peng Hao Nov. 24, 2018, 4:34 p.m. UTC
Add configure query interface for pvpanic-mmio.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 include/hw/misc/pvpanic.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h
index 066c707..1f20775 100644
--- a/include/hw/misc/pvpanic.h
+++ b/include/hw/misc/pvpanic.h
@@ -57,4 +57,8 @@  static inline uint16_t pvpanic_port(void)
     return object_property_get_uint(o, PVPANIC_IOPORT_PROP, NULL);
 }
 
+static inline Object *pvpanic_mmio(void)
+{
+    return object_resolve_path_type("", TYPE_PVPANIC_MMIO, NULL);
+}
 #endif