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 36 37
38
39 /*!
40 * ======== Global ========
41 * Global OS Abstract Layer Configuration
42 */
43 @Template("./Global.xdt")
44
45 metaonly module Global {
46
47 /*!
48 * ======== os ========
49 * A specific OSAL implementations "Settings" module, for example,
50 * ti.sdo.ce.osal.bios.Settings or ti.sdo.ce.osal.linux.Settings.
51 * To set the OS of the executable to BIOS, set Global.os to:
52 * xdc.useModule('ti.sdo.ce.osal.bios.Settings').
53 *
54 * When this config param is used, the {@ link ti.sdo.ce.ipc.Settings#ipc
55 * config param must also be set.
56 *
57 * This should only be used to explicitly configure the OSAL to
58 * a package not provided with Codec Engine. To use an OSAL provided
59 * by Codec Engine, it's recommended to configure the OSAL using
60 * the runtimeEnv config param instead of this one.
61 *
62 * See {@ link http://wiki.davincidsp.com/index.php?title=CE_Config_Updates
63 * for more details}
64 *
65 * @see runtimeEnv
66 */
67 config IOsal.Module os;
68
69 /*!
70 * ======== RuntimeOS ========
71 * All runtime OSs that are abstracted by this package.
72 *
73 * @see runtimeEnv
74 */
75 enum RuntimeEnv {
76 NONE = 0, /*! no OS; threads are not truly supported */
77 DSPBIOS = 1, /*! DSP/BIOS */
78 LINUX = 2, /*! Linux */
79 DSPLINK_BIOS = 3, /*! DSPLINK + BIOS (DSP) */
80 DSPLINK_LINUX = 4, /*! DSPLINK + Linux (ARM) */
81 WINCE = 5, /*! Windows CE */
82 DSPLINK_WINCE = 6 /*! DSPLINK + Windows CE (ARM) */
83 };
84
85 /*!
86 * ======== runtimeEnv ========
87 * The runtime OS used to implement the abstractions provided by
88 * this package.
89 *
90 * @see RuntimeEnv
91 */
92 config RuntimeEnv runtimeEnv;
93
94 /*!
95 * ======== skipVirtualAddressTranslation ========
96 * If set to true, will make Memory_getBufferPhysicalAddress()
97 * skip address translation and return the given address as the
98 * physical address. Needed when the VISA calls are made with
99 * physical buffer addresses instead of virtual ones, specifically
100 * in the multi-process-via-kernel-driver case.
101 *
102 * Applies only to environments where virtual memory is used (e.g. Linux)
103 * @_nodoc
104 */
105 config bool skipVirtualAddressTranslation = false;
106
107 /*!
108 * ======== embedBuildInfo ========
109 * Indication whether to embed build info (packages and their directories)
110 * into the generated executable for debugging/diagnostic purposes.
111 * Setting this to 'false' may reduce the static data size by around 1K.
112 * Applies to all configurations.
113 */
114 config Bool embedBuildInfo = true;
115
116 /*!
117 * ======== addObjectToProgramInfoFile ========
118 * Internal method for adding an object to an XML-like program info file
119 * created alongside the executable
120 * @_nodoc
121 */
122 function addObjectToProgramInfoFile( objName, obj );
123
124 /*!
125 * ======== parseInfoFile ========
126 * Internal method for parsing an XML-like server program file
127 * that lies alongside the executable
128 * @_nodoc
129 */
130 function parseInfoFile( infoFile );
131
132 /*!
133 * ======== validate ========
134 * Internal validate method (see package.xs)
135 * @_nodoc
136 */
137 function validate();
138
139 }
140 141 142 143
144