/*
 *  Do not modify this file; it is automatically 
 *  generated and any modifications will be overwritten.
 *
 * @(#) xdc-y30
 */
import java.util.*;
import org.mozilla.javascript.*;
import xdc.services.intern.xsr.*;
import xdc.services.spec.Session;

public class ti_transport_ipc_srio_transports
{
    static final String VERS = "@(#) xdc-y30\n";

    static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
    static final Proto.Elm $$T_Num = Proto.Elm.newNum();
    static final Proto.Elm $$T_Str = Proto.Elm.newStr();
    static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

    static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
    static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
    static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

    static final XScriptO $$DEFAULT = Value.DEFAULT;
    static final Object $$UNDEF = Undefined.instance;

    static final Proto.Obj $$Package = (Proto.Obj)Global.get("$$Package");
    static final Proto.Obj $$Module = (Proto.Obj)Global.get("$$Module");
    static final Proto.Obj $$Instance = (Proto.Obj)Global.get("$$Instance");
    static final Proto.Obj $$Params = (Proto.Obj)Global.get("$$Params");

    static final Object $$objFldGet = Global.get("$$objFldGet");
    static final Object $$objFldSet = Global.get("$$objFldSet");
    static final Object $$proxyGet = Global.get("$$proxyGet");
    static final Object $$proxySet = Global.get("$$proxySet");
    static final Object $$delegGet = Global.get("$$delegGet");
    static final Object $$delegSet = Global.get("$$delegSet");

    Scriptable xdcO;
    Session ses;
    Value.Obj om;

    boolean isROV;
    boolean isCFG;

    Proto.Obj pkgP;
    Value.Obj pkgV;

    ArrayList<Object> imports = new ArrayList<Object>();
    ArrayList<Object> loggables = new ArrayList<Object>();
    ArrayList<Object> mcfgs = new ArrayList<Object>();
    ArrayList<Object> icfgs = new ArrayList<Object>();
    ArrayList<String> inherits = new ArrayList<String>();
    ArrayList<Object> proxies = new ArrayList<Object>();
    ArrayList<Object> sizes = new ArrayList<Object>();
    ArrayList<Object> tdefs = new ArrayList<Object>();

    void $$IMPORTS()
    {
        Global.callFxn("loadPackage", xdcO, "xdc");
        Global.callFxn("loadPackage", xdcO, "xdc.corevers");
        Global.callFxn("loadPackage", xdcO, "ti.sdo.ipc.interfaces");
        Global.callFxn("loadPackage", xdcO, "ti.sdo.utils");
        Global.callFxn("loadPackage", xdcO, "xdc.rov");
        Global.callFxn("loadPackage", xdcO, "xdc.runtime");
    }

    void $$OBJECTS()
    {
        pkgP = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.Package", new Proto.Obj());
        pkgV = (Value.Obj)om.bind("ti.transport.ipc.srio.transports", new Value.Obj("ti.transport.ipc.srio.transports", pkgP));
    }

