summaryrefslogtreecommitdiff
path: root/hw/display/qxl.h
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-05-12 17:27:10 +0800
committerGerd Hoffmann <kraxel@redhat.com>2015-05-19 11:40:01 +0200
commitc69f6c7dcf6164ee0ee3b00bec27dfdec4e8b661 (patch)
treec3485c8d4e11edb8329a9c7dada7b5523ca14e3a /hw/display/qxl.h
parentd338bae33a76d02678ea706622dfcc26b8b8325c (diff)
downloadqemu-c69f6c7dcf6164ee0ee3b00bec27dfdec4e8b661.tar.gz
qxl: QOMify
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/qxl.h')
-rw-r--r--hw/display/qxl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/display/qxl.h b/hw/display/qxl.h
index 412e346b68..deddd54d2f 100644
--- a/hw/display/qxl.h
+++ b/hw/display/qxl.h
@@ -122,6 +122,9 @@ typedef struct PCIQXLDevice {
QEMUBH *update_area_bh;
} PCIQXLDevice;
+#define TYPE_PCI_QXL "pci-qxl"
+#define PCI_QXL(obj) OBJECT_CHECK(PCIQXLDevice, (obj), TYPE_PCI_QXL)
+
#define PANIC_ON(x) if ((x)) { \
printf("%s: PANIC %s failed\n", __FUNCTION__, #x); \
abort(); \