[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH V10 6/9] hw/misc/pvpanic: add configure query interfac
From: |
Peng Hao |
Subject: |
[Qemu-arm] [PATCH V10 6/9] hw/misc/pvpanic: add configure query interface |
Date: |
Wed, 28 Nov 2018 20:12:49 +0800 |
Add configure query interface for pvpanic-mmio.
Signed-off-by: Peng Hao <address@hidden>
---
include/hw/misc/pvpanic.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h
index f1a05b2..dc042cf 100644
--- a/include/hw/misc/pvpanic.h
+++ b/include/hw/misc/pvpanic.h
@@ -2,10 +2,12 @@
* QEMU simulated pvpanic device.
*
* Copyright Fujitsu, Corp. 2013
+ * Copyright ZTE Ltd. 2018
*
* Authors:
* Wen Congyang <address@hidden>
* Hu Tao <address@hidden>
+ * Peng Hao <address@hidden>
*
* 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
--
1.8.3.1
- [Qemu-arm] [PATCH V10 1/9] hw/misc/pvpanic: Build the pvpanic device in $(common-obj), (continued)
- [Qemu-arm] [PATCH V10 1/9] hw/misc/pvpanic: Build the pvpanic device in $(common-obj), Peng Hao, 2018/11/27
- [Qemu-arm] [PATCH V10 4/9] hw/arm/virt: Use the pvpanic device, Peng Hao, 2018/11/27
- [Qemu-arm] [PATCH V10 2/9] hw/misc/pvpanic: Cosmetic renaming, Peng Hao, 2018/11/27
- [Qemu-arm] [PATCH V10 3/9] hw/misc/pvpanic: Add the MMIO interface, Peng Hao, 2018/11/27
- [Qemu-arm] [PATCH V10 5/9] hw/arm/virt: add pvpanic device in virt acpi table, Peng Hao, 2018/11/27
- [Qemu-arm] [PATCH V10 6/9] hw/misc/pvpanic: add configure query interface,
Peng Hao <=
- [Qemu-arm] [PATCH V10 9/9] pvpanic : update pvpanic document, Peng Hao, 2018/11/27
- [Qemu-arm] [PATCH V10 7/9] hw/misc/pvpanic: preparing for adding configure interface, Peng Hao, 2018/11/27
[Qemu-arm] [PATCH V10 8/9] hw/misc/pvpanic: realize the configure interface, Peng Hao, 2018/11/27