summaryrefslogtreecommitdiffstats
path: root/hw/display/qxl.h
diff options
context:
space:
mode:
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 412e346..deddd54 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(); \
OpenPOWER on IntegriCloud