]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/xen/xen_pt.h
Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2015-06-23' into...
[mirror_qemu.git] / hw / xen / xen_pt.h
index 232165a7d1270feaead667930edd69456c6d3ae1..393f36ccbf59ac201c8347314cc619152baf8434 100644 (file)
@@ -36,6 +36,10 @@ typedef struct XenPTReg XenPTReg;
 
 typedef struct XenPCIPassthroughState XenPCIPassthroughState;
 
+#define TYPE_XEN_PT_DEVICE "xen-pci-passthrough"
+#define XEN_PT_DEVICE(obj) \
+    OBJECT_CHECK(XenPCIPassthroughState, (obj), TYPE_XEN_PT_DEVICE)
+
 /* function type for config reg */
 typedef int (*xen_pt_conf_reg_init)
     (XenPCIPassthroughState *, XenPTRegInfo *, uint32_t real_offset,