]>
git.proxmox.com Git - qemu.git/blob - hw/qxl.h
1 #include "qemu-common.h"
8 #include "ui/qemu-spice.h"
9 #include "ui/spice-display.h"
14 QXL_MODE_COMPAT
, /* spice 0.4.x */
18 typedef struct PCIQXLDevice
{
20 SimpleSpiceDisplay ssd
;
39 } guest_slots
[NUM_MEMSLOTS
];
41 struct guest_primary
{
42 QXLSurfaceCreate surface
;
48 uint8_t *data
, *flipped
;
52 QXLPHYSICAL cmds
[NUM_SURFACES
];
56 QXLPHYSICAL guest_cursor
;
58 /* thread signaling */
65 uint32_t num_free_res
;
66 QXLReleaseInfo
*last_release
;
67 uint32_t last_release_offset
;
85 #define PANIC_ON(x) if ((x)) { \
86 printf("%s: PANIC %s failed\n", __FUNCTION__, #x); \
90 #define dprint(_qxl, _level, _fmt, ...) \
92 if (_qxl->debug >= _level) { \
93 fprintf(stderr, "qxl-%d: ", _qxl->id); \
94 fprintf(stderr, _fmt, ## __VA_ARGS__); \
99 void *qxl_phys2virt(PCIQXLDevice
*qxl
, QXLPHYSICAL phys
, int group_id
);
101 void qxl_spice_update_area(PCIQXLDevice
*qxl
, uint32_t surface_id
,
102 struct QXLRect
*area
, struct QXLRect
*dirty_rects
,
103 uint32_t num_dirty_rects
,
104 uint32_t clear_dirty_region
);
105 void qxl_spice_destroy_surface_wait(PCIQXLDevice
*qxl
, uint32_t id
);
106 void qxl_spice_loadvm_commands(PCIQXLDevice
*qxl
, struct QXLCommandExt
*ext
,
108 void qxl_spice_oom(PCIQXLDevice
*qxl
);
109 void qxl_spice_reset_memslots(PCIQXLDevice
*qxl
);
110 void qxl_spice_destroy_surfaces(PCIQXLDevice
*qxl
);
111 void qxl_spice_reset_image_cache(PCIQXLDevice
*qxl
);
112 void qxl_spice_reset_cursor(PCIQXLDevice
*qxl
);
115 void qxl_log_cmd_cursor(PCIQXLDevice
*qxl
, QXLCursorCmd
*cmd
, int group_id
);
116 void qxl_log_command(PCIQXLDevice
*qxl
, const char *ring
, QXLCommandExt
*ext
);
119 void qxl_render_resize(PCIQXLDevice
*qxl
);
120 void qxl_render_update(PCIQXLDevice
*qxl
);
121 void qxl_render_cursor(PCIQXLDevice
*qxl
, QXLCommandExt
*ext
);