[processor-sdk/performance-audio-sr.git] / ipc_3_43_00_00_eng / packages / ti / ipc / family / vayu / package / ti_ipc_family_vayu.java
1 /*
2 * Do not modify this file; it is automatically
3 * generated and any modifications will be overwritten.
4 *
5 * @(#) xdc-B06
6 */
7 import java.util.*;
8 import org.mozilla.javascript.*;
9 import xdc.services.intern.xsr.*;
10 import xdc.services.spec.Session;
12 public class ti_ipc_family_vayu
13 {
14 static final String VERS = "@(#) xdc-B06\n";
16 static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
17 static final Proto.Elm $$T_Num = Proto.Elm.newNum();
18 static final Proto.Elm $$T_Str = Proto.Elm.newStr();
19 static final Proto.Elm $$T_Obj = Proto.Elm.newObj();
21 static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
22 static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
23 static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);
25 static final XScriptO $$DEFAULT = Value.DEFAULT;
26 static final Object $$UNDEF = Undefined.instance;
28 static final Proto.Obj $$Package = (Proto.Obj)Global.get("$$Package");
29 static final Proto.Obj $$Module = (Proto.Obj)Global.get("$$Module");
30 static final Proto.Obj $$Instance = (Proto.Obj)Global.get("$$Instance");
31 static final Proto.Obj $$Params = (Proto.Obj)Global.get("$$Params");
33 static final Object $$objFldGet = Global.get("$$objFldGet");
34 static final Object $$objFldSet = Global.get("$$objFldSet");
35 static final Object $$proxyGet = Global.get("$$proxyGet");
36 static final Object $$proxySet = Global.get("$$proxySet");
37 static final Object $$delegGet = Global.get("$$delegGet");
38 static final Object $$delegSet = Global.get("$$delegSet");
40 Scriptable xdcO;
41 Session ses;
42 Value.Obj om;
44 boolean isROV;
45 boolean isCFG;
47 Proto.Obj pkgP;
48 Value.Obj pkgV;
50 ArrayList<Object> imports = new ArrayList<Object>();
51 ArrayList<Object> loggables = new ArrayList<Object>();
52 ArrayList<Object> mcfgs = new ArrayList<Object>();
53 ArrayList<Object> icfgs = new ArrayList<Object>();
54 ArrayList<String> inherits = new ArrayList<String>();
55 ArrayList<Object> proxies = new ArrayList<Object>();
56 ArrayList<Object> sizes = new ArrayList<Object>();
57 ArrayList<Object> tdefs = new ArrayList<Object>();
59 void $$IMPORTS()
60 {
61 Global.callFxn("loadPackage", xdcO, "xdc");
62 Global.callFxn("loadPackage", xdcO, "xdc.corevers");
63 }
65 void $$OBJECTS()
66 {
67 pkgP = (Proto.Obj)om.bind("ti.ipc.family.vayu.Package", new Proto.Obj());
68 pkgV = (Value.Obj)om.bind("ti.ipc.family.vayu", new Value.Obj("ti.ipc.family.vayu", pkgP));
69 }
71 void VirtQueue$$OBJECTS()
72 {
73 Proto.Obj po, spo;
74 Value.Obj vo;
76 po = (Proto.Obj)om.bind("ti.ipc.family.vayu.VirtQueue.Module", new Proto.Obj());
77 vo = (Value.Obj)om.bind("ti.ipc.family.vayu.VirtQueue", new Value.Obj("ti.ipc.family.vayu.VirtQueue", po));
78 pkgV.bind("VirtQueue", vo);
79 // decls
80 }
82 void VirtQueue$$CONSTS()
83 {
84 // module VirtQueue
85 }
87 void VirtQueue$$CREATES()
88 {
89 Proto.Fxn fxn;
90 StringBuilder sb;
92 }
94 void VirtQueue$$FUNCTIONS()
95 {
96 Proto.Fxn fxn;
98 }
100 void VirtQueue$$SIZES()
101 {
102 }
104 void VirtQueue$$TYPES()
105 {
106 Scriptable cap;
107 Proto.Obj po;
108 Proto.Str ps;
109 Proto.Typedef pt;
110 Object fxn;
112 cap = (Scriptable)Global.callFxn("loadCapsule", xdcO, "ti/ipc/family/vayu/VirtQueue.xs");
113 om.bind("ti.ipc.family.vayu.VirtQueue$$capsule", cap);
114 po = (Proto.Obj)om.findStrict("ti.ipc.family.vayu.VirtQueue.Module", "ti.ipc.family.vayu");
115 po.init("ti.ipc.family.vayu.VirtQueue.Module", $$Module);
116 po.addFld("$hostonly", $$T_Num, 1, "r");
117 fxn = Global.get(cap, "module$use");
118 if (fxn != null) om.bind("ti.ipc.family.vayu.VirtQueue$$module$use", true);
119 if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
120 fxn = Global.get(cap, "module$meta$init");
121 if (fxn != null) om.bind("ti.ipc.family.vayu.VirtQueue$$module$meta$init", true);
122 if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
123 fxn = Global.get(cap, "module$validate");
124 if (fxn != null) om.bind("ti.ipc.family.vayu.VirtQueue$$module$validate", true);
125 if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
126 }
128 void VirtQueue$$ROV()
129 {
130 }
132 void $$SINGLETONS()
133 {
134 pkgP.init("ti.ipc.family.vayu.Package", (Proto.Obj)om.findStrict("xdc.IPackage.Module", "ti.ipc.family.vayu"));
135 Scriptable cap = (Scriptable)Global.callFxn("loadCapsule", xdcO, "ti/ipc/family/vayu/package.xs");
136 om.bind("xdc.IPackage$$capsule", cap);
137 Object fxn;
138 fxn = Global.get(cap, "init");
139 if (fxn != null) pkgP.addFxn("init", (Proto.Fxn)om.findStrict("xdc.IPackage$$init", "ti.ipc.family.vayu"), fxn);
140 fxn = Global.get(cap, "close");
141 if (fxn != null) pkgP.addFxn("close", (Proto.Fxn)om.findStrict("xdc.IPackage$$close", "ti.ipc.family.vayu"), fxn);
142 fxn = Global.get(cap, "validate");
143 if (fxn != null) pkgP.addFxn("validate", (Proto.Fxn)om.findStrict("xdc.IPackage$$validate", "ti.ipc.family.vayu"), fxn);
144 fxn = Global.get(cap, "exit");
145 if (fxn != null) pkgP.addFxn("exit", (Proto.Fxn)om.findStrict("xdc.IPackage$$exit", "ti.ipc.family.vayu"), fxn);
146 fxn = Global.get(cap, "getLibs");
147 if (fxn != null) pkgP.addFxn("getLibs", (Proto.Fxn)om.findStrict("xdc.IPackage$$getLibs", "ti.ipc.family.vayu"), fxn);
148 fxn = Global.get(cap, "getSects");
149 if (fxn != null) pkgP.addFxn("getSects", (Proto.Fxn)om.findStrict("xdc.IPackage$$getSects", "ti.ipc.family.vayu"), fxn);
150 pkgP.bind("$capsule", cap);
151 pkgV.init2(pkgP, "ti.ipc.family.vayu", Value.DEFAULT, false);
152 pkgV.bind("$name", "ti.ipc.family.vayu");
153 pkgV.bind("$category", "Package");
154 pkgV.bind("$$qn", "ti.ipc.family.vayu.");
155 pkgV.bind("$vers", Global.newArray(1, 0, 0));
156 Value.Map atmap = (Value.Map)pkgV.getv("$attr");
157 atmap.seal("length");
158 imports.clear();
159 pkgV.bind("$imports", imports);
160 StringBuilder sb = new StringBuilder();
161 sb.append("var pkg = xdc.om['ti.ipc.family.vayu'];\n");
162 sb.append("if (pkg.$vers.length >= 3) {\n");
163 sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
164 sb.append("}\n");
165 sb.append("if ('ti.ipc.family.vayu$$stat$base' in xdc.om) {\n");
166 sb.append("pkg.packageBase = xdc.om['ti.ipc.family.vayu$$stat$base'];\n");
167 sb.append("pkg.packageRepository = xdc.om['ti.ipc.family.vayu$$stat$root'];\n");
168 sb.append("}\n");
169 sb.append("pkg.build.libraries = [\n");
170 sb.append("];\n");
171 sb.append("pkg.build.libDesc = [\n");
172 sb.append("];\n");
173 Global.eval(sb.toString());
174 }
176 void VirtQueue$$SINGLETONS()
177 {
178 Proto.Obj po;
179 Value.Obj vo;
181 vo = (Value.Obj)om.findStrict("ti.ipc.family.vayu.VirtQueue", "ti.ipc.family.vayu");
182 po = (Proto.Obj)om.findStrict("ti.ipc.family.vayu.VirtQueue.Module", "ti.ipc.family.vayu");
183 vo.init2(po, "ti.ipc.family.vayu.VirtQueue", $$DEFAULT, false);
184 vo.bind("Module", po);
185 vo.bind("$category", "Module");
186 vo.bind("$capsule", om.findStrict("ti.ipc.family.vayu.VirtQueue$$capsule", "ti.ipc.family.vayu"));
187 vo.bind("$package", om.findStrict("ti.ipc.family.vayu", "ti.ipc.family.vayu"));
188 tdefs.clear();
189 proxies.clear();
190 mcfgs.clear();
191 icfgs.clear();
192 inherits.clear();
193 vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
194 vo.bind("$$proxies", Global.newArray(proxies.toArray()));
195 vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
196 vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
197 vo.bind("$$inherits", Global.newArray(inherits.toArray()));
198 ((Value.Arr)pkgV.getv("$modules")).add(vo);
199 ((Value.Arr)om.findStrict("$modules", "ti.ipc.family.vayu")).add(vo);
200 vo.bind("$$instflag", 0);
201 vo.bind("$$iobjflag", 1);
202 vo.bind("$$sizeflag", 1);
203 vo.bind("$$dlgflag", 0);
204 vo.bind("$$iflag", 0);
205 vo.bind("$$romcfgs", "|");
206 vo.bind("$$nortsflag", 0);
207 Proto.Str ps = (Proto.Str)vo.find("Module_State");
208 if (ps != null) vo.bind("$object", ps.newInstance());
209 vo.bind("$$meta_iobj", om.has("ti.ipc.family.vayu.VirtQueue$$instance$static$init", null) ? 1 : 0);
210 vo.bind("$$fxntab", Global.newArray());
211 vo.bind("$$logEvtCfgs", Global.newArray());
212 vo.bind("$$errorDescCfgs", Global.newArray());
213 vo.bind("$$assertDescCfgs", Global.newArray());
214 Value.Map atmap = (Value.Map)vo.getv("$attr");
215 atmap.setElem("", "./VirtQueue.xdt");
216 atmap.seal("length");
217 vo.bind("TEMPLATE$", "./VirtQueue.xdt");
218 pkgV.bind("VirtQueue", vo);
219 ((Value.Arr)pkgV.getv("$unitNames")).add("VirtQueue");
220 }
222 void $$INITIALIZATION()
223 {
224 Value.Obj vo;
226 if (isCFG) {
227 }//isCFG
228 Global.callFxn("module$meta$init", (Scriptable)om.findStrict("ti.ipc.family.vayu.VirtQueue", "ti.ipc.family.vayu"));
229 Global.callFxn("init", pkgV);
230 ((Value.Obj)om.getv("ti.ipc.family.vayu.VirtQueue")).bless();
231 ((Value.Arr)om.findStrict("$packages", "ti.ipc.family.vayu")).add(pkgV);
232 }
234 public void exec( Scriptable xdcO, Session ses )
235 {
236 this.xdcO = xdcO;
237 this.ses = ses;
238 om = (Value.Obj)xdcO.get("om", null);
240 Object o = om.geto("$name");
241 String s = o instanceof String ? (String)o : null;
242 isCFG = s != null && s.equals("cfg");
243 isROV = s != null && s.equals("rov");
245 $$IMPORTS();
246 $$OBJECTS();
247 VirtQueue$$OBJECTS();
248 VirtQueue$$CONSTS();
249 VirtQueue$$CREATES();
250 VirtQueue$$FUNCTIONS();
251 VirtQueue$$SIZES();
252 VirtQueue$$TYPES();
253 if (isROV) {
254 VirtQueue$$ROV();
255 }//isROV
256 $$SINGLETONS();
257 VirtQueue$$SINGLETONS();
258 $$INITIALIZATION();
259 }
260 }