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_platform.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 /*This list needs to be a comprehensive list of all possible communicating RCM servers avalilable across the whole system (core 0 core 1, tesla, chiron)*/
     77 char Core_Array[][MAX_CORENAME_LENGTH] =
     78     { "TESLA", "DUCATI1", "DUCATI0", "CHIRON" };
     79 
     80 char rcmservertable[][MAX_SERVER_NAME_LENGTH] =
     81     { "RSrv_Tesla", "RSrv_Ducati1", "RSrv_Ducati0", "RSrv_Chiron" };
     82 
     83 OMX_U32 heapIdArray[MAX_NUMBER_OF_HEAPS] = { 0, 1, 0, 1 };
     84 
     85 #endif
     86