1 /*
2 * Copyright (c) 2010, Texas Instruments Incorporated
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
34 /*!
35 * ======== Settings ========
36 * Global OS Abstract Layer Configuration
37 */
38 @Template("./Settings.xdt")
39
40 metaonly module Settings {
41
42 /*!
43 * ======== useIdma3 ========
44 * True if IDMA3 needs to be supported.
45 *
46 * @_nodoc
47 */
48 config bool useIdma3;
49
50 /*!
51 * ======== useIres ========
52 * True if IRES needs to be supported.
53 *
54 * @_nodoc
55 */
56 config bool useIres;
57
58 /*!
59 * ======== useHeap ========
60 * Indicates that algorithm memory should be allocated from a heap.
61 *
62 * Flag indicating whether algorithm memory should be allocated from
63 * a heap or from a pool.
64 *
65 * This flag is currently only used when CMEM is used to allocate memory
66 * (e.g. ARM-side 'local' codecs).
67 */
68 config bool useHeap = false;
69
70 /*!
71 * ======== useCache ========
72 * Indicates that algorithm memory should be cacheable.
73 *
74 * This flag indicates whether algorithm memory should be allocated from
75 * cache-enabled buffers.
76 *
77 * This flag is currently only used when CMEM is used to allocate memory
78 * (e.g. ARM-side 'local' codecs).
79 *
80 * Note that when cache-enabled buffers are used, it is the application's
81 * responsibility to manage this cache. See the various `Memory_` APIs
82 * for cache services.
83 */
84 config bool useCache = false;
85
86 /*!
87 * ======== ipcKeyBase ========
88 * Default base value for ALG's semaphore keys.
89 * The SemMP objects created by ALG will use keys starting at this
90 * value, and incrementing with each new object. There are currently
91 * _ALG_NUMGROUPS (20) keys needed for ALG semaphores.
92 * The default value of ipcKeyBase is ascii code for "OGLA".
93 *
94 * WARNING: This value should only be changed if it conflicts with
95 * another IPC key in the system that cannot be changed. If this value
96 * is changed, all programs using Codec Engine that will be run
97 * simultaneously must have the ipcKeyBase configured to the new value.
98 *
99 * @_nodoc
100 */
101 config UInt32 ipcKeyBase = 0x4F474C41;
102
103 /*!
104 * ======== MAXGROUPID ========
105 * Maximum group id.
106 *
107 * @_nodoc
108 */
109 const Int MAXGROUPID = 20;
110
111 /*!
112 * ======== groupUsed ========
113 * Array indicating whether or not there will be algorithms with a given
114 * groupId. If there is an algorithm with groupId i, then groupUsed[i]
115 * will be set to true.
116 *
117 * @_nodoc
118 */
119 config bool groupUsed[MAXGROUPID] = [
120 false, false, false, false, false,
121 false, false, false, false, false,
122 false, false, false, false, false,
123 false, false, false, false, false
124 ];
125
126 }
127 /*
128 * @(#) ti.sdo.ce.alg; 1, 0, 1,191; 12-2-2010 21:18:41; /db/atree/library/trees/ce/ce-r11x/src/ xlibrary
129
130 */
131