summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-03-07 20:46:58 +0200
committerAlon Levy <alevy@redhat.com>2011-03-07 20:46:58 +0200
commit1a69e2bd757a41212166f748dcd4851265a27c0d (patch)
treeeb8909ba266317d3c363457a2494e63b3b5ccbea
parenta3b37c6a02ef9415350a796a5956ff229df3818b (diff)
downloadspice-protocol-1a69e2bd757a41212166f748dcd4851265a27c0d.tar.gz
spice-protocol-1a69e2bd757a41212166f748dcd4851265a27c0d.tar.xz
spice-protocol-1a69e2bd757a41212166f748dcd4851265a27c0d.zip
qxl_dev: introduce defines for rings sizes
-rw-r--r--spice/qxl_dev.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 7219bfc..e3e0696 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -200,10 +200,14 @@ typedef struct SPICE_ATTR_PACKED QXLSurfaceCreate {
QXLPHYSICAL mem;
} QXLSurfaceCreate;
-SPICE_RING_DECLARE(QXLCommandRing, QXLCommand, 32);
-SPICE_RING_DECLARE(QXLCursorRing, QXLCommand, 32);
+#define QXL_COMMAND_RING_SIZE 32
+#define QXL_CURSOR_RING_SIZE 32
+#define QXL_RELEASE_RING_SIZE 8
-SPICE_RING_DECLARE(QXLReleaseRing, uint64_t, 8);
+SPICE_RING_DECLARE(QXLCommandRing, QXLCommand, QXL_COMMAND_RING_SIZE);
+SPICE_RING_DECLARE(QXLCursorRing, QXLCommand, QXL_CURSOR_RING_SIZE);
+
+SPICE_RING_DECLARE(QXLReleaseRing, uint64_t, QXL_RELEASE_RING_SIZE);
#define QXL_LOG_BUF_SIZE 4096