1 /* 2 * Copyright 2013 by Texas Instruments Incorporated. 3 * 4 */ 5 6 /* 7 * Copyright (c) 2013, Texas Instruments Incorporated 8 * All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 14 * * Redistributions of source code must retain the above copyright 15 * notice, this list of conditions and the following disclaimer. 16 * 17 * * Redistributions in binary form must reproduce the above copyright 18 * notice, this list of conditions and the following disclaimer in the 19 * documentation and/or other materials provided with the distribution. 20 * 21 * * Neither the name of Texas Instruments Incorporated nor the names of 22 * its contributors may be used to endorse or promote products derived 23 * from this software without specific prior written permission. 24 * 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 27 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 29 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 31 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 32 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 33 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 34 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 35 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 package ti.sdo.ce.views; 39 import xdc.rov.ViewInfo; 40 41 module CodecEngine { 42 43 struct NODE_Uuid { 44 UInt32 data; 45 }; 46 47 enum Engine_CachedMemType { 48 Engine_USECACHEDMEM_DEFAULT = -1, /**< Use default cache setting */ 49 Engine_USECACHEDMEM_NONCACHED = 0, /**< Use non-cached memory */ 50 Engine_USECACHEDMEM_CACHED = 1 /**< Use cached memory */ 51 }; 52 53 struct Engine_AlgDesc { 54 String name; /**< Name of algorithm. */ 55 NODE_Uuid uuid; /**< Fixed length perfect hash of name. */ 56 Ptr fxns; /**< If null, served by RMS. */ 57 Ptr idmaFxns; /**< DMA resource negotiation when not null. */ 58 String *typeTab; /**< inheritance hierarchy. */ 59 Bool isLocal; /**< if TRUE, run locally. */ 60 Int groupId; /**< Resource sharing group Id. */ 61 Int rpcProtocolVersion; /**< Protocol version. */ 62 Ptr iresFxns; /**< IRES_Fxns when not null. */ 63 Ptr codecClassConfig; /**< codec class config data, if any */ 64 Engine_CachedMemType memType; /**< Memory type for alg's mem reqs. */ 65 }; 66 67 struct Engine_Desc { 68 String name; /**< Name of this Engine. */ 69 Engine_AlgDesc *algTab; /**< Table of algs available in this Engine. */ 70 String remoteName; /**< Optional name of Server image to load. */ 71 String linkCfg; /**< Optional Link config (when using LAD). */ 72 Int numAlgs; /**< Number of algorithms in algTab */ 73 Int heapId; /**< Heap ID for engine allocs. */ 74 }; 75 76 struct Engine_Config { 77 Engine_Desc *engineTab; 78 String localEngine; 79 }; 80 81 metaonly struct Engine_Meta { 82 String algName; 83 Bool isLocal; 84 Int heapId; 85 }; 86 87 @Facet 88 metaonly config ViewInfo.Instance rovViewInfo = 89 ViewInfo.create({ 90 viewMap: [ 91 ['Basic', {type: ViewInfo.MODULE_DATA, viewInitFxn: 'viewInitBasic', structName: 'Engine_Meta'}], 92 ] 93 }); 94 95 96 } 97 /* 98 * @(#) ti.sdo.ce.views; 1, 0, 0,3; 6-13-2013 00:21:16; /db/atree/library/trees/ce/ce-w08/src/ xlibrary 99 100 */ 101