Home | History | Annotate | Download | only in src
      1 #if 0
      2 
      3 /*
      4  * Copyright (c) 2010, Texas Instruments Incorporated
      5  * All rights reserved.
      6  *
      7  * Redistribution and use in source and binary forms, with or without
      8  * modification, are permitted provided that the following conditions
      9  * are met:
     10  *
     11  * *  Redistributions of source code must retain the above copyright
     12  *    notice, this list of conditions and the following disclaimer.
     13  *
     14  * *  Redistributions in binary form must reproduce the above copyright
     15  *    notice, this list of conditions and the following disclaimer in the
     16  *    documentation and/or other materials provided with the distribution.
     17  *
     18  * *  Neither the name of Texas Instruments Incorporated nor the names of
     19  *    its contributors may be used to endorse or promote products derived
     20  *    from this software without specific prior written permission.
     21  *
     22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     23  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
     24  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     25  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
     26  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     27  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     28  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     29  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     30  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     31  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
     32  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     33  */
     34 
     35 /**
     36  *  @file  omx_rpc_config.c
     37  *         This file contains methods that provides the functionality for
     38  *         the OpenMAX1.1 DOMX Framework RPC.
     39  *
     40  *  @path \WTSD_DucatiMMSW\framework\domx\omx_rpc\src
     41  *
     42  *  @rev 1.0
     43  */
     44 
     45 /*==============================================================
     46  *! Revision History
     47  *! ============================
     48  *! 29-Mar-2010 Abhishek Ranka : Revamped DOMX implementation
     49  *!
     50  *! 19-August-2009 B Ravi Kiran ravi.kiran (at) ti.com: Initial Version
     51  *================================================================*/
     52  /******************************************************************
     53  *   INCLUDE FILES
     54  ******************************************************************/
     55  /* ----- system and platform files ---------------------------- */
     56 #include <stdlib.h>
     57 #include <string.h>
     58 #include <stdio.h>
     59 #include <Std.h>
     60 
     61 #include <OMX_Types.h>
     62 #include <timm_osal_interfaces.h>
     63 #include <timm_osal_trace.h>
     64 
     65 #include <MultiProc.h>
     66 #include <RcmClient.h>
     67 #include <RcmServer.h>
     68 
     69 /*-------program files ----------------------------------------*/
     70 #include "omx_rpc.h"
     71 #include "omx_rpc_stub.h"
     72 #include "omx_rpc_skel.h"
     73 #include "omx_rpc_internal.h"
     74 #include "omx_rpc_utils.h"
     75 
     76 extern Int32 RPC_MemFree(UInt32 * dataSize, UInt32 * data);
     77 extern Int32 RPC_MemAlloc(UInt32 * dataSize, UInt32 * data);
     78 
     79 /* contains configurations or structures to be passed to omx_rpc layer */
     80 char rpcFxns[][MAX_FUNCTION_NAME_LENGTH] = {
     81 	"RPC_SKEL_SetParameter",
     82 	"RPC_SKEL_GetParameter",
     83 	"RPC_SKEL_GetHandle",
     84 	"RPC_SKEL_UseBuffer",
     85 
     86 	"RPC_SKEL_FreeHandle",
     87 
     88 	"RPC_SKEL_SetConfig",
     89 	"RPC_SKEL_GetConfig",
     90 	"RPC_SKEL_GetState",
     91 	"RPC_SKEL_SendCommand",
     92 	"RPC_SKEL_GetComponentVersion",
     93 	"RPC_SKEL_GetExtensionIndex",
     94 	"RPC_SKEL_FillThisBuffer",
     95 	"RPC_SKEL_FillBufferDone",
     96 	"RPC_SKEL_FreeBuffer",
     97 
     98 	"RPC_SKEL_EmptyThisBuffer",
     99 	"RPC_SKEL_EmptyBufferDone",
    100 	"RPC_SKEL_EventHandler",
    101 	"RPC_SKEL_AllocateBuffer",
    102 	"RPC_SKEL_ComponentTunnelRequest",
    103 
    104 	"MemMgr_Alloc",
    105 	"MemMgr_Free"
    106 };
    107 
    108 rpcSkelArr rpcSkelFxns[] = {
    109 	{RPC_SKEL_SetParameter},
    110 	{RPC_SKEL_GetParameter},
    111 	{RPC_SKEL_GetHandle},
    112 	{RPC_SKEL_UseBuffer},
    113 	{RPC_SKEL_FreeHandle},
    114 	{RPC_SKEL_SetConfig},
    115 	{RPC_SKEL_GetConfig},
    116 	{RPC_SKEL_GetState},
    117 	{RPC_SKEL_SendCommand},
    118 	{RPC_SKEL_GetComponentVersion},
    119 	{RPC_SKEL_GetExtensionIndex},
    120 	{RPC_SKEL_FillThisBuffer},
    121 	{RPC_SKEL_FillBufferDone},
    122 	{RPC_SKEL_FreeBuffer},
    123 	{RPC_SKEL_EmptyThisBuffer},
    124 	{RPC_SKEL_EmptyBufferDone},
    125 	{RPC_SKEL_EventHandler},
    126 	{RPC_SKEL_AllocateBuffer},
    127 	{RPC_SKEL_ComponentTunnelRequest},
    128 	{RPC_MemAlloc},
    129 	{RPC_MemFree}
    130 };
    131 
    132 #endif
    133