TransportRpmsg: Renamed TransportVirtio to TransportRpmsg.
authorG Anthony <a0783926@ti.com>
Tue, 26 Mar 2013 23:46:26 +0000 (16:46 -0700)
committerG Anthony <a0783926@ti.com>
Mon, 1 Apr 2013 21:15:19 +0000 (14:15 -0700)
The transport for MessageQ actually goes over the RPMSG protocol on the BIOS
side, so this is a more accurate name than TransportVirtio.

Signed-off-by: G Anthony <a0783926@ti.com>
20 files changed:
.gitignore
packages/ti/ipc/ipcmgr/IpcMgr.c
packages/ti/ipc/namesrv/NameServerRemoteRpmsg.xdc
packages/ti/ipc/namesrv/NameServerRemoteRpmsg.xs
packages/ti/ipc/namesrv/_NameServerRemoteRpmsg.h
packages/ti/ipc/tests/dual_transports.c
packages/ti/ipc/tests/dual_transports.cfg
packages/ti/ipc/tests/messageq_common.cfg.xs
packages/ti/ipc/tests/ping_rpmsg_common.cfg.xs
packages/ti/ipc/tests/rpmsg_transport.cfg
packages/ti/ipc/transports/TransportRpmsg.c [moved from packages/ti/ipc/transports/TransportVirtio.c with 90% similarity]
packages/ti/ipc/transports/TransportRpmsg.xdc [moved from packages/ti/ipc/transports/TransportVirtio.xdc with 93% similarity]
packages/ti/ipc/transports/TransportRpmsg.xs [moved from packages/ti/ipc/transports/TransportVirtio.xs with 94% similarity]
packages/ti/ipc/transports/TransportRpmsgSetup.c [moved from packages/ti/ipc/transports/TransportVirtioSetup.c with 68% similarity]
packages/ti/ipc/transports/TransportRpmsgSetup.xdc [moved from packages/ti/ipc/transports/TransportVirtioSetup.xdc with 82% similarity]
packages/ti/ipc/transports/TransportRpmsgSetup.xs [moved from packages/ti/ipc/transports/TransportVirtioSetup.xs with 87% similarity]
packages/ti/ipc/transports/_TransportRpmsg.h [moved from packages/ti/ipc/transports/_TransportVirtio.h with 98% similarity]
packages/ti/ipc/transports/package.bld
packages/ti/ipc/transports/package.xdc
packages/ti/sdo/ipc/family/Settings.xs

index 51969b9593b5e935e7ed6cd49128b01d8c96ebe1..b9db56aea53707a1ef4eafb8334f71f0692b951f 100644 (file)
@@ -23,8 +23,8 @@ packages/ti/ipc/family/tci6638/NotifyCircSetup.h
 packages/ti/ipc/family/tci6638/VirtQueue.h
 packages/ti/ipc/namesrv/NameServerRemoteRpmsg.h
 packages/ti/ipc/remoteproc/Resource.h
-packages/ti/ipc/transports/TransportVirtio.h
-packages/ti/ipc/transports/TransportVirtioSetup.h
+packages/ti/ipc/transports/TransportRpmsg.h
+packages/ti/ipc/transports/TransportRpmsgSetup.h
 packages/ti/trace/SysMin.h
 packages/ti/resources/IpcMemory.h
 packages/ti/srvmgr/omx/OmxSrvMgr.h
index b2b66281f00e7e68423697f52c096d2350bd4cca..f34a2e3fffd97c4095e2f568a02b1654fbfebac0 100644 (file)
@@ -40,7 +40,7 @@
 #include <ti/ipc/Ipc.h>
 #include <ti/ipc/MultiProc.h>
 #include <ti/ipc/namesrv/NameServerRemoteRpmsg.h>
-#include <ti/ipc/transports/TransportVirtioSetup.h>
+#include <ti/ipc/transports/TransportRpmsgSetup.h>
 #include <ti/ipc/rpmsg/_MessageQCopy.h>
 
 /*
@@ -67,8 +67,8 @@ Void IpcMgr_ipcStartup()
     UInt procId = MultiProc_getId("HOST");
     Int status;
 
-    /* TransportVirtioSetup will busy wait until host kicks ready to recv: */
-    status = TransportVirtioSetup_attach(procId, 0);
+    /* TransportRpmsgSetup will busy wait until host kicks ready to recv: */
+    status = TransportRpmsgSetup_attach(procId, 0);
     Assert_isTrue(status >= 0, NULL);
 
     /* Sets up to comminicate with host's NameServer: */
