index 83062a641cbe5951f824670694dc08cd7f74ab2e..6f3e7139f3ad129a9dee34b5dbf3f01e1cc97f8d 100644 (file)
/*
- * Copyright (c) 2013, Texas Instruments Incorporated
+ * Copyright (c) 2013-2015, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include <ti/ipc/mm/MmRpc.h>
#include <ti/ipc/MultiProc.h>
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
#include <ti/shmemallocator/SharedMemoryAllocatorUsr.h>
#endif
/*
* ======== Mx_compute ========
*/
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
int32_t Mx_compute_QnX(Mx_Compute *compute)
#else
int32_t Mx_compute_Linux(Mx_Compute *compute, int fd, int fdIn, int fdOut)
int num = 0;
/* make the output buffer persistent */
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
desc[0].ptr.addr = (size_t)compute->outBuf;
desc[0].ptr.size = compute->size * sizeof(uint32_t);
num = 1;
fxnCtx->params[0].type = MmRpc_ParamType_Ptr;
fxnCtx->params[0].param.ptr.size = sizeof(Mx_Compute);
fxnCtx->params[0].param.ptr.addr = (size_t)compute;
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
fxnCtx->params[0].param.ptr.handle = NULL;
#else
fxnCtx->params[0].param.ptr.handle = fd;
fxnCtx->xltAry[0].index = 0;
fxnCtx->xltAry[0].offset = MmRpc_OFFSET(compute, &compute->inBuf);
fxnCtx->xltAry[0].base = (size_t)compute->inBuf;
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
fxnCtx->xltAry[0].handle = NULL;
#else
fxnCtx->xltAry[0].handle = fdIn;
fxnCtx->xltAry[1].index = 0;
fxnCtx->xltAry[1].offset = MmRpc_OFFSET(compute, &compute->outBuf);
fxnCtx->xltAry[1].base = (size_t)compute->outBuf;
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
fxnCtx->xltAry[1].handle = NULL;
#else
fxnCtx->xltAry[1].handle = fdOut;
leave:
/* release the output buffer */
if (num > 0) {
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
status = MmRpc_release(Mx_rpcIpu, MmRpc_BufType_Ptr, num, desc);
#else
status = MmRpc_release(Mx_rpcIpu, MmRpc_BufType_Handle, num, desc);