virtio-gl: Additional merge of virtio-gl.
authorSangjin Kim <sangjin3.kim@samsung.com>
Wed, 10 Jul 2013 03:15:14 +0000 (12:15 +0900)
committerSangjin Kim <sangjin3.kim@samsung.com>
Wed, 10 Jul 2013 03:15:14 +0000 (12:15 +0900)
Change-Id: I94dfd1368fc48a191aaf477ee95cb8c6f7488db8
Signed-off-by: Sangjin Kim <sangjin3.kim@samsung.com>
include/exec/hwaddr.h
tizen/src/Makefile.tizen
tizen/src/hw/helper_opengl.c
tizen/src/hw/opengl_exec.c
tizen/src/hw/opengl_func.h
tizen/src/hw/virtio-gl.h

index 251cf9216f679863945299a4b413f967553a848a..d41667088d6b937545968aebe3d796fd982d7363 100644 (file)
@@ -9,6 +9,10 @@
 /* hwaddr is the type of a physical address (its size can
    be different from 'target_ulong').  */
 
+#ifdef CONFIG_MARU
+#include <inttypes.h>
+#endif //CONFIG_MARU
+
 typedef uint64_t hwaddr;
 #define HWADDR_MAX UINT64_MAX
 #define TARGET_FMT_plx "%016" PRIx64
index e5b41d13b8e3a45549ab4b379d516db75b37c3b0..d8045b7a8d3761603d749f71ff8b952256b548af 100644 (file)
@@ -142,8 +142,8 @@ obj-y += guest_server.o
 #ifndef CONFIG_DARWIN
 ###########################################################
 ## opengl library for i386
-#obj-$(CONFIG_GL) += virtio-gl.o 
-#obj-$(CONFIG_GL) += helper_opengl.o opengl_exec.o mesa_mipmap.o
+obj-$(CONFIG_GL) += virtio-gl.o 
+obj-$(CONFIG_GL) += helper_opengl.o opengl_exec.o mesa_mipmap.o
 obj-$(CONFIG_NO_GL) += virtio-gl-stub.o 
 obj-y += gloffscreen_test.o gloffscreen_xcomposite.o gloffscreen_common.o gloffscreen_wgl.o gloffscreen_agl.o
 ###########################################################
index c09b914a698cea41fcfe5f72dbfe446c21148103..ea76d603b0c9025729434491b392d8079f396353 100644 (file)
@@ -30,7 +30,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <assert.h>
-#include "osdep.h"
+#include "qemu/osdep.h"
 #include "opengl_func.h"
 #include "opengl_process.h"
 #include "opengl_exec.h"
index 09cb14674319fe3cc2c13eaf17e1939eb0039f3c..c4ac435bcf06221a93c90cd80438f6e16072300b 100644 (file)
@@ -56,7 +56,7 @@ MULTI_DEBUG_CHANNEL(qemu, opengl);
 #define GLX_GLXEXT_PROTOTYPES
 #include <mesa_gl.h>
 
-#include "qemu-queue.h"
+//#include "qemu-queue.h"
 #include "opengl_func.h"
 #include "mesa_mipmap.h"
 #include "opengl_process.h"
index e29f0d901f4f327045c347d735332937c8615363..d48fe2c356e6a45a29c7e87eaa9f80a9b8837170 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "mesa_gl.h"
 #include "mesa_glext.h"
+#include "exec/hwaddr.h"
 
 #ifdef TARGET_X86_64
 #define TARGET_LONG_BITS 64
 //#define NEED_CPU_H
 //#include "exec.h"  // For arg_t typedef
 //#undef NEED_CPU_H
-#include "targphys.h"
+//#include "targphys.h"
 
 /* Argument list are internally of a type that can hold a target pointer
  * or a host pointer.  */
-typedef target_phys_addr_t arg_t;
+//typedef target_phys_addr_t arg_t;
+typedef hwaddr arg_t;
 
 enum {
     TYPE_NONE,
index ae00b10ee9abbd6ae4218ce753411d17b3376572..5f966569d2b794cce8a78c966c0e1377b7057a1a 100644 (file)
@@ -7,8 +7,9 @@ extern "C" {
 
 #include "hw/hw.h"
 #include "maru_device_ids.h"
+#include "hw/virtio/virtio.h"
+#include "exec/hwaddr.h"
 
-//typedef target_phys_addr_t arg_t;
 #include "opengl_process.h"
 #include "opengl_exec.h"
 #include <sys/time.h>
@@ -18,6 +19,7 @@ MULTI_DEBUG_CHANNEL(qemu, virtio-gl);
 
 #define TYPE_VIRTIO_GL "virtio-gl"
 
+typedef hwaddr arg_t;
 int decode_call_int(ProcessStruct *p, char *in_args, int args_len, char *r_buffer);
 
 /* Uncomment to enable debugging - WARNING!!! changes ABI! */