1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 129 130
131