index f50ea0abd708b7e93912f0b726fa1f54667bfddf..ecdad760736dd42dc0cb6b780d335d73fe71628c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Texas Instruments Incorporated
+ * Copyright (c) 2012-2013, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ import ti.sdo.utils.INameServerRemote;
  *  There needs to be one instance between each two cores in the system.
  *  Interrupts must be enabled before using this module.
  *
- *  This NameServerRemote is tied to the TransportVirtio transport, mainly
+ *  This NameServerRemote is tied to the TransportRpmsg transport, mainly
  *  used beteen a Linux host and a BIOS core acting as slave.
  */
 
index e707f2089ff41980c0e7cc265a4d30d0cec15e98..756f5cf36cec37233d77f5faf77a7406dced1cbe 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Texas Instruments Incorporated
+ * Copyright (c) 2012-2013, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -74,6 +74,6 @@ function module$static$init(mod, params)
     /* create GateMutex */
     mod.gateMutex = GateMutex.create();
 
-    /* Will initialize correctly during TransportVirtio swiFxn ns announce */
+    /* Will initialize correctly during TransportRpmsg swiFxn ns announce */
     mod.nsPort = (-1);
 }
index 67cda3ecd25c4d96c266f4a86fac0d0b77ba3260..074f2699ce9f1c49095dacee200a9948f900c512 100644 (file)
@@ -59,7 +59,7 @@ typedef struct NameServerRemote_Msg {
 #define NAMESERVER_MSG_TOKEN   0x5678abcd
 
 /* That special per processor RPMSG channel reserved to multiplex MessageQ */
-/* Duplicated in _TransportVirtio.h: move to a common rpmsg_ports.h? */
+/* Duplicated in _TransportRpmsg.h: move to a common rpmsg_ports.h? */
 #define RPMSG_MESSAGEQ_PORT         61
 
 extern void NameServerRemote_processMessage(NameServerRemote_Msg * ns_msg);
index 13e975f28a65cb725df42f4cd196c03323a70f88..384eacf9225b0af01c47d1fe5354d605e996be39 100644 (file)
@@ -31,7 +31,7 @@
  * */
 /*
  *  ======== dual_transports.c ========
- *  Multiprocessor MessageQ example, demonstrating TransportVirtio and
+ *  Multiprocessor MessageQ example, demonstrating TransportRpmsg and
  *  TransportShm coexistence.
  *
  *  Task1 uses MessageQ to pass a message in a ring between DSP CORES.
index e773e10c558562aae5f6c236831c46e2cb78fae3..2377022754b264f43cab63bb89ad2b9552ca7486 100644 (file)
@@ -48,7 +48,7 @@ MultiProcSetup.configureProcId = false;
 xdc.loadCapsule("messageq_common.cfg.xs");
 
 /*
- * Plug shared Interrupt used in TransportVirtio into NotifyDriverShm, before
+ * Plug shared Interrupt used in TransportRpmsg into NotifyDriverShm, before
  * Settings.xs does it:
  */
 if (Program.platformName.match(/6614/)) {
index c184b01e1786db21944ee94ee5e875d6dc8e9e6c..f394439b2c811103fa42deb1133ea387ea885db2 100644 (file)
@@ -88,7 +88,7 @@ if (Program.cpu.deviceName == "OMAPL138") {
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.family.omapl138.VirtQueue", Diags.USER1,
         Diags.ALWAYS_ON);
-    Diags.setMaskMeta("ti.ipc.transports.TransportVirtio",
+    Diags.setMaskMeta("ti.ipc.transports.TransportRpmsg",
         Diags.INFO|Diags.USER1|Diags.STATUS,
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.namesrv.NameServerRemoteRpmsg", Diags.INFO,
@@ -147,7 +147,7 @@ else if (Program.platformName.match(/6614/)) {
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.family.tci6614.VirtQueue", Diags.USER1,
         Diags.ALWAYS_ON);
-    Diags.setMaskMeta("ti.ipc.transports.TransportVirtio",
+    Diags.setMaskMeta("ti.ipc.transports.TransportRpmsg",
         Diags.INFO|Diags.USER1|Diags.STATUS,
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.namesrv.NameServerRemoteRpmsg", Diags.INFO,
@@ -197,7 +197,7 @@ else if (Program.platformName.match(/simKepler/) ||
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.family.tci6638.VirtQueue", Diags.USER1,
         Diags.ALWAYS_ON);
-    Diags.setMaskMeta("ti.ipc.transports.TransportVirtio",
+    Diags.setMaskMeta("ti.ipc.transports.TransportRpmsg",
         Diags.INFO|Diags.USER1|Diags.STATUS,
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.namesrv.NameServerRemoteRpmsg", Diags.INFO,
@@ -233,7 +233,7 @@ var LoggerSysParams = new LoggerSys.Params();
 
 Defaults.common$.logger = LoggerSys.create(LoggerSysParams);
 
-var VirtioSetup = xdc.useModule('ti.ipc.transports.TransportVirtioSetup');
+var VirtioSetup = xdc.useModule('ti.ipc.transports.TransportRpmsgSetup');
 VirtioSetup.common$.diags_INFO = Diags.RUNTIME_OFF;
 
 var Main = xdc.useModule('xdc.runtime.Main');
index 7cb15632308152173c9ba9ea2b8c82d99a72639b..6e84fe75a566781146cb2c2677ad36180c562924 100644 (file)
@@ -120,7 +120,7 @@ else if (Program.platformName.match(/6614/)) {
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.family.tci6614.VirtQueue", Diags.USER1,
         Diags.ALWAYS_ON);
-    Diags.setMaskMeta("ti.ipc.transports.TransportVirtio",
+    Diags.setMaskMeta("ti.ipc.transports.TransportRpmsg",
         Diags.INFO|Diags.USER1|Diags.STATUS,
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.namesrv.NameServerRemoteRpmsg", Diags.INFO,
@@ -169,7 +169,7 @@ else if (Program.platformName.match(/simKepler/) ||
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.family.tci6638.VirtQueue", Diags.USER1,
         Diags.ALWAYS_ON);
-    Diags.setMaskMeta("ti.ipc.transports.TransportVirtio",
+    Diags.setMaskMeta("ti.ipc.transports.TransportRpmsg",
         Diags.INFO|Diags.USER1|Diags.STATUS,
         Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.namesrv.NameServerRemoteRpmsg", Diags.INFO,
index c8b896782638d6dd035f0bf2d7f905e30d75b2ff..b107208b84535d77e97e46438d1aa834407f2440 100644 (file)
@@ -52,12 +52,12 @@ if (Program.platformName.match(/ipu/)) {
     MessageQ.registerHeapMeta(msgHeap, 0);
 
     var Diags = xdc.useModule('xdc.runtime.Diags');
-    Diags.setMaskMeta("ti.ipc.transports.TransportVirtio",
+    Diags.setMaskMeta("ti.ipc.transports.TransportRpmsg",
         Diags.INFO|Diags.USER1|Diags.STATUS, Diags.ALWAYS_ON);
     Diags.setMaskMeta("ti.ipc.namesrv.NameServerRemoteRpmsg", Diags.INFO,
         Diags.ALWAYS_ON);
 
-    var VirtioSetup = xdc.useModule('ti.ipc.transports.TransportVirtioSetup');
+    var VirtioSetup = xdc.useModule('ti.ipc.transports.TransportRpmsgSetup');
     VirtioSetup.common$.diags_INFO = Diags.ALWAYS_ON;
 
     xdc.loadCapsule("ti/configs/omap54xx/IpcCommon.cfg.xs");
@@ -70,11 +70,11 @@ else {
 
 var MessageQ  = xdc.useModule('ti.sdo.ipc.MessageQ');
 
-var VirtioSetup = xdc.useModule('ti.ipc.transports.TransportVirtioSetup');
+var VirtioSetup = xdc.useModule('ti.ipc.transports.TransportRpmsgSetup');
 MessageQ.SetupTransportProxy = VirtioSetup;
 
 var NameServer = xdc.useModule("ti.sdo.utils.NameServer");
 var NsRemote = xdc.useModule("ti.ipc.namesrv.NameServerRemoteRpmsg");
 NameServer.SetupProxy = NsRemote;
 
-var TransportVirtio = xdc.useModule('ti.ipc.transports.TransportVirtio');
+var TransportRpmsg = xdc.useModule('ti.ipc.transports.TransportRpmsg');
similarity index 90%
rename from packages/ti/ipc/transports/TransportVirtio.c
rename to packages/ti/ipc/transports/TransportRpmsg.c
index 7015f7b5ccdbe7bc5158a8875b1c84c27d4b1c5b..ea3a5fcf2a65782c98ff1f8eb2a8bb40e6225434 100644 (file)
@@ -30,7 +30,7 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== TransportVirtio.c ========
+ *  ======== TransportRpmsg.c ========
  */
 
 #include <string.h>
@@ -60,8 +60,8 @@
 
 #include <ti/ipc/namesrv/_NameServerRemoteRpmsg.h>
 
-#include "_TransportVirtio.h"
-#include "package/internal/TransportVirtio.xdc.h"
+#include "_TransportRpmsg.h"
+#include "package/internal/TransportRpmsg.xdc.h"
 
 /* Maximum RPMSG payload: */
 #define MAX_PAYLOAD (RPMSG_BUF_SIZE - sizeof(Rpmsg_Header))
@@ -82,12 +82,12 @@ static Void transportCallbackFxn(MessageQCopy_Handle msgq, UArg arg, Ptr data,
  */
 
 /*
- *  ======== TransportVirtio_Instance_init ========
+ *  ======== TransportRpmsg_Instance_init ========
  *
  */
-#define FXNN "TransportVirtio_Instance_init"
-Int TransportVirtio_Instance_init(TransportVirtio_Object *obj,
-        UInt16 remoteProcId, const TransportVirtio_Params *params,
+#define FXNN "TransportRpmsg_Instance_init"
+Int TransportRpmsg_Instance_init(TransportRpmsg_Object *obj,
+        UInt16 remoteProcId, const TransportRpmsg_Params *params,
         Error_Block *eb)
 {
     Bool        flag = FALSE;
@@ -123,7 +123,7 @@ Int TransportVirtio_Instance_init(TransportVirtio_Object *obj,
     if (obj->msgqHandle) {
         /* Register the transport with MessageQ */
         flag = ti_sdo_ipc_MessageQ_registerTransport(
-            TransportVirtio_Handle_upCast(obj), remoteProcId, params->priority);
+            TransportRpmsg_Handle_upCast(obj), remoteProcId, params->priority);
     }
 
     if (flag == FALSE) {
@@ -135,10 +135,10 @@ Int TransportVirtio_Instance_init(TransportVirtio_Object *obj,
 #undef FXNN
 
 /*
- *  ======== TransportVirtio_Instance_finalize ========
+ *  ======== TransportRpmsg_Instance_finalize ========
  */
-#define FXNN "TransportVirtio_Instance_finalize"
-Void TransportVirtio_Instance_finalize(TransportVirtio_Object *obj, Int status)
+#define FXNN "TransportRpmsg_Instance_finalize"
+Void TransportRpmsg_Instance_finalize(TransportRpmsg_Object *obj, Int status)
 {
     Log_print0(Diags_ENTRY, "--> "FXNN);
 
@@ -162,7 +162,7 @@ Void TransportVirtio_Instance_finalize(TransportVirtio_Object *obj, Int status)
 }
 
 /*
- *  ======== TransportVirtio_put ========
+ *  ======== TransportRpmsg_put ========
  *
  *  Notes: In keeping with the semantics of IMessageQTransport_put(), we
  *  simply return FALSE if the remote proc has made no buffers available in the
@@ -173,8 +173,8 @@ Void TransportVirtio_Instance_finalize(TransportVirtio_Object *obj, Int status)
  *
  *  Also, this is a copy-transport, to match the Linux side rpmsg.
  */
-#define FXNN "TransportVirtio_put"
-Bool TransportVirtio_put(TransportVirtio_Object *obj, Ptr msg)
+#define FXNN "TransportRpmsg_put"
+Bool TransportRpmsg_put(TransportRpmsg_Object *obj, Ptr msg)
 {
     Int          status;
     UInt         msgSize;
@@ -201,18 +201,18 @@ Bool TransportVirtio_put(TransportVirtio_Object *obj, Ptr msg)
 #undef FXNN
 
 /*
- *  ======== TransportVirtio_control ========
+ *  ======== TransportRpmsg_control ========
  */
-Bool TransportVirtio_control(TransportVirtio_Object *obj, UInt cmd,
+Bool TransportRpmsg_control(TransportRpmsg_Object *obj, UInt cmd,
     UArg cmdArg)
 {
     return (FALSE);
 }
 
 /*
- *  ======== TransportVirtio_getStatus ========
+ *  ======== TransportRpmsg_getStatus ========
  */
-Int TransportVirtio_getStatus(TransportVirtio_Object *obj)
+Int TransportRpmsg_getStatus(TransportRpmsg_Object *obj)
 {
     return (0);
 }
@@ -321,9 +321,9 @@ exit:
 }
 
 /*
- *  ======== TransportVirtio_setErrFxn ========
+ *  ======== TransportRpmsg_setErrFxn ========
  */
-Void TransportVirtio_setErrFxn(TransportVirtio_ErrFxn errFxn)
+Void TransportRpmsg_setErrFxn(TransportRpmsg_ErrFxn errFxn)
 {
     /* Ignore the errFxn */
 }
similarity index 93%
rename from packages/ti/ipc/transports/TransportVirtio.xdc
rename to packages/ti/ipc/transports/TransportRpmsg.xdc
index b3299e77efd1ff4d1333c8c65e8c1c458b4d0eb4..f09655aa891adbe61c4ce44eda4effede0656cd8 100644 (file)
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== TransportVirtio.xdc ================
+ *  ======== TransportRpmsg.xdc ================
  */
 
 /*!
- *  ======== TransportVirtio ========
+ *  ======== TransportRpmsg ========
  *  Transport for MessageQ that uses vring structures.
  *
  *  This is a {@link ti.sdo.ipc.MessageQ} transport that utilizes
@@ -46,7 +46,7 @@
 @InstanceInitError
 
 
-module TransportVirtio inherits ti.sdo.ipc.interfaces.IMessageQTransport
+module TransportRpmsg inherits ti.sdo.ipc.interfaces.IMessageQTransport
 {
 
 instance:
similarity index 94%
rename from packages/ti/ipc/transports/TransportVirtio.xs
rename to packages/ti/ipc/transports/TransportRpmsg.xs
index 741a2525b884a0f0d8d941097f8c776b958f4983..2b2e392bea79f2ec06e78076b4167d9c8f313ea2 100644 (file)
@@ -30,7 +30,7 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== TransportVirtio.xs ================
+ *  ======== TransportRpmsg.xs ================
  */
 
 /*
@@ -40,7 +40,7 @@ function module$use()
 {
     xdc.useModule("ti.sdo.utils.MultiProc");
     xdc.useModule("ti.sdo.ipc.MessageQ");
-    xdc.useModule("ti.ipc.transports.TransportVirtioSetup");
+    xdc.useModule("ti.ipc.transports.TransportRpmsgSetup");
     xdc.loadPackage("ti.ipc.namesrv");
     xdc.loadPackage("ti.ipc.rpmsg");
 }
similarity index 68%
rename from packages/ti/ipc/transports/TransportVirtioSetup.c
rename to packages/ti/ipc/transports/TransportRpmsgSetup.c
index 8e1e1d7f2974813b1e5b6acaf08de682eccf772e..753c36ec5856bb8bf2a26fb8fc0576cfe4452111 100644 (file)
@@ -30,7 +30,7 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== TransportVirtioSetup.c ========
+ *  ======== TransportRpmsgSetup.c ========
  */
 
 #include <xdc/std.h>
 #include <xdc/runtime/Log.h>
 #include <xdc/runtime/Diags.h>
 
-#include <ti/ipc/transports/TransportVirtio.h>
+#include <ti/ipc/transports/TransportRpmsg.h>
 
-#include "package/internal/TransportVirtioSetup.xdc.h"
+#include "package/internal/TransportRpmsgSetup.xdc.h"
 
 #include <ti/sdo/ipc/_MessageQ.h>
 #include <ti/sdo/utils/_MultiProc.h>
 
 /*
- *  ======== TransportVirtioSetup_attach ========
+ *  ======== TransportRpmsgSetup_attach ========
  */
-Int TransportVirtioSetup_attach(UInt16 remoteProcId, Ptr sharedAddr)
+Int TransportRpmsgSetup_attach(UInt16 remoteProcId, Ptr sharedAddr)
 {
-    TransportVirtio_Handle handle;
-    TransportVirtio_Params params;
+    TransportRpmsg_Handle handle;
+    TransportRpmsg_Params params;
     Int status = MessageQ_E_FAIL;
     Error_Block eb;
 
-    Log_print1(Diags_INFO, "TransportVirtioSetup_attach: remoteProcId: %d",
+    Log_print1(Diags_INFO, "TransportRpmsgSetup_attach: remoteProcId: %d",
                    remoteProcId);
 
     Error_init(&eb);
 
     /* init the transport parameters */
-    TransportVirtio_Params_init(&params);
+    TransportRpmsg_Params_init(&params);
     params.sharedAddr = sharedAddr;  /* Not used yet */
 
-    handle = TransportVirtio_create(remoteProcId, &params, &eb);
+    handle = TransportRpmsg_create(remoteProcId, &params, &eb);
 
     if (handle != NULL) {
-       TransportVirtioSetup_module->handles[remoteProcId] = handle;
+       TransportRpmsgSetup_module->handles[remoteProcId] = handle;
        status = MessageQ_S_SUCCESS;
     }
 
@@ -77,16 +77,16 @@ Int TransportVirtioSetup_attach(UInt16 remoteProcId, Ptr sharedAddr)
 }
 
 /*
- *  ======== TransportVirtioSetup_detach ========
+ *  ======== TransportRpmsgSetup_detach ========
  */
-Int TransportVirtioSetup_detach(UInt16 remoteProcId)
+Int TransportRpmsgSetup_detach(UInt16 remoteProcId)
 {
-    TransportVirtio_Handle handle;
+    TransportRpmsg_Handle handle;
 
-    System_printf("TransportVirtioSetup_detach: remoteProcId: %d\n",
+    System_printf("TransportRpmsgSetup_detach: remoteProcId: %d\n",
                    remoteProcId);
 
-    handle = TransportVirtioSetup_module->handles[remoteProcId];
+    handle = TransportRpmsgSetup_module->handles[remoteProcId];
 
     /* Trying to detach an un-attached processor should fail */
     if (handle == NULL) {
@@ -94,21 +94,21 @@ Int TransportVirtioSetup_detach(UInt16 remoteProcId)
     }
 
     /* Unregister the instance */
-    TransportVirtioSetup_module->handles[remoteProcId] = NULL;
+    TransportRpmsgSetup_module->handles[remoteProcId] = NULL;
 
-    TransportVirtio_delete(&handle);
+    TransportRpmsg_delete(&handle);
 
     return (MessageQ_S_SUCCESS);
 }
 
 /*
- *  ======== TransportVirtioSetup_isRegistered ========
+ *  ======== TransportRpmsgSetup_isRegistered ========
  */
-Bool TransportVirtioSetup_isRegistered(UInt16 remoteProcId)
+Bool TransportRpmsgSetup_isRegistered(UInt16 remoteProcId)
 {
     Bool registered;
 
-    registered = (TransportVirtioSetup_module->handles[remoteProcId] != NULL);
+    registered = (TransportRpmsgSetup_module->handles[remoteProcId] != NULL);
 
     return (registered);
 }
similarity index 82%
rename from packages/ti/ipc/transports/TransportVirtioSetup.xdc
rename to packages/ti/ipc/transports/TransportRpmsgSetup.xdc
index 7c9313721961a0a998dc9a98b22d7544428e619d..47d9d756ea050ef38e32149f4fb02fdfb8836745 100644 (file)
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== TransportVirtioSetup.xdc ========
+ *  ======== TransportRpmsgSetup.xdc ========
  */
 
 /*!
- *  ======== TransportVirtioSetup ========
- *  Manages the setup of TransportVirtio instances.
+ *  ======== TransportRpmsgSetup ========
+ *  Manages the setup of TransportRpmsg instances.
  *
- *  create or open the TransportVirtio for each pair of devices.
+ *  create or open the TransportRpmsg for each pair of devices.
  */
 
-module TransportVirtioSetup inherits ti.sdo.ipc.interfaces.ITransportSetup
+module TransportRpmsgSetup inherits ti.sdo.ipc.interfaces.ITransportSetup
 {
 
 internal:
 
     /* Module Status object */
     struct Module_State {
-        TransportVirtio.Handle handles[]; /* handle per remote proc */
+        TransportRpmsg.Handle handles[]; /* handle per remote proc */
     }
 }
similarity index 87%
rename from packages/ti/ipc/transports/TransportVirtioSetup.xs
rename to packages/ti/ipc/transports/TransportRpmsgSetup.xs
index eef1ec5e8a85862492cb73c15106d16b4aa88779..5902084ececcd93aeec7a5cc5a07ed94315d7c09 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Texas Instruments Incorporated
+ * Copyright (c) 2012-2013, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== TransportVirtioSetup.xs ========
+ *  ======== TransportRpmsgSetup.xs ========
  */
 
-var TransportVirtioSetup = null;
-var TransportVirtio      = null;
+var TransportRpmsgSetup = null;
+var TransportRpmsg      = null;
 var MultiProc            = null;
 
 /*
@@ -42,9 +42,9 @@ var MultiProc            = null;
  */
 function module$use()
 {
-    TransportVirtioSetup = this;
-    TransportVirtio =
-            xdc.useModule("ti.ipc.transports.TransportVirtio");
+    TransportRpmsgSetup = this;
+    TransportRpmsg =
+            xdc.useModule("ti.ipc.transports.TransportRpmsg");
     MultiProc = xdc.useModule("ti.sdo.utils.MultiProc");
 }
 
similarity index 98%
rename from packages/ti/ipc/transports/_TransportVirtio.h
rename to packages/ti/ipc/transports/_TransportRpmsg.h
index b4cd9bedf0dcdd1280d67511f98e0b5cb3df1d1f..7036b0d1fb803c511dd9b1bf9126e92107abf3e4 100644 (file)
@@ -30,7 +30,7 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef _TransportVirtio__include
+#ifndef _TransportRpmsg__include
 #define _TransportVitio__include
 
 #if defined (__cplusplus)
index 19b1593b0ff9411e8349cd2ea497f38df5d146b1..a3a02008a89d8962669f47d3b54572fae98eb250 100644 (file)
@@ -43,9 +43,9 @@ var Pkg = xdc.useModule('xdc.bld.PackageContents');
  */
 Pkg.attrs.exportSrc = true;
 
-Pkg.otherFiles = ["package.bld", "_TransportVirtio.h"];
+Pkg.otherFiles = ["package.bld", "_TransportRpmsg.h"];
 
-var SRCS = ["TransportVirtioSetup.c", "TransportVirtio.c"];
+var SRCS = ["TransportRpmsgSetup.c", "TransportRpmsg.c"];
 
 /* remove this output directory during a clean */
 Pkg.generatedFiles.$add("lib/");
index f114a4d37f0682283671247c7bd3cf8f62c2cf00..c53ff87bad6dc309a756bc108354acb7235606e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, Texas Instruments Incorporated
+ * Copyright (c) 2012-2013, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -38,6 +38,6 @@
  */
 
 package ti.ipc.transports [1,0,0,0] {
-    module    TransportVirtio;
-    module    TransportVirtioSetup;
+    module    TransportRpmsg;
+    module    TransportRpmsgSetup;
 }
index 83d2a552e40bc82301794c12ad63aa4823d80f26..a4523b47d92f735804ed4811283c1a66e990b7df 100644 (file)
@@ -169,7 +169,7 @@ var procNames = {
 
     /*
      *  Note, the name "HOST" was intentionally chosen as a proc name to
-     *  accomodate TransportVirtio, a common transport on these platforms.
+     *  accomodate TransportRpmsg, a common transport on these platforms.
      */
     'TMS320TCI6638'     : ["HOST", "CORE0", "CORE1", "CORE2", "CORE3",
                            "CORE4", "CORE5", "CORE6", "CORE7"],