diff options
author | Pradeep Venkatasubbarao | 2013-11-15 05:05:01 -0600 |
---|---|---|
committer | Pradeep Venkatasubbarao | 2013-12-03 01:26:09 -0600 |
commit | 9208d0f18664575c0a50420435c19c85ff9740dd (patch) | |
tree | 75f177ca0b42328ea1c8b7fd342970b7663e1ec6 /dce_rpc.h | |
parent | 31bb1282efc6e9afcfdc90ece237cfe156d4d853 (diff) | |
download | repo-libdce-9208d0f18664575c0a50420435c19c85ff9740dd.tar.gz repo-libdce-9208d0f18664575c0a50420435c19c85ff9740dd.tar.xz repo-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.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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 | ||
66 | typedef enum dce_codec_type { | 67 | typedef 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 | ||
73 | typedef 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 */ |
72 | typedef struct dce_connect { | 81 | typedef struct dce_connect { |
73 | uint32_t chipset_id; | 82 | uint32_t chipset_id; |