aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSathishkumar2013-07-30 00:50:14 -0500
committerSaurabh Bipin Chandra2013-08-27 16:12:42 -0500
commitf71e00630af23f1dd7d2a0df87d9b5b524c823a8 (patch)
tree956d57896e212423862da2031aabaa50ba2d7f01 /memplugin.h
parent17668bcb5a1f7f9db2ba225b1825bc55365c3e66 (diff)
downloadrepo-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.tar.gz
repo-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.tar.xz
repo-libdce-f71e00630af23f1dd7d2a0df87d9b5b524c823a8.zip
[GLP] Libdce linux implementation
make install & libdce.c issue fix 1. make install has been fixed. libdce.h will be installed in /usr/include, libdce.so files in /usr/lib and libdce.pc in /usr/lib/pkgconfig on using --prefix=/usr. By default the prefix is /usr/local. 2. init and deinit calls are removed from libdce.h 3. dce_set_fd and dce_get_fd calls are implemented in libdce.c 4. configure.ac checks for libmmrpc and makefile.am modified to link with libmmrpc. configure.ac and makefile.am modified 1. Codec_engine,xdctolls,framework_components,ipc,xdctools and xdaias paths needs to be exported. Configure.ac checks for the exported paths. 2. Makefile.am is modified to have the exported paths in the include directories list for the compiler. Modifications done after review 1. Comments added in memplugin_linux.c. White spaces removed manually and cleaned up libdce.c, memplugin.h. dce_priv.h is modified to have File and line number in the logs. linux/dce.h file is removed. Libdce modifications for linux Linux Specific libdce functionality added. 1. memplugin calls specific to linux are added in memplugin_linux.c 2. Error and debug logs implementation for linux in dce_priv.h 3. xll and wayland specific files are moved to linux folder Change-Id: Ib41e6a52d902376cdabbb939dee7585944720d92 Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com> Signed-off-by: Sathishkumar <x0203598@ti.com>
Diffstat (limited to 'memplugin.h')
-rw-r--r--memplugin.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/memplugin.h b/memplugin.h
index 816829b..49e0500 100644
--- a/memplugin.h
+++ b/memplugin.h
@@ -37,22 +37,26 @@
37#include <string.h> 37#include <string.h>
38#include <stdio.h> 38#include <stdio.h>
39 39
40#if defined(BUILDOS_QNX)
41#include <memmgr.h>
42#endif /* BUILDOS_QNX */
43 40
44#if defined(BUILDOS_GLP) 41#if defined(BUILDOS_LINUX)
45#include <xf86drm.h> 42#include <xf86drm.h>
46#endif /* BUILDOS_GLP */ 43#include <omap_drm.h>
44#include <omap_drmif.h>
45#endif /* BUILDOS_LINUX */
47 46
47
48#if defined(BUILDOS_QNX)
48/* IPC Headers */ 49/* IPC Headers */
49#include <tilermem.h> 50#include <tilermem.h>
50#include <SharedMemoryAllocatorUsr.h> 51#include <SharedMemoryAllocatorUsr.h>
52#include <memmgr.h>
53#endif /* BUILDOS_QNX */
51 54
52 55
53#define P2H(p) (&(((MemHeader *)(p))[-1])) 56#define P2H(p) (&(((MemHeader *)(p))[-1]))
54#define H2P(h) ((void *)&(h)[1]) 57#define H2P(h) ((void *)&(h)[1])
55 58
59
56/* MemHeader is important because it is necessary to know the */ 60/* MemHeader is important because it is necessary to know the */
57/* size of the parameter buffers on IPU for Cache operations */ 61/* size of the parameter buffers on IPU for Cache operations */
58/* The size can't be assumed as codec supports different inputs */ 62/* The size can't be assumed as codec supports different inputs */
@@ -63,6 +67,7 @@ typedef struct MemHeader {
63 void *ptr; 67 void *ptr;
64} MemHeader; 68} MemHeader;
65 69
70
66typedef enum mem_type { 71typedef enum mem_type {
67 TILER_1D_BUFFER, 72 TILER_1D_BUFFER,
68 TILER8_2D_BUFFER, 73 TILER8_2D_BUFFER,
@@ -85,7 +90,7 @@ void *memplugin_alloc(int sz, int height, mem_type memory_type);
85 90
86void memplugin_free(void *ptr, mem_type memory_type); 91void memplugin_free(void *ptr, mem_type memory_type);
87 92
88void *memplugin_share(void *ptr, mem_type memory_type); 93int memplugin_share(void *ptr);
89 94
90#endif /* __MEMPLUGIN_H__ */ 95#endif /* __MEMPLUGIN_H__ */
91 96