Received: from eggs.gnu.org ([2001:4830:134:3::10]:48086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQTAq-00007J-RC for qemu-devel@nongnu.org; Sat, 24 Nov 2018 03:20:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQT47-0005rg-U8 for qemu-devel@nongnu.org; Sat, 24 Nov 2018 03:13:24 -0500 From: Peng Hao Date: Sun, 25 Nov 2018 00:34:30 +0800 Message-Id: <1543077273-16201-7-git-send-email-peng.hao2@zte.com.cn> In-Reply-To: <1543077273-16201-1-git-send-email-peng.hao2@zte.com.cn> References: <1543077273-16201-1-git-send-email-peng.hao2@zte.com.cn> Subject: [Qemu-devel] [PATCH 07/10] hw/misc/pvpanic: add configure query interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, drjones@redhat.com, philmd@redhat.com Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, Peng Hao Add configure query interface for pvpanic-mmio. Signed-off-by: Peng Hao --- include/hw/misc/pvpanic.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.8.3.1