summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-27 16:30:21 +0300
committerAlon Levy <alevy@redhat.com>2011-07-22 03:48:04 +0300
commit9e30b11be0134713922555a710b6be0e664b3af2 (patch)
tree11cb2d84dd50cb2702eca1be3e2ec5f1cbeded4c
parentd7c3e279081c932f30231a060feb5df3460055b2 (diff)
xspice: add spiceqxl_io_port, empty implementation
-rw-r--r--src/Makefile.am1
-rw-r--r--src/qxl.h5
-rw-r--r--src/spiceqxl_io_port.c12
-rw-r--r--src/spiceqxl_io_port.h6
4 files changed, 24 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 7ebc4de..a4cb420 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -61,6 +61,7 @@ spiceqxl_drv_la_LIBADD = uxa/libuxa.la
spiceqxl_drv_la_SOURCES = \
qxl.h \
+ spiceqxl_io_port.c \
qxl_driver.c \
qxl_image.c \
qxl_surface.c \
diff --git a/src/qxl.h b/src/qxl.h
index dfa69fe..6a5c63e 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -351,9 +351,14 @@ void * qxl_allocnf (qxl_screen_t *qxl,
unsigned long size);
int qxl_garbage_collect (qxl_screen_t *qxl);
+#ifdef XSPICE
+/* device to spice-server, now xspice to spice-server */
+void ioport_write(qxl_screen_t *qxl, uint32_t io_port, uint32_t val);
+#else
static inline void ioport_write(qxl_screen_t *qxl, int port, int val)
{
outb(qxl->io_base + port, val);
}
+#endif
#endif // QXL_H
diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
new file mode 100644
index 0000000..8a2ea03
--- /dev/null
+++ b/src/spiceqxl_io_port.c
@@ -0,0 +1,12 @@
+#include <pthread.h>
+
+#include <spice.h>
+
+#include "qxl.h"
+#include "spiceqxl_io_port.h"
+
+/* called from Xorg thread - not worker thread! */
+void ioport_write(qxl_screen_t *qxl, uint32_t io_port, uint32_t val)
+{
+}
+
diff --git a/src/spiceqxl_io_port.h b/src/spiceqxl_io_port.h
new file mode 100644
index 0000000..366d23c
--- /dev/null
+++ b/src/spiceqxl_io_port.h
@@ -0,0 +1,6 @@
+#ifndef SPICEQXL_IO_PORT_H
+#define SPICEQXL_IO_PORT_H
+
+#include "qxl.h"
+
+#endif // SPICEQXL_IO_PORT_H