    void TransportSrio$$OBJECTS()
    {
        Proto.Obj po, spo;
        Value.Obj vo;

        po = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrio.Module", new Proto.Obj());
        vo = (Value.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrio", new Value.Obj("ti.transport.ipc.srio.transports.TransportSrio", po));
        pkgV.bind("TransportSrio", vo);
        // decls 
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.Status", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Status", "ti.transport.ipc.srio.transports"));
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.Reason", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Reason", "ti.transport.ipc.srio.transports"));
        spo = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrio$$Module_State", new Proto.Obj());
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.Module_State", new Proto.Str(spo, false));
        spo = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrio$$Instance_State", new Proto.Obj());
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.Instance_State", new Proto.Str(spo, false));
        // insts 
        Object insP = om.bind("ti.transport.ipc.srio.transports.TransportSrio.Instance", new Proto.Obj());
        po = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrio$$Object", new Proto.Obj());
        Object objP = om.bind("ti.transport.ipc.srio.transports.TransportSrio.Object", new Proto.Str(po, false));
        po = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrio$$Params", new Proto.Obj());
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.Params", new Proto.Str(po, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.Handle", insP);
        if (isROV) {
            om.bind("ti.transport.ipc.srio.transports.TransportSrio.Object", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance_State", "ti.transport.ipc.srio.transports"));
        }//isROV
    }

    void TransportSrioSetup$$OBJECTS()
    {
        Proto.Obj po, spo;
        Value.Obj vo;

        po = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.Module", new Proto.Obj());
        vo = (Value.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup", new Value.Obj("ti.transport.ipc.srio.transports.TransportSrioSetup", po));
        pkgV.bind("TransportSrioSetup", vo);
        // decls 
        spo = (Proto.Obj)om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup$$Module_State", new Proto.Obj());
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State", new Proto.Str(spo, false));
    }

    void TransportSrio$$CONSTS()
    {
        // module TransportSrio
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.setErrFxn", new Extern("ti_transport_ipc_srio_transports_TransportSrio_setErrFxn__E", "xdc_Void(*)(xdc_Void(*)(ti_sdo_ipc_interfaces_IMessageQTransport_Reason,ti_sdo_ipc_interfaces_IMessageQTransport_Handle,xdc_Ptr,xdc_UArg))", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.initRxDescBufs", new Extern("ti_transport_ipc_srio_transports_TransportSrio_initRxDescBufs__E", "xdc_UInt32(*)(xdc_Void)", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.sharedMemReq", new Extern("ti_transport_ipc_srio_transports_TransportSrio_sharedMemReq__E", "xdc_SizeT(*)(ti_transport_ipc_srio_transports_TransportSrio_Params*)", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrio.isr", new Extern("ti_transport_ipc_srio_transports_TransportSrio_isr__I", "xdc_Void(*)(xdc_UArg)", true, false));
    }

    void TransportSrioSetup$$CONSTS()
    {
        // module TransportSrioSetup
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.attach", new Extern("ti_transport_ipc_srio_transports_TransportSrioSetup_attach__E", "xdc_Int(*)(xdc_UInt16,xdc_Ptr)", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.detach", new Extern("ti_transport_ipc_srio_transports_TransportSrioSetup_detach__E", "xdc_Int(*)(xdc_UInt16)", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.isRegistered", new Extern("ti_transport_ipc_srio_transports_TransportSrioSetup_isRegistered__E", "xdc_Bool(*)(xdc_UInt16)", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.sharedMemReq", new Extern("ti_transport_ipc_srio_transports_TransportSrioSetup_sharedMemReq__E", "xdc_SizeT(*)(xdc_Ptr)", true, false));
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup.setupRxDescBufs", new Extern("ti_transport_ipc_srio_transports_TransportSrioSetup_setupRxDescBufs__I", "xdc_Int(*)(xdc_UArg,xdc_UInt16)", true, false));
    }

    void TransportSrio$$CREATES()
    {
        Proto.Fxn fxn;
        StringBuilder sb;

        if (isCFG) {
            sb = new StringBuilder();
            sb.append("ti$transport$ipc$srio$transports$TransportSrio$$__initObject = function( inst ) {\n");
                sb.append("if (!this.$used) {\n");
                    sb.append("throw new Error(\"Function ti.transport.ipc.srio.transports.TransportSrio.create() called before xdc.useModule('ti.transport.ipc.srio.transports.TransportSrio')\");\n");
                sb.append("}\n");
                sb.append("var name = xdc.module('xdc.runtime.Text').defineRopeCord(inst.instance.name);\n");
                sb.append("inst.$object.$$bind('__name', name);\n");
                sb.append("this.instance$static$init.$fxn.apply(inst, [inst.$object, inst.$args.procId, inst, inst.$module]);\n");
                sb.append("inst.$seal();\n");
            sb.append("};\n");
            Global.eval(sb.toString());
            fxn = (Proto.Fxn)om.bind("ti.transport.ipc.srio.transports.TransportSrio$$create", new Proto.Fxn(om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module", "ti.transport.ipc.srio.transports"), om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance", "ti.transport.ipc.srio.transports"), 2, 1, false));
                        fxn.addArg(0, "procId", Proto.Elm.newCNum("(xdc_UInt16)"), $$UNDEF);
                        fxn.addArg(1, "__params", (Proto)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Params", "ti.transport.ipc.srio.transports"), Global.newObject());
            sb = new StringBuilder();
            sb.append("ti$transport$ipc$srio$transports$TransportSrio$$create = function( procId, __params ) {\n");
                sb.append("var __mod = xdc.om['ti.transport.ipc.srio.transports.TransportSrio'];\n");
                sb.append("var __inst = xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Instance'].$$make();\n");
                sb.append("__inst.$$bind('$package', xdc.om['ti.transport.ipc.srio.transports']);\n");
                sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
                sb.append("__inst.$$bind('$category', 'Instance');\n");
                sb.append("__inst.$$bind('$args', {procId:procId});\n");
                sb.append("__inst.$$bind('$module', __mod);\n");
                sb.append("__mod.$instances.$add(__inst);\n");
                sb.append("__inst.$$bind('$object', new xdc.om['ti.transport.ipc.srio.transports.TransportSrio'].Instance_State);\n");
                sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
                sb.append("var save = xdc.om.$curpkg;\n");
                sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
                sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [procId]);\n");
                sb.append("xdc.om.$$bind('$curpkg', save);\n");
                sb.append("__inst.$$bless();\n");
                sb.append("if (xdc.om.$$phase >= 5) xdc.om['ti.transport.ipc.srio.transports.TransportSrio'].__initObject(__inst);\n");
                sb.append("__inst.$$bind('$$phase', xdc.om.$$phase);\n");
                sb.append("return __inst;\n");
            sb.append("}\n");
            Global.eval(sb.toString());
        }//isCFG
        if (isCFG) {
            fxn = (Proto.Fxn)om.bind("ti.transport.ipc.srio.transports.TransportSrio$$construct", new Proto.Fxn(om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module", "ti.transport.ipc.srio.transports"), null, 3, 1, false));
                        fxn.addArg(0, "__obj", (Proto)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Object", "ti.transport.ipc.srio.transports"), null);
                        fxn.addArg(1, "procId", Proto.Elm.newCNum("(xdc_UInt16)"), $$UNDEF);
                        fxn.addArg(2, "__params", (Proto)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Params", "ti.transport.ipc.srio.transports"), Global.newObject());
            sb = new StringBuilder();
            sb.append("ti$transport$ipc$srio$transports$TransportSrio$$construct = function( __obj, procId, __params ) {\n");
                sb.append("var __mod = xdc.om['ti.transport.ipc.srio.transports.TransportSrio'];\n");
                sb.append("var __inst = __obj;\n");
                sb.append("__inst.$$bind('$args', {procId:procId});\n");
                sb.append("__inst.$$bind('$module', __mod);\n");
                sb.append("__mod.$objects.$add(__inst);\n");
                sb.append("__inst.$$bind('$object', xdc.om['ti.transport.ipc.srio.transports.TransportSrio'].Instance_State.$$make(__inst.$$parent, __inst.$name));\n");
                sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
                sb.append("__inst.$$bless();\n");
                sb.append("if (xdc.om.$$phase >= 5) xdc.om['ti.transport.ipc.srio.transports.TransportSrio'].__initObject(__inst);\n");
                sb.append("__inst.$$bind('$$phase', xdc.om.$$phase);\n");
                sb.append("return null;\n");
            sb.append("}\n");
            Global.eval(sb.toString());
        }//isCFG
    }

    void TransportSrioSetup$$CREATES()
    {
        Proto.Fxn fxn;
        StringBuilder sb;

    }

    void TransportSrio$$FUNCTIONS()
    {
        Proto.Fxn fxn;

    }

    void TransportSrioSetup$$FUNCTIONS()
    {
        Proto.Fxn fxn;

    }

    void TransportSrio$$SIZES()
    {
        Proto.Str so;
        Object fxn;

        so = (Proto.Str)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module_State", "ti.transport.ipc.srio.transports");
        sizes.clear();
        sizes.add(Global.newArray("hiPrioList", "UPtr"));
        sizes.add(Global.newArray("srioDriverHandle", "UPtr"));
        sizes.add(Global.newArray("srioDriverCreated", "UInt32"));
        sizes.add(Global.newArray("srioSocketHandle", "UPtr"));
        sizes.add(Global.newArray("srioTxCompQ", "UPtr"));
        sizes.add(Global.newArray("srioTxFreeQ", "UPtr"));
        sizes.add(Global.newArray("srioRxFreeQ", "UPtr"));
        sizes.add(Global.newArray("srioRxQ", "UPtr"));
        sizes.add(Global.newArray("rxMsgQHeapId", "UInt16"));
        so.bind("$$sizes", Global.newArray(sizes.toArray()));
        fxn = Global.eval("function() { return $$sizeof(xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Module_State']); }");
        so.bind("$sizeof", fxn);
        fxn = Global.eval("function() { return $$alignof(xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Module_State']); }");
        so.bind("$alignof", fxn);
        fxn = Global.eval("function(fld) { return $$offsetof(xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Module_State'], fld); }");
        so.bind("$offsetof", fxn);
        so = (Proto.Str)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance_State", "ti.transport.ipc.srio.transports");
        sizes.clear();
        sizes.add(Global.newArray("__fxns", "UPtr"));
        sizes.add(Global.newArray("remoteProcId", "UInt16"));
        sizes.add(Global.newArray("priority", "UInt16"));
        sizes.add(Global.newArray("intVectId", "UInt32"));
        so.bind("$$sizes", Global.newArray(sizes.toArray()));
        fxn = Global.eval("function() { return $$sizeof(xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Instance_State']); }");
        so.bind("$sizeof", fxn);
        fxn = Global.eval("function() { return $$alignof(xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Instance_State']); }");
        so.bind("$alignof", fxn);
        fxn = Global.eval("function(fld) { return $$offsetof(xdc.om['ti.transport.ipc.srio.transports.TransportSrio.Instance_State'], fld); }");
        so.bind("$offsetof", fxn);
    }

    void TransportSrioSetup$$SIZES()
    {
        Proto.Str so;
        Object fxn;

        so = (Proto.Str)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State", "ti.transport.ipc.srio.transports");
        sizes.clear();
        sizes.add(Global.newArray("handles", "UPtr"));
        sizes.add(Global.newArray("reservedMemAddr", "UPtr"));
        so.bind("$$sizes", Global.newArray(sizes.toArray()));
        fxn = Global.eval("function() { return $$sizeof(xdc.om['ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State']); }");
        so.bind("$sizeof", fxn);
        fxn = Global.eval("function() { return $$alignof(xdc.om['ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State']); }");
        so.bind("$alignof", fxn);
        fxn = Global.eval("function(fld) { return $$offsetof(xdc.om['ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State'], fld); }");
        so.bind("$offsetof", fxn);
    }

    void TransportSrio$$TYPES()
    {
        Scriptable cap;
        Proto.Obj po;
        Proto.Str ps;
        Proto.Typedef pt;
        Object fxn;

        cap = (Scriptable)Global.callFxn("loadCapsule", xdcO, "ti/transport/ipc/srio/transports/TransportSrio.xs");
        om.bind("ti.transport.ipc.srio.transports.TransportSrio$$capsule", cap);
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrio.Module", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Module", "ti.transport.ipc.srio.transports"));
                po.addFld("$hostonly", $$T_Num, 0, "r");
        if (isCFG) {
            po.addFld("A_srioProcIdInvalid", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioProcIdInvalid: MultiProc ID is invalid."), "w");
            po.addFld("A_srioRxCompQError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioRxCompQError: Unable to open the SRIO Receive Completion Queue."), "w");
            po.addFld("A_srioAccumulatorListSize", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioAccumulatorListSize: Accumulator list not sized correctly."), "w");
            po.addFld("A_srioAccumulatorListNULL", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioAccumulatorListNULL: Accumulator list is NULL."), "w");
            po.addFld("A_srioDriverError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioDriverError: SRIO Driver Start Failed."), "w");
            po.addFld("A_srioSocketError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioSocketError: Unable to open SRIO socket."), "w");
            po.addFld("A_srioSocketBindError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioSocketBindError: SRIO socket bind operation failed."), "w");
            po.addFld("A_srioSocketOptionError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioSocketOptionError: SRIO socket option operation failed."), "w");
            po.addFld("A_srioSocketCloseError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioSocketCloseError: SRIO socket close operation failed."), "w");
            po.addFld("A_srioQueueCloseError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioQueueCloseError: SRIO queue close operation failed."), "w");
            po.addFld("A_srioAllocTxBufPtrError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioAllocTxBufPtrError: SRIO TX buffer allocation received a NULL pointer."), "w");
            po.addFld("A_srioAllocTxBufLenError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioAllocTxBufLenError: SRIO TX buffer allocation received a buffer of zero length"), "w");
            po.addFld("A_srioMsgQFreeError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioMsgQFreeError: MessageQ free failed"), "w");
            po.addFld("A_srioSocketSendError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioSocketSendError: SRIO socket send operation failed."), "w");
            po.addFld("A_srioDrvHandleError", (Proto)om.findStrict("xdc.runtime.Assert$$Id", "ti.transport.ipc.srio.transports"), Global.newObject("msg", "A_srioDrvHandleError: SRIO driver handle is NULL."), "w");
            po.addFld("intThreshold", Proto.Elm.newCNum("(xdc_UInt)"), 1L, "w");
            po.addFld("accuHiPriListSize", Proto.Elm.newCNum("(xdc_UInt)"), 32L, "w");
            po.addFld("pacingEnabled", Proto.Elm.newCNum("(xdc_UInt)"), true, "w");
            po.addFld("timerLoadCount", Proto.Elm.newCNum("(xdc_UInt)"), 0L, "w");
            po.addFld("srioMaxMtuSizeBytes", Proto.Elm.newCNum("(xdc_UInt32)"), 256L, "w");
            po.addFld("srioNumTxDescriptors", Proto.Elm.newCNum("(xdc_UInt32)"), 4L, "w");
            po.addFld("srioNumRxDescriptors", Proto.Elm.newCNum("(xdc_UInt32)"), 4L, "w");
            po.addFld("numTxDescToCleanUp", Proto.Elm.newCNum("(xdc_UInt32)"), 1L, "w");
            po.addFld("descriptorSize", Proto.Elm.newCNum("(xdc_UInt)"), 32L, "w");
            po.addFld("srioGarbageQ", Proto.Elm.newCNum("(xdc_UInt32)"), 905L, "w");
            po.addFld("srioMaxNumSystemCores", Proto.Elm.newCNum("(xdc_UInt16)"), $$UNDEF, "w");
            po.addFld("srioCoreTT", new Proto.Arr(Proto.Elm.newCNum("(xdc_UInt16)"), false), $$DEFAULT, "w");
            po.addFld("srioCoreDeviceId", new Proto.Arr(Proto.Elm.newCNum("(xdc_UInt16)"), false), $$DEFAULT, "w");
            po.addFld("srioCoreMailbox", new Proto.Arr(Proto.Elm.newCNum("(xdc_UInt16)"), false), $$DEFAULT, "w");
            po.addFld("srioCoreLetter", new Proto.Arr(Proto.Elm.newCNum("(xdc_UInt16)"), false), $$DEFAULT, "w");
            po.addFld("srioCoreSegMap", new Proto.Arr(Proto.Elm.newCNum("(xdc_UInt16)"), false), $$DEFAULT, "w");
        }//isCFG
        if (isCFG) {
                        po.addFxn("create", (Proto.Fxn)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$create", "ti.transport.ipc.srio.transports"), Global.get("ti$transport$ipc$srio$transports$TransportSrio$$create"));
                        po.addFxn("construct", (Proto.Fxn)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$construct", "ti.transport.ipc.srio.transports"), Global.get("ti$transport$ipc$srio$transports$TransportSrio$$construct"));
        }//isCFG
        fxn = Global.get(cap, "module$use");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrio$$module$use", true);
        if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
        fxn = Global.get(cap, "module$meta$init");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrio$$module$meta$init", true);
        if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
        fxn = Global.get(cap, "instance$meta$init");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrio$$instance$meta$init", true);
        if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
        fxn = Global.get(cap, "module$static$init");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrio$$module$static$init", true);
        if (fxn != null) po.addFxn("module$static$init", $$T_Met, fxn);
        fxn = Global.get(cap, "module$validate");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrio$$module$validate", true);
        if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
        fxn = Global.get(cap, "instance$static$init");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrio$$instance$static$init", true);
        if (fxn != null) po.addFxn("instance$static$init", $$T_Met, fxn);
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrio.Instance", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Instance", "ti.transport.ipc.srio.transports"));
                po.addFld("$hostonly", $$T_Num, 0, "r");
        if (isCFG) {
            po.addFld("cacheLineSize", Proto.Elm.newCNum("(xdc_SizeT)"), 128L, "w");
            po.addFld("remoteProcId", Proto.Elm.newCNum("(xdc_UInt16)"), 0xFFFFL, "w");
            po.addFld("intVectorId", Proto.Elm.newCNum("(xdc_UInt)"), Global.eval("~1"), "w");
            po.addFld("descMemRegion", Proto.Elm.newCNum("(xdc_UInt)"), 0L, "w");
            po.addFld("rxMessageQHeapId", Proto.Elm.newCNum("(xdc_UInt16)"), 0L, "w");
                        po.addFld("instance", (Proto)om.findStrict("xdc.runtime.IInstance.Params", "ti.transport.ipc.srio.transports"), $$UNDEF, "w");
        }//isCFG
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Params", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrio.Params", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport$$Params", "ti.transport.ipc.srio.transports"));
                po.addFld("$hostonly", $$T_Num, 0, "r");
        if (isCFG) {
            po.addFld("cacheLineSize", Proto.Elm.newCNum("(xdc_SizeT)"), 128L, "w");
            po.addFld("remoteProcId", Proto.Elm.newCNum("(xdc_UInt16)"), 0xFFFFL, "w");
            po.addFld("intVectorId", Proto.Elm.newCNum("(xdc_UInt)"), Global.eval("~1"), "w");
            po.addFld("descMemRegion", Proto.Elm.newCNum("(xdc_UInt)"), 0L, "w");
            po.addFld("rxMessageQHeapId", Proto.Elm.newCNum("(xdc_UInt16)"), 0L, "w");
                        po.addFld("instance", (Proto)om.findStrict("xdc.runtime.IInstance.Params", "ti.transport.ipc.srio.transports"), $$UNDEF, "w");
        }//isCFG
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Object", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrio.Object", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance", "ti.transport.ipc.srio.transports"));
        // struct TransportSrio.Module_State
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Module_State", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrio.Module_State", null);
                po.addFld("$hostonly", $$T_Num, 0, "r");
                po.addFld("hiPrioList", new Proto.Adr("xdc_UInt32*", "Pn"), $$UNDEF, "w");
                po.addFld("srioDriverHandle", new Proto.Adr("xdc_Void*", "Pv"), $$UNDEF, "w");
                po.addFld("srioDriverCreated", Proto.Elm.newCNum("(xdc_UInt32)"), $$UNDEF, "w");
                po.addFld("srioSocketHandle", new Proto.Adr("xdc_Void*", "Pv"), $$UNDEF, "w");
                po.addFld("srioTxCompQ", new Proto.Adr("xdc_UInt32*", "Pn"), $$UNDEF, "w");
                po.addFld("srioTxFreeQ", new Proto.Adr("xdc_UInt32*", "Pn"), $$UNDEF, "w");
                po.addFld("srioRxFreeQ", new Proto.Adr("xdc_UInt32*", "Pn"), $$UNDEF, "w");
                po.addFld("srioRxQ", new Proto.Adr("xdc_UInt32*", "Pn"), $$UNDEF, "w");
                po.addFld("rxMsgQHeapId", Proto.Elm.newCNum("(xdc_UInt16)"), $$UNDEF, "w");
        // struct TransportSrio.Instance_State
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Instance_State", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrio.Instance_State", null);
                po.addFld("$hostonly", $$T_Num, 0, "r");
                po.addFld("remoteProcId", Proto.Elm.newCNum("(xdc_UInt16)"), $$UNDEF, "w");
                po.addFld("priority", Proto.Elm.newCNum("(xdc_UInt16)"), $$UNDEF, "w");
                po.addFld("intVectId", Proto.Elm.newCNum("(xdc_UInt32)"), $$UNDEF, "w");
    }

    void TransportSrioSetup$$TYPES()
    {
        Scriptable cap;
        Proto.Obj po;
        Proto.Str ps;
        Proto.Typedef pt;
        Object fxn;

        cap = (Scriptable)Global.callFxn("loadCapsule", xdcO, "ti/transport/ipc/srio/transports/TransportSrioSetup.xs");
        om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup$$capsule", cap);
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.Module", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrioSetup.Module", om.findStrict("ti.sdo.ipc.interfaces.ITransportSetup.Module", "ti.transport.ipc.srio.transports"));
                po.addFld("$hostonly", $$T_Num, 0, "r");
        if (isCFG) {
            po.addFld("dspIntVectId", Proto.Elm.newCNum("(xdc_UInt)"), 8L, "w");
            po.addFld("descMemRegion", Proto.Elm.newCNum("(xdc_UInt)"), 0L, "w");
            po.addFld("numRxDescBuffs", Proto.Elm.newCNum("(xdc_UInt16)"), 16L, "w");
            po.addFld("messageQHeapId", Proto.Elm.newCNum("(xdc_UInt16)"), 1L, "w");
        }//isCFG
        fxn = Global.get(cap, "module$use");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup$$module$use", true);
        if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
        fxn = Global.get(cap, "module$meta$init");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup$$module$meta$init", true);
        if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
        fxn = Global.get(cap, "module$static$init");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup$$module$static$init", true);
        if (fxn != null) po.addFxn("module$static$init", $$T_Met, fxn);
        fxn = Global.get(cap, "module$validate");
        if (fxn != null) om.bind("ti.transport.ipc.srio.transports.TransportSrioSetup$$module$validate", true);
        if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
        // struct TransportSrioSetup.Module_State
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup$$Module_State", "ti.transport.ipc.srio.transports");
        po.init("ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State", null);
                po.addFld("$hostonly", $$T_Num, 0, "r");
                po.addFld("handles", new Proto.Arr((Proto)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Handle", "ti.transport.ipc.srio.transports"), false), $$DEFAULT, "w");
                po.addFld("reservedMemAddr", new Proto.Adr("xdc_UInt32*", "Pn"), $$UNDEF, "w");
    }

    void TransportSrio$$ROV()
    {
        Proto.Obj po;
        Value.Obj vo;

        vo = (Value.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio", "ti.transport.ipc.srio.transports");
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Instance_State", "ti.transport.ipc.srio.transports");
        po.addFld("__fxns", new Proto.Adr("xdc_Ptr", "Pv"), $$UNDEF, "w");
        vo.bind("Module_State$fetchDesc", Global.newObject("type", "ti.transport.ipc.srio.transports.TransportSrio.Module_State", "isScalar", false));
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Module_State", "ti.transport.ipc.srio.transports");
        vo.bind("Instance_State$fetchDesc", Global.newObject("type", "ti.transport.ipc.srio.transports.TransportSrio.Instance_State", "isScalar", false));
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$Instance_State", "ti.transport.ipc.srio.transports");
    }

    void TransportSrioSetup$$ROV()
    {
        Proto.Obj po;
        Value.Obj vo;

        vo = (Value.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup", "ti.transport.ipc.srio.transports");
        vo.bind("Module_State$fetchDesc", Global.newObject("type", "ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State", "isScalar", false));
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup$$Module_State", "ti.transport.ipc.srio.transports");
        po.bind("handles$fetchDesc", Global.newObject("type", "xdc.rov.support.ScalarStructs.S_Ptr", "isScalar", true));
    }

    void $$SINGLETONS()
    {
        pkgP.init("ti.transport.ipc.srio.transports.Package", (Proto.Obj)om.findStrict("xdc.IPackage.Module", "ti.transport.ipc.srio.transports"));
        Scriptable cap = (Scriptable)Global.callFxn("loadCapsule", xdcO, "ti/transport/ipc/srio/transports/package.xs");
        om.bind("xdc.IPackage$$capsule", cap);
        Object fxn;
                fxn = Global.get(cap, "init");
                if (fxn != null) pkgP.addFxn("init", (Proto.Fxn)om.findStrict("xdc.IPackage$$init", "ti.transport.ipc.srio.transports"), fxn);
                fxn = Global.get(cap, "close");
                if (fxn != null) pkgP.addFxn("close", (Proto.Fxn)om.findStrict("xdc.IPackage$$close", "ti.transport.ipc.srio.transports"), fxn);
                fxn = Global.get(cap, "validate");
                if (fxn != null) pkgP.addFxn("validate", (Proto.Fxn)om.findStrict("xdc.IPackage$$validate", "ti.transport.ipc.srio.transports"), fxn);
                fxn = Global.get(cap, "exit");
                if (fxn != null) pkgP.addFxn("exit", (Proto.Fxn)om.findStrict("xdc.IPackage$$exit", "ti.transport.ipc.srio.transports"), fxn);
                fxn = Global.get(cap, "getLibs");
                if (fxn != null) pkgP.addFxn("getLibs", (Proto.Fxn)om.findStrict("xdc.IPackage$$getLibs", "ti.transport.ipc.srio.transports"), fxn);
                fxn = Global.get(cap, "getSects");
                if (fxn != null) pkgP.addFxn("getSects", (Proto.Fxn)om.findStrict("xdc.IPackage$$getSects", "ti.transport.ipc.srio.transports"), fxn);
        pkgP.bind("$capsule", cap);
        pkgV.init2(pkgP, "ti.transport.ipc.srio.transports", Value.DEFAULT, false);
        pkgV.bind("$name", "ti.transport.ipc.srio.transports");
        pkgV.bind("$category", "Package");
        pkgV.bind("$$qn", "ti.transport.ipc.srio.transports.");
        pkgV.bind("$vers", Global.newArray("1, 0, 1, 0"));
        Value.Map atmap = (Value.Map)pkgV.getv("$attr");
        atmap.seal("length");
        imports.clear();
        pkgV.bind("$imports", imports);
        StringBuilder sb = new StringBuilder();
        sb.append("var pkg = xdc.om['ti.transport.ipc.srio.transports'];\n");
        sb.append("if (pkg.$vers.length >= 3) {\n");
            sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
        sb.append("}\n");
        sb.append("pkg.build.libraries = [\n");
            sb.append("'lib/debug/ti.transport.ipc.srio.transports.ae66',\n");
            sb.append("'lib/debug/ti.transport.ipc.srio.transports.ae66e',\n");
        sb.append("];\n");
        sb.append("pkg.build.libDesc = [\n");
            sb.append("['lib/debug/ti.transport.ipc.srio.transports.ae66', {target: 'ti.targets.elf.C66', suffix: 'e66'}],\n");
            sb.append("['lib/debug/ti.transport.ipc.srio.transports.ae66e', {target: 'ti.targets.elf.C66_big_endian', suffix: 'e66e'}],\n");
        sb.append("];\n");
        Global.eval(sb.toString());
    }

    void TransportSrio$$SINGLETONS()
    {
        Proto.Obj po;
        Value.Obj vo;

        vo = (Value.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio", "ti.transport.ipc.srio.transports");
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module", "ti.transport.ipc.srio.transports");
        vo.init2(po, "ti.transport.ipc.srio.transports.TransportSrio", $$DEFAULT, false);
        vo.bind("Module", po);
        vo.bind("$category", "Module");
        vo.bind("$capsule", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio$$capsule", "ti.transport.ipc.srio.transports"));
        vo.bind("Instance", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance", "ti.transport.ipc.srio.transports"));
        vo.bind("Params", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Params", "ti.transport.ipc.srio.transports"));
        vo.bind("PARAMS", ((Proto.Str)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Params", "ti.transport.ipc.srio.transports")).newInstance());
        vo.bind("Handle", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Handle", "ti.transport.ipc.srio.transports"));
        vo.bind("$package", om.findStrict("ti.transport.ipc.srio.transports", "ti.transport.ipc.srio.transports"));
        tdefs.clear();
        proxies.clear();
        mcfgs.clear();
        icfgs.clear();
        inherits.clear();
        mcfgs.add("Module__diagsEnabled");
        icfgs.add("Module__diagsEnabled");
        mcfgs.add("Module__diagsIncluded");
        icfgs.add("Module__diagsIncluded");
        mcfgs.add("Module__diagsMask");
        icfgs.add("Module__diagsMask");
        mcfgs.add("Module__gateObj");
        icfgs.add("Module__gateObj");
        mcfgs.add("Module__gatePrms");
        icfgs.add("Module__gatePrms");
        mcfgs.add("Module__id");
        icfgs.add("Module__id");
        mcfgs.add("Module__loggerDefined");
        icfgs.add("Module__loggerDefined");
        mcfgs.add("Module__loggerObj");
        icfgs.add("Module__loggerObj");
        mcfgs.add("Module__loggerFxn0");
        icfgs.add("Module__loggerFxn0");
        mcfgs.add("Module__loggerFxn1");
        icfgs.add("Module__loggerFxn1");
        mcfgs.add("Module__loggerFxn2");
        icfgs.add("Module__loggerFxn2");
        mcfgs.add("Module__loggerFxn4");
        icfgs.add("Module__loggerFxn4");
        mcfgs.add("Module__loggerFxn8");
        icfgs.add("Module__loggerFxn8");
        mcfgs.add("Module__startupDoneFxn");
        icfgs.add("Module__startupDoneFxn");
        mcfgs.add("Object__count");
        icfgs.add("Object__count");
        mcfgs.add("Object__heap");
        icfgs.add("Object__heap");
        mcfgs.add("Object__sizeof");
        icfgs.add("Object__sizeof");
        mcfgs.add("Object__table");
        icfgs.add("Object__table");
        vo.bind("Status", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Status", "ti.transport.ipc.srio.transports"));
        vo.bind("Reason", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Reason", "ti.transport.ipc.srio.transports"));
        mcfgs.add("errFxn");
        vo.bind("ErrFxn", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.ErrFxn", "ti.transport.ipc.srio.transports"));
        mcfgs.add("A_srioProcIdInvalid");
        mcfgs.add("A_srioRxCompQError");
        mcfgs.add("A_srioAccumulatorListSize");
        mcfgs.add("A_srioAccumulatorListNULL");
        mcfgs.add("A_srioDriverError");
        mcfgs.add("A_srioSocketError");
        mcfgs.add("A_srioSocketBindError");
        mcfgs.add("A_srioSocketOptionError");
        mcfgs.add("A_srioSocketCloseError");
        mcfgs.add("A_srioQueueCloseError");
        mcfgs.add("A_srioAllocTxBufPtrError");
        mcfgs.add("A_srioAllocTxBufLenError");
        mcfgs.add("A_srioMsgQFreeError");
        mcfgs.add("A_srioSocketSendError");
        mcfgs.add("A_srioDrvHandleError");
        mcfgs.add("intThreshold");
        mcfgs.add("accuHiPriListSize");
        mcfgs.add("pacingEnabled");
        mcfgs.add("timerLoadCount");
        mcfgs.add("srioMaxMtuSizeBytes");
        mcfgs.add("srioNumTxDescriptors");
        mcfgs.add("srioNumRxDescriptors");
        mcfgs.add("numTxDescToCleanUp");
        mcfgs.add("descriptorSize");
        mcfgs.add("srioGarbageQ");
        mcfgs.add("srioMaxNumSystemCores");
        mcfgs.add("srioCoreTT");
        mcfgs.add("srioCoreDeviceId");
        mcfgs.add("srioCoreMailbox");
        mcfgs.add("srioCoreLetter");
        mcfgs.add("srioCoreSegMap");
        vo.bind("Module_State", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module_State", "ti.transport.ipc.srio.transports"));
        tdefs.add(om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Module_State", "ti.transport.ipc.srio.transports"));
        vo.bind("Instance_State", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance_State", "ti.transport.ipc.srio.transports"));
        tdefs.add(om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Instance_State", "ti.transport.ipc.srio.transports"));
        vo.bind("S_SUCCESS", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.S_SUCCESS", "ti.transport.ipc.srio.transports"));
        vo.bind("E_FAIL", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.E_FAIL", "ti.transport.ipc.srio.transports"));
        vo.bind("E_ERROR", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.E_ERROR", "ti.transport.ipc.srio.transports"));
        vo.bind("Reason_FAILEDPUT", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Reason_FAILEDPUT", "ti.transport.ipc.srio.transports"));
        vo.bind("Reason_INTERNALERR", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Reason_INTERNALERR", "ti.transport.ipc.srio.transports"));
        vo.bind("Reason_PHYSICALERR", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Reason_PHYSICALERR", "ti.transport.ipc.srio.transports"));
        vo.bind("Reason_FAILEDALLOC", om.findStrict("ti.sdo.ipc.interfaces.IMessageQTransport.Reason_FAILEDALLOC", "ti.transport.ipc.srio.transports"));
        vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
        vo.bind("$$proxies", Global.newArray(proxies.toArray()));
        vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
        vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
        inherits.add("ti.sdo.ipc.interfaces");
        inherits.add("xdc.runtime");
        vo.bind("$$inherits", Global.newArray(inherits.toArray()));
        ((Value.Arr)pkgV.getv("$modules")).add(vo);
        ((Value.Arr)om.findStrict("$modules", "ti.transport.ipc.srio.transports")).add(vo);
        vo.bind("$$instflag", 1);
        vo.bind("$$iobjflag", 1);
        vo.bind("$$sizeflag", 1);
        vo.bind("$$dlgflag", 0);
        vo.bind("$$iflag", 1);
        vo.bind("$$romcfgs", "|");
        vo.bind("$$nortsflag", 0);
        if (isCFG) {
            Proto.Str ps = (Proto.Str)vo.find("Module_State");
            if (ps != null) vo.bind("$object", ps.newInstance());
            vo.bind("$$meta_iobj", om.has("ti.transport.ipc.srio.transports.TransportSrio$$instance$static$init", null) ? 1 : 0);
            vo.bind("__initObject", Global.get("ti$transport$ipc$srio$transports$TransportSrio$$__initObject"));
        }//isCFG
        vo.bind("setErrFxn", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.setErrFxn", "ti.transport.ipc.srio.transports"));
        vo.bind("initRxDescBufs", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.initRxDescBufs", "ti.transport.ipc.srio.transports"));
        vo.bind("sharedMemReq", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.sharedMemReq", "ti.transport.ipc.srio.transports"));
        vo.bind("isr", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.isr", "ti.transport.ipc.srio.transports"));
        vo.bind("$$fxntab", Global.newArray("ti_transport_ipc_srio_transports_TransportSrio_Handle__label__E", "ti_transport_ipc_srio_transports_TransportSrio_Module__startupDone__E", "ti_transport_ipc_srio_transports_TransportSrio_Object__create__E", "ti_transport_ipc_srio_transports_TransportSrio_Object__delete__E", "ti_transport_ipc_srio_transports_TransportSrio_Object__destruct__E", "ti_transport_ipc_srio_transports_TransportSrio_Object__get__E", "ti_transport_ipc_srio_transports_TransportSrio_Object__first__E", "ti_transport_ipc_srio_transports_TransportSrio_Object__next__E", "ti_transport_ipc_srio_transports_TransportSrio_Params__init__E", "ti_transport_ipc_srio_transports_TransportSrio_setErrFxn__E", "ti_transport_ipc_srio_transports_TransportSrio_getStatus__E", "ti_transport_ipc_srio_transports_TransportSrio_put__E", "ti_transport_ipc_srio_transports_TransportSrio_control__E", "ti_transport_ipc_srio_transports_TransportSrio_initRxDescBufs__E", "ti_transport_ipc_srio_transports_TransportSrio_sharedMemReq__E"));
        vo.bind("$$logEvtCfgs", Global.newArray());
        vo.bind("$$errorDescCfgs", Global.newArray());
        vo.bind("$$assertDescCfgs", Global.newArray("A_srioProcIdInvalid", "A_srioRxCompQError", "A_srioAccumulatorListSize", "A_srioAccumulatorListNULL", "A_srioDriverError", "A_srioSocketError", "A_srioSocketBindError", "A_srioSocketOptionError", "A_srioSocketCloseError", "A_srioQueueCloseError", "A_srioAllocTxBufPtrError", "A_srioAllocTxBufLenError", "A_srioMsgQFreeError", "A_srioSocketSendError", "A_srioDrvHandleError"));
        Value.Map atmap = (Value.Map)vo.getv("$attr");
        atmap.setElem("", true);
        atmap.setElem("", true);
        atmap.seal("length");
        vo.bind("Object", om.findStrict("ti.transport.ipc.srio.transports.TransportSrio.Object", "ti.transport.ipc.srio.transports"));
        vo.bind("MODULE_STARTUP$", 0);
        vo.bind("PROXY$", 0);
        loggables.clear();
        loggables.add(Global.newObject("name", "setErrFxn", "entry", "%p", "exit", ""));
        loggables.add(Global.newObject("name", "initRxDescBufs", "entry", "", "exit", "0x%x"));
        loggables.add(Global.newObject("name", "sharedMemReq", "entry", "%p", "exit", "0x%x"));
        vo.bind("$$loggables", loggables.toArray());
        pkgV.bind("TransportSrio", vo);
        ((Value.Arr)pkgV.getv("$unitNames")).add("TransportSrio");
    }

    void TransportSrioSetup$$SINGLETONS()
    {
        Proto.Obj po;
        Value.Obj vo;

        vo = (Value.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup", "ti.transport.ipc.srio.transports");
        po = (Proto.Obj)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.Module", "ti.transport.ipc.srio.transports");
        vo.init2(po, "ti.transport.ipc.srio.transports.TransportSrioSetup", $$DEFAULT, false);
        vo.bind("Module", po);
        vo.bind("$category", "Module");
        vo.bind("$capsule", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup$$capsule", "ti.transport.ipc.srio.transports"));
        vo.bind("$package", om.findStrict("ti.transport.ipc.srio.transports", "ti.transport.ipc.srio.transports"));
        tdefs.clear();
        proxies.clear();
        mcfgs.clear();
        icfgs.clear();
        inherits.clear();
        mcfgs.add("Module__diagsEnabled");
        icfgs.add("Module__diagsEnabled");
        mcfgs.add("Module__diagsIncluded");
        icfgs.add("Module__diagsIncluded");
        mcfgs.add("Module__diagsMask");
        icfgs.add("Module__diagsMask");
        mcfgs.add("Module__gateObj");
        icfgs.add("Module__gateObj");
        mcfgs.add("Module__gatePrms");
        icfgs.add("Module__gatePrms");
        mcfgs.add("Module__id");
        icfgs.add("Module__id");
        mcfgs.add("Module__loggerDefined");
        icfgs.add("Module__loggerDefined");
        mcfgs.add("Module__loggerObj");
        icfgs.add("Module__loggerObj");
        mcfgs.add("Module__loggerFxn0");
        icfgs.add("Module__loggerFxn0");
        mcfgs.add("Module__loggerFxn1");
        icfgs.add("Module__loggerFxn1");
        mcfgs.add("Module__loggerFxn2");
        icfgs.add("Module__loggerFxn2");
        mcfgs.add("Module__loggerFxn4");
        icfgs.add("Module__loggerFxn4");
        mcfgs.add("Module__loggerFxn8");
        icfgs.add("Module__loggerFxn8");
        mcfgs.add("Module__startupDoneFxn");
        icfgs.add("Module__startupDoneFxn");
        mcfgs.add("Object__count");
        icfgs.add("Object__count");
        mcfgs.add("Object__heap");
        icfgs.add("Object__heap");
        mcfgs.add("Object__sizeof");
        icfgs.add("Object__sizeof");
        mcfgs.add("Object__table");
        icfgs.add("Object__table");
        mcfgs.add("priority");
        mcfgs.add("dspIntVectId");
        mcfgs.add("descMemRegion");
        mcfgs.add("numRxDescBuffs");
        mcfgs.add("messageQHeapId");
        vo.bind("Module_State", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State", "ti.transport.ipc.srio.transports"));
        tdefs.add(om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.Module_State", "ti.transport.ipc.srio.transports"));
        vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
        vo.bind("$$proxies", Global.newArray(proxies.toArray()));
        vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
        vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
        inherits.add("ti.sdo.ipc.interfaces");
        inherits.add("xdc.runtime");
        vo.bind("$$inherits", Global.newArray(inherits.toArray()));
        ((Value.Arr)pkgV.getv("$modules")).add(vo);
        ((Value.Arr)om.findStrict("$modules", "ti.transport.ipc.srio.transports")).add(vo);
        vo.bind("$$instflag", 0);
        vo.bind("$$iobjflag", 0);
        vo.bind("$$sizeflag", 1);
        vo.bind("$$dlgflag", 0);
        vo.bind("$$iflag", 1);
        vo.bind("$$romcfgs", "|");
        vo.bind("$$nortsflag", 0);
        if (isCFG) {
            Proto.Str ps = (Proto.Str)vo.find("Module_State");
            if (ps != null) vo.bind("$object", ps.newInstance());
            vo.bind("$$meta_iobj", 1);
        }//isCFG
        vo.bind("attach", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.attach", "ti.transport.ipc.srio.transports"));
        vo.bind("detach", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.detach", "ti.transport.ipc.srio.transports"));
        vo.bind("isRegistered", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.isRegistered", "ti.transport.ipc.srio.transports"));
        vo.bind("sharedMemReq", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.sharedMemReq", "ti.transport.ipc.srio.transports"));
        vo.bind("setupRxDescBufs", om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup.setupRxDescBufs", "ti.transport.ipc.srio.transports"));
        vo.bind("$$fxntab", Global.newArray("ti_transport_ipc_srio_transports_TransportSrioSetup_Module__startupDone__E", "ti_transport_ipc_srio_transports_TransportSrioSetup_attach__E", "ti_transport_ipc_srio_transports_TransportSrioSetup_detach__E", "ti_transport_ipc_srio_transports_TransportSrioSetup_isRegistered__E", "ti_transport_ipc_srio_transports_TransportSrioSetup_sharedMemReq__E"));
        vo.bind("$$logEvtCfgs", Global.newArray());
        vo.bind("$$errorDescCfgs", Global.newArray());
        vo.bind("$$assertDescCfgs", Global.newArray());
        Value.Map atmap = (Value.Map)vo.getv("$attr");
        atmap.setElem("", true);
        atmap.seal("length");
        vo.bind("MODULE_STARTUP$", 1);
        vo.bind("PROXY$", 0);
        loggables.clear();
        vo.bind("$$loggables", loggables.toArray());
        pkgV.bind("TransportSrioSetup", vo);
        ((Value.Arr)pkgV.getv("$unitNames")).add("TransportSrioSetup");
    }

    void $$INITIALIZATION()
    {
        Value.Obj vo;

        if (isCFG) {
            Object srcP = ((XScriptO)om.findStrict("xdc.runtime.IInstance", "ti.transport.ipc.srio.transports")).findStrict("PARAMS", "ti.transport.ipc.srio.transports");
            Scriptable dstP;

            dstP = (Scriptable)((XScriptO)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio", "ti.transport.ipc.srio.transports")).findStrict("PARAMS", "ti.transport.ipc.srio.transports");
            Global.put(dstP, "instance", srcP);
        }//isCFG
        Global.callFxn("module$meta$init", (Scriptable)om.findStrict("ti.transport.ipc.srio.transports.TransportSrio", "ti.transport.ipc.srio.transports"));
        Global.callFxn("module$meta$init", (Scriptable)om.findStrict("ti.transport.ipc.srio.transports.TransportSrioSetup", "ti.transport.ipc.srio.transports"));
        Global.callFxn("init", pkgV);
        ((Value.Obj)om.getv("ti.transport.ipc.srio.transports.TransportSrio")).bless();
        ((Value.Obj)om.getv("ti.transport.ipc.srio.transports.TransportSrioSetup")).bless();
        ((Value.Arr)om.findStrict("$packages", "ti.transport.ipc.srio.transports")).add(pkgV);
    }

    public void exec( Scriptable xdcO, Session ses )
    {
        this.xdcO = xdcO;
        this.ses = ses;
        om = (Value.Obj)xdcO.get("om", null);

        Object o = om.geto("$name");
        String s = o instanceof String ? (String)o : null;
        isCFG = s != null && s.equals("cfg");
        isROV = s != null && s.equals("rov");

        $$IMPORTS();
        $$OBJECTS();
        TransportSrio$$OBJECTS();
        TransportSrioSetup$$OBJECTS();
        TransportSrio$$CONSTS();
        TransportSrioSetup$$CONSTS();
        TransportSrio$$CREATES();
        TransportSrioSetup$$CREATES();
        TransportSrio$$FUNCTIONS();
        TransportSrioSetup$$FUNCTIONS();
        TransportSrio$$SIZES();
        TransportSrioSetup$$SIZES();
        TransportSrio$$TYPES();
        TransportSrioSetup$$TYPES();
        if (isROV) {
            TransportSrio$$ROV();
            TransportSrioSetup$$ROV();
        }//isROV
        $$SINGLETONS();
        TransportSrio$$SINGLETONS();
        TransportSrioSetup$$SINGLETONS();
        $$INITIALIZATION();
    }
}
