summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 01e3832)
raw | patch | inline | side by side (parent: 01e3832)
author | G Anthony <a0783926@ti.com> | |
Mon, 1 Apr 2013 22:03:12 +0000 (15:03 -0700) | ||
committer | G Anthony <a0783926@ti.com> | |
Mon, 1 Apr 2013 22:05:05 +0000 (15:05 -0700) |
Updated to call RPMessage API, as this was renamed from MessageQCopy.
Signed-off-by: G Anthony <a0783926@ti.com>
Signed-off-by: G Anthony <a0783926@ti.com>
packages/ti/srvmgr/omaprpc/OmapRpc.c | patch | blob | history |
index d1fd00a78f9d96b7735828b6bcf3a3e0ac060cea..5ac0cc80b5b2f4dad5d0a91e2775ec4d1b9c25ab 100644 (file)
#include <stdlib.h>
#include <ti/ipc/mm/MmType.h>
-#include <ti/ipc/rpmsg/MessageQCopy.h>
+#include <ti/ipc/rpmsg/RPMessage.h>
#include <ti/ipc/rpmsg/NameMap.h>
#include <ti/srvmgr/ServiceMgr.h>
Char channelName[OMAPRPC_MAX_CHANNEL_NAMELEN];
UInt16 dstProc;
UInt32 port;
- MessageQCopy_Handle msgq;
+ RPMessage_Handle msgq;
UInt32 localEndPt;
Task_Handle taskHandle;
Bool shutdown;
remote = 0;
/* receive the message */
- status = MessageQCopy_recv(obj->msgq, (Ptr)msg, &len, &remote,
- MessageQCopy_FOREVER);
+ status = RPMessage_recv(obj->msgq, (Ptr)msg, &len, &remote,
+ RPMessage_FOREVER);
- if (status == MessageQCopy_E_UNBLOCKED) {
+ if (status == RPMessage_E_UNBLOCKED) {
System_printf("OMAPRPC: unblocked while waiting for messages\n");
continue;
}
" from: %d len: %u\n", hdr->msgType, remote, local, len);
/* send the response. All messages get responses! */
- MessageQCopy_send(obj->dstProc, remote, local, msg, len);
+ RPMessage_send(obj->dstProc, remote, local, msg, len);
}
System_printf("OMAPRPC: destroying channel on port: %d\n", obj->port);
if (ServiceMgr_register(channelName, &obj->rcmParams) == TRUE) {
System_printf("OMAPRPC: registered channel: %s\n", obj->channelName);
- obj->msgq = MessageQCopy_create(obj->port, NULL, NULL,&obj->localEndPt);
+ obj->msgq = RPMessage_create(obj->port, NULL, NULL,&obj->localEndPt);
if (obj->msgq == NULL) {
goto unload;
System_printf("OMAPRPC: deleting channel %s\n", obj->channelName);
obj->shutdown = TRUE;
if (obj->msgq) {
- MessageQCopy_unblock(obj->msgq);
+ RPMessage_unblock(obj->msgq);
if (obj->exitSem) {
Semaphore_pend(obj->exitSem, BIOS_WAIT_FOREVER);
- MessageQCopy_delete(&obj->msgq);
+ RPMessage_delete(&obj->msgq);
Semaphore_delete(&obj->exitSem);
}
if (obj->taskHandle) {
}
}
- obj->msgq = MessageQCopy_create(obj->port, NULL, NULL,&obj->localEndPt);
+ obj->msgq = RPMessage_create(obj->port, NULL, NULL,&obj->localEndPt);
if (obj->msgq == NULL) {
goto unload;