summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPradeep Venkatasubbarao2013-11-15 05:05:01 -0600
committerPradeep Venkatasubbarao2013-12-03 01:26:09 -0600
commit9208d0f18664575c0a50420435c19c85ff9740dd (patch)
tree75f177ca0b42328ea1c8b7fd342970b7663e1ec6 /dce_rpc.h
parent31bb1282efc6e9afcfdc90ece237cfe156d4d853 (diff)
downloadhardware-ti-libdce-9208d0f18664575c0a50420435c19c85ff9740dd.tar.gz
hardware-ti-libdce-9208d0f18664575c0a50420435c19c85ff9740dd.tar.xz
hardware-ti-libdce-9208d0f18664575c0a50420435c19c85ff9740dd.zip
Added VIDDEC2 interfaces for DSP codecs
This patch adds VIDDEC2 interfaces and libdce now supports both VIDDEC2 and VIDDEC3 interfaces. It initializes ipc based on the server name(IVA or DSP). Provisions are made to handle multiple instances of IPU and DSP codecs. Change-Id: Ie1869e626423a6250983711114dc9d0854022309 Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
Diffstat (limited to 'dce_rpc.h')
-rw-r--r--dce_rpc.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/dce_rpc.h b/dce_rpc.h
index d487ba4..0f0463d 100644
--- a/dce_rpc.h
+++ b/dce_rpc.h
@@ -42,13 +42,14 @@
42 * possibly we should define a special ioctl and msg to handle this case. 42 * possibly we should define a special ioctl and msg to handle this case.
43 */ 43 */
44 44
45#define DCE_DEVICE_NAME "rpmsg-dce"
46 45
47#define MAX_NAME_LENGTH 32 46#define MAX_NAME_LENGTH 32
48#define MAX_INPUT_BUF 2 // Need to confirm for interlaced YUVs for Encoders 47#define MAX_INPUT_BUF 2 // Need to confirm for interlaced YUVs for Encoders
49#define MAX_OUTPUT_BUF 2 48#define MAX_OUTPUT_BUF 2
50#define MAX_TOTAl_BUF (MAX_INPUT_BUF + MAX_OUTPUT_BUF) 49#define MAX_OUTPUT_BUFPTRS 2//To take care bufs and bufSizes in viddec2 case
50#define MAX_TOTAL_BUF (MAX_INPUT_BUF + MAX_OUTPUT_BUF + MAX_OUTPUT_BUFPTRS)
51 51
52#define MAX_INSTANCES 4
52/* Message-Ids: 53/* Message-Ids:
53 */ 54 */
54//#define DCE_RPC_CONNECT (0x80000000 | 00) Connect not needed anymore. 55//#define DCE_RPC_CONNECT (0x80000000 | 00) Connect not needed anymore.
@@ -65,9 +66,17 @@ typedef enum dce_rpc_call {
65 66
66typedef enum dce_codec_type { 67typedef enum dce_codec_type {
67 OMAP_DCE_VIDENC2 = 1, 68 OMAP_DCE_VIDENC2 = 1,
68 OMAP_DCE_VIDDEC3 = 2 69 OMAP_DCE_VIDDEC3 = 2,
70 OMAP_DCE_VIDDEC2 = 3
69} dce_codec_type; 71} dce_codec_type;
70 72
73typedef enum dce_core_type {
74 INVALID_CORE = -1,
75 IPU = 0,
76 DSP = 1,
77 MAX_REMOTEDEVICES
78}dce_core_type;
79
71/* Structures of RPC */ 80/* Structures of RPC */
72typedef struct dce_connect { 81typedef struct dce_connect {
73 uint32_t chipset_id; 82 uint32_t chipset_id;