Exemplo n.º 1
0
  void Agent$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/Agent.xs");
    om.bind("ti.sysbios.rta.Agent$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta");
    po.init("ti.sysbios.rta.Agent.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("loadLogging", $$T_Bool, true, "wh");
    po.addFld("loadLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("loadLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 512L, "wh");
    po.addFld("loadLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("mainLogging", $$T_Bool, true, "wh");
    po.addFld("mainLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("mainLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("mainLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("sysbiosHwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosHwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosTaskLogging", $$T_Bool, true, "wh");
    po.addFld("sysbiosTaskLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("sysbiosLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 4096L, "wh");
    po.addFld("sysbiosLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("configureSystemLog", $$T_Bool, true, "wh");
    po.addFld("numSystemRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("configureLoadLog", $$T_Bool, true, "wh");
    po.addFld("numLoadRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("periodInMs", Proto.Elm.newCNum("(xdc_Int)"), 100L, "wh");
    po.addFld("priority", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("agentStackSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("agentStackSection", $$T_Str, "[Default]", "wh");
    po.addFld("transferBufferSize", Proto.Elm.newCNum("(xdc_Int)"), 85L, "wh");
    po.addFld("transferBufferSection", $$T_Str, $$UNDEF, "wh");
    po.addFld("addSupportLogger", $$T_Bool, true, "wh");
    po.addFld("supportControl", $$T_Bool, true, "wh");
    po.addFld(
        "transport",
        (Proto) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
        om.find("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY"),
        "wh");
    po.addFld("dataStream", $$T_Str, "/rtdx0", "wh");
    po.addFld("commandStream", $$T_Str, "/rtdx1", "wh");
    po.addFld("responseStream", $$T_Str, "/rtdx1", "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$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.sysbios.rta.Agent$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }
  void IUNIVERSAL$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL.Module", "ti.sdo.ce.universal");
    po.init(
        "ti.sdo.ce.universal.IUNIVERSAL.Module",
        om.findStrict("ti.sdo.ce.ICodec.Module", "ti.sdo.ce.universal"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("serverFxns", $$T_Str, "UNIVERSAL_SKEL", "wh");
    po.addFld("stubFxns", $$T_Str, "UNIVERSAL_STUBS", "wh");
    po.addFld("rpcProtocolVersion", Proto.Elm.newCNum("(xdc_Int)"), 1L, "rh");
    po.addFld("codecClassConfigurable", $$T_Bool, true, "rh");
    po.addFld(
        "manageInBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
    po.addFld(
        "manageInOutBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
    po.addFld(
        "manageOutBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
  }
Exemplo n.º 3
0
  void SupportLogger$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/SupportLogger.xs");
    om.bind("ti.sysbios.rta.SupportLogger$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.SupportLogger.Module", "ti.sysbios.rta");
    po.init(
        "ti.sysbios.rta.SupportLogger.Module",
        om.findStrict("xdc.runtime.IModule.Module", "ti.sysbios.rta"));
    po.addFld("$hostonly", $$T_Num, 0, "r");
    if (isCFG) {
      po.addFld(
          "LM_timestampFreq",
          (Proto) om.findStrict("xdc.runtime.Log$$Event", "ti.sysbios.rta"),
          Global.newObject(
              "mask",
              Global.eval("0x0100 | 0x0200"),
              "msg",
              "LM_timestampFreq: Timestamp Frequency hi: %d, lo: %d"),
          "w");
      po.addFld("createLogSize", Proto.Elm.newCNum("(xdc_Int)"), 32L, "w");
    } // isCFG
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$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.sysbios.rta.SupportLogger$$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.sysbios.rta.SupportLogger$$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.sysbios.rta.SupportLogger$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }
Exemplo n.º 4
0
  void SunSparc7$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/SunSparc7.xs");
    om.bind("host.platforms.SUN.SunSparc7$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Module",
        om.findStrict("xdc.platform.ICpuDataSheet.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$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("host.platforms.SUN.SunSparc7$$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("host.platforms.SUN.SunSparc7$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Instance",
        om.findStrict("xdc.platform.ICpuDataSheet.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Params",
        om.findStrict("xdc.platform.ICpuDataSheet$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Object",
        om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
  }
Exemplo n.º 5
0
  void Cmdr$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/Cmdr.xs");
    om.bind("xdc.tools.Cmdr$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools");
    po.init("xdc.tools.Cmdr.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$create", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$construct", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$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("xdc.tools.Cmdr$$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("xdc.tools.Cmdr$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools");
    po.init("xdc.tools.Cmdr.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Params", "xdc.tools");
    po.init("xdc.tools.Cmdr.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools");
    po.init("xdc.tools.Cmdr.Object", om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"));
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
  }