@@ -2,10 +2,12 @@
* QEMU simulated pvpanic device.
*
* Copyright Fujitsu, Corp. 2013
+ * Copyright ZTE Ltd. 2018
*
* Authors:
* Wen Congyang <wency@cn.fujitsu.com>
* Hu Tao <hutao@cn.fujitsu.com>
+ * Peng Hao <peng.hao2@zte.com.cn>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
@@ -28,4 +30,9 @@ 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
Add configure query interface for pvpanic-mmio. Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> --- include/hw/misc/pvpanic.h | 7 +++++++ 1 file changed, 7 insertions(+)