Remove references to SysLink in QNX code base
authorvwan@ti.com <vwan@ti.com>
Tue, 27 Jan 2015 00:06:37 +0000 (16:06 -0800)
committerRobert Tivy <rtivy@ti.com>
Thu, 29 Jan 2015 00:44:04 +0000 (16:44 -0800)
This commit removes all references to "SysLink" in the QNX IPC code base, with
the exception that it preserves the file and directory names. The decision was
made to preserve the path names to avoid breaking any existing apps that may
be including headers and/or libraries based on the existing directory
structure, and to ease git history lookup going forward.

Note that this does introduce a break in the naming of internal features such
as SYSLINK_DEBUG and SYSLINK_DEBUG_TRACE_LEVEL.

This helps address SDOCM00108142.

Signed-off-by: VW <vwan@ti.com>
131 files changed:
packages/ti/ipc/mm/MmRpc.c
packages/ti/ipc/tests/Mx.c
packages/ti/ipc/tests/Mx.h
packages/ti/ipc/tests/mmrpc_test.c
qnx/Makefile
qnx/include/ti/ipc/Std.h
qnx/src/api/common.mk
qnx/src/ipc3x_dev/.project
qnx/src/ipc3x_dev/Makefile
qnx/src/ipc3x_dev/sharedmemallocator/samples/sharedMemAllocator/usr/SharedMemoryAllocatorTestApp.use
qnx/src/ipc3x_dev/ti/syslink/Makefile
qnx/src/ipc3x_dev/ti/syslink/Std.h
qnx/src/ipc3x_dev/ti/syslink/SysLink.h
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/lib/common.mk
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/common.mk
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/dcmd_syslink.h
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/proto.h
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/syslink_devctl.c
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/syslink_main.c
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/traceDaemon/common.mk
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayudsp/VAYUDspHal.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayudsp/VAYUDspHalBoot.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayudsp/VAYUDspHalReset.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayudsp/VAYUDspProc.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayudsp/VAYUDspPwr.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/VAYUIpuHal.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/VAYUIpuHalBoot.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/VAYUIpuMmu.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/VAYUIpuPwr.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore0/VAYUIpuCore0HalReset.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore0/VAYUIpuCore0Proc.c
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore1/VAYUIpuCore1Proc.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/Platform.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/ipu/ipu_pm.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/ipu/omap5430BenelliEnabler.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/ipu/omap5430BenelliHal.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/ipu/omap5430BenelliHalMmu.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/ipu/omap5430BenelliHalReset.c
qnx/src/ipc3x_dev/ti/syslink/family/omap5430/ipu/omap5430BenelliProc.c
qnx/src/ipc3x_dev/ti/syslink/family/vayu/Platform.c
qnx/src/ipc3x_dev/ti/syslink/family/vayu/vayudsp/VAYUDspHalMmu.c
qnx/src/ipc3x_dev/ti/syslink/family/vayu/vayuipu/VAYUIpuHalMmu.c
qnx/src/ipc3x_dev/ti/syslink/inc/Bitops.h
qnx/src/ipc3x_dev/ti/syslink/inc/HwSpinLockCmdBase.h
qnx/src/ipc3x_dev/ti/syslink/inc/IpcCmdBase.h
qnx/src/ipc3x_dev/ti/syslink/inc/Qnx/std_qnx.h
qnx/src/ipc3x_dev/ti/syslink/inc/TraceDrvDefs.h
qnx/src/ipc3x_dev/ti/syslink/inc/UtilsCmdBase.h
qnx/src/ipc3x_dev/ti/syslink/inc/_MultiProcPlat.h
qnx/src/ipc3x_dev/ti/syslink/inc/_ProcMgr.h
qnx/src/ipc3x_dev/ti/syslink/inc/knl/OMAP5430BenelliHal.h
qnx/src/ipc3x_dev/ti/syslink/inc/knl/OsalSpinlock.h
qnx/src/ipc3x_dev/ti/syslink/inc/knl/ProcDefs.h
qnx/src/ipc3x_dev/ti/syslink/inc/knl/PwrDefs.h
qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUDspHalMmu.h
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/GateHWSpinlock_daemon.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/Ipc.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/MessageQCopy.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/Qnx/MessageQCopyDrv.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/Qnx/gatemp_devctl.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/Qnx/messageq_devctl.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/Qnx/multiproc_devctl.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/arch/omap5430/Omap5430IpcInt.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/arch/vayu/VAYUIpcInt.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/transports/virtio/VirtQueue.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/usr/HwSpinLock.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/usr/MessageQCopy.c
qnx/src/ipc3x_dev/ti/syslink/procMgr/hlos/knl/Loader.c
qnx/src/ipc3x_dev/ti/syslink/procMgr/hlos/knl/ProcMgr.c
qnx/src/ipc3x_dev/ti/syslink/procMgr/hlos/knl/Processor.c
qnx/src/ipc3x_dev/ti/syslink/procMgr/hlos/knl/PwrMgr.c
qnx/src/ipc3x_dev/ti/syslink/procMgr/hlos/knl/loaders/Elf/Qnx/ElfLoader.c
qnx/src/ipc3x_dev/ti/syslink/procMgr/hlos/knl/loaders/Elf/Qnx/dlw_client/dlw_client.c
qnx/src/ipc3x_dev/ti/syslink/resources/RscTable.c
qnx/src/ipc3x_dev/ti/syslink/resources/RscTable.h
qnx/src/ipc3x_dev/ti/syslink/rpmsg-rpc/rpmsg-rpc.c
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/MessageQCopy/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/MessageQCopy/usr/mqcopytestapp.use
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/benchmark/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/benchmark/usr/tests_omx_benchmark.c
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/deh/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/deh/usr/tests_omx_errors.c
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/hwspinlock/usr/HwSpinLockTestApp.use
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/hwspinlock/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/rpmsg-omx/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/rpmsg-rpc-stress/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/stress/usr/common.mk
qnx/src/ipc3x_dev/ti/syslink/samples/hlos/ti-ipc/common.mk
qnx/src/ipc3x_dev/ti/syslink/ti-ipc/ti-ipc.c
qnx/src/ipc3x_dev/ti/syslink/utils/Cfg.h
qnx/src/ipc3x_dev/ti/syslink/utils/Memory.h
qnx/src/ipc3x_dev/ti/syslink/utils/Trace.h
qnx/src/ipc3x_dev/ti/syslink/utils/common/Cfg.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/Memory.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/Trace.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/GateMutex.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/GateSpinlock.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/List.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/MultiProc.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/Qnx/Nameserver_devctl.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/Qnx/TraceDrv.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/MemoryOS.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalDrv.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalEvent.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalIsr.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalKfile.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalMutex.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalPrint.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalSemaphore.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalSpinlock.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/osal/Qnx/OsalThread.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/usr/osal/Qnx/MemoryOS.c
qnx/src/mm/common.mk
qnx/src/tests/GateMPApp/arm/o.g.le.v7/Makefile
qnx/src/tests/GateMPApp/arm/o.le.v7/Makefile
qnx/src/tests/GateMPApp/common.mk
qnx/src/tests/MessageQApp/arm/o.g.le.v7/Makefile
qnx/src/tests/MessageQApp/arm/o.le.v7/Makefile
qnx/src/tests/MessageQApp/common.mk
qnx/src/tests/MessageQBench/arm/o.g.le.v7/Makefile
qnx/src/tests/MessageQBench/arm/o.le.v7/Makefile
qnx/src/tests/MessageQBench/common.mk
qnx/src/tests/MessageQMulti/arm/o.g.le.v7/Makefile
qnx/src/tests/MessageQMulti/arm/o.le.v7/Makefile
qnx/src/tests/MessageQMulti/common.mk
qnx/src/tests/NameServerApp/arm/o.g.le.v7/Makefile
qnx/src/tests/NameServerApp/arm/o.le.v7/Makefile
qnx/src/tests/NameServerApp/common.mk
qnx/src/tests/mmrpc_test/arm/o.g.le.v7/Makefile
qnx/src/tests/mmrpc_test/arm/o.le.v7/Makefile
qnx/src/tests/mmrpc_test/common.mk

index 2604b3064e1de2f714cb26f7157d9822aaef13eb..09d6b05982fb0d128fd52fdb0a79b9b509da06d1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2014, Texas Instruments Incorporated
+ * Copyright (c) 2012-2015, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -71,7 +71,7 @@
 #undef _linux_
 #endif
 
-#elif defined(SYSLINK_BUILDOS_QNX)
+#elif defined(IPC_BUILDOS_QNX)
 
 #include <ti/ipc/rpmsg_rpc.h>
 
@@ -315,7 +315,7 @@ int MmRpc_release(MmRpc_Handle handle, MmRpc_BufType type, int num,
             stat = MmRpc_bufHandle(handle, RPPC_IOC_BUFUNREGISTER, num, desc);
             break;
 
-#elif defined(SYSLINK_BUILDOS_QNX)
+#elif defined(IPC_BUILDOS_QNX)
         case MmRpc_BufType_Ptr:
             break;
 #endif
@@ -347,7 +347,7 @@ int MmRpc_use(MmRpc_Handle handle, MmRpc_BufType type, int num,
             stat = MmRpc_bufHandle(handle, RPPC_IOC_BUFREGISTER, num, desc);
             break;
 
-#elif defined(SYSLINK_BUILDOS_QNX)
+#elif defined(IPC_BUILDOS_QNX)
         case MmRpc_BufType_Ptr:
             break;
 #endif
index 83062a641cbe5951f824670694dc08cd7f74ab2e..6f3e7139f3ad129a9dee34b5dbf3f01e1cc97f8d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -39,7 +39,7 @@
 #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
 
@@ -165,7 +165,7 @@ int32_t Mx_add(int32_t a, int32_t b)
 /*
  *  ======== 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)
@@ -180,7 +180,7 @@ 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;
@@ -208,7 +208,7 @@ int32_t Mx_compute_Linux(Mx_Compute *compute, int fd, int fdIn, int fdOut)
     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;
@@ -220,7 +220,7 @@ int32_t Mx_compute_Linux(Mx_Compute *compute, int fd, int fdIn, int fdOut)
     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;
@@ -229,7 +229,7 @@ int32_t Mx_compute_Linux(Mx_Compute *compute, int fd, int fdIn, int fdOut)
     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;
@@ -247,7 +247,7 @@ int32_t Mx_compute_Linux(Mx_Compute *compute, int fd, int fdIn, int 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);
index 532d923e2c9e6883f9efd70f29c3ef274b7fc261..303ba2100c520c5880a6d9277d3c198c81dce723 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2013, Texas Instruments Incorporated
+ * Copyright (c) 2012-2015, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -90,7 +90,7 @@ int32_t Mx_triple(uint32_t a);
  */
 int32_t Mx_add(int32_t a, int32_t b);
 
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
 /*!
  *  @brief      Sample function which has pointer parameter to
  *              a structure with two embedded pointers.
index 605446b0dd1b911838560663d32f2d5a33e1ce07..7ddc499314f6057ee0861e6585d91d9fa65da2c7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -39,7 +39,7 @@
 /* IPC Headers */
 #include <ti/ipc/Std.h>
 
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
 #include <ti/ipc/Ipc.h>
 #include <ti/shmemallocator/SharedMemoryAllocatorUsr.h>
 #else  /* Linux HLOS */
@@ -58,7 +58,7 @@
  * HLOS specific shared memory buffer allocation methods.
  */
 
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
 
 static int callCompute_QnX()
 {
@@ -349,7 +349,7 @@ int main(int argc, char **argv)
            exit(0);
     }
 
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
     /* Need to start IPC for MultiProc */
     status = Ipc_start();
     if (status < 0) {
@@ -390,7 +390,7 @@ int main(int argc, char **argv)
         goto leave;
     }
 
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
     ret = callCompute_QnX();
 #else
     ret = callCompute_Linux();
@@ -404,7 +404,7 @@ leave:
     /* finalize Mx module (destroy rpc connection) */
     Mx_finalize();
 
-#if defined(SYSLINK_BUILDOS_QNX)
+#if defined(IPC_BUILDOS_QNX)
     Ipc_stop();
 #endif
 
index 59fdf66f69f654362fd75b1bc85cdf6213cb0175..4e808ce899987ce329b7141a19d968a8c5e837ca 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2013-2014, Texas Instruments Incorporated
+# Copyright (c) 2013-2015, Texas Instruments Incorporated
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -31,9 +31,9 @@
 #
 
 ifeq ("$(PLATFORM)","OMAP54XX")
-    SYSLINK_PLATFORM=omap5430
+    IPC_PLATFORM=omap5430
 else ifeq ("$(PLATFORM)","DRA7XX")
-    SYSLINK_PLATFORM=vayu
+    IPC_PLATFORM=vayu
 else ifeq ("$(PLATFORM)","")
     $(error Empty PLATFORM variable.  Did you forget to set in it products.mak?)
 else
@@ -43,7 +43,7 @@ endif
 all:  utils ipc3x_dev libs tests
 
 libs: ipc3x_dev
-       @cd src/api; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM)
+       @cd src/api; make IPC_PLATFORM=$(IPC_PLATFORM)
        @cd src/mm; make
 
 utils:
@@ -54,10 +54,10 @@ tests: libs
 
 ipc3x_dev: utils
        @cd src/ipc3x_dev; \
-            make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) SMP=1 QNX_CFLAGS=$(QNX_CFLAGS)
+            make IPC_PLATFORM=$(IPC_PLATFORM) SMP=1 QNX_CFLAGS=$(QNX_CFLAGS)
 
 install:
-       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
+       @cd src/ipc3x_dev; make IPC_PLATFORM=$(IPC_PLATFORM) \
                SMP=1 USE_INSTALL_ROOT=1 \
                INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/mm; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
@@ -67,7 +67,7 @@ install:
        @cd src/utils; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
                 INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/tests; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
-               SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
+               IPC_PLATFORM=$(IPC_PLATFORM) \
                INSTALL_ROOT_nto=$(DESTDIR) install
 
 
@@ -77,4 +77,4 @@ clean:
        @cd src/utils; make clean
        @cd src/tests; make clean
        @cd src/ipc3x_dev; \
-       make clean SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) SMP=1
+       make clean IPC_PLATFORM=$(IPC_PLATFORM) SMP=1
index 63adabf7ac3fd0482d3fcc4060fe58785d6f791f..c848d2ada02925e66a02cffa28f427c08d997954 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2008-2013, Texas Instruments Incorporated
+ *  Copyright (c) 2008-2015, Texas Instruments Incorporated
  *  All rights reserved.
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -41,9 +41,6 @@
 #if !defined(STD_H)
 #define STD_H
 
-#ifdef SYSLINK_BUILDOS_LINUX
-#include <std_linux.h>
-#endif
 #include <unistd.h>
 #include <stdbool.h>
 
index 03f1fd5c809d1e1691ea4e1480139ad137f4f68f..7b5b983adf6d5c1a1a2394e19881bfe8edc0b4cb 100644 (file)
@@ -1,5 +1,5 @@
 #
-# 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
@@ -42,9 +42,9 @@ endef
 
 INSTALLDIR = /usr/lib
 
-CCOPTS += -DSYSLINK_BUILDOS_QNX
+CCOPTS += -DIPC_BUILDOS_QNX
 
-ifeq ("$(SYSLINK_PLATFORM)", "vayu")
+ifeq ("$(IPC_PLATFORM)", "vayu")
 CCOPTS += -DGATEMP_SUPPORT
 endif
 
index 353916147d6a165a80b516185869174cb0d1c842..4a73960db19dcf0ae5ad3a7cfb22ba6c6fb24d07 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-       <name>syslink_3_0</name>
+       <name>ipc_3_0</name>
        <comment></comment>
        <projects>
        </projects>
index cb08896bb04b900c686567b6f29a48f9108f3a61..fe9f95ffcc8a4bad27698506e299350626d9704f 100644 (file)
@@ -1,5 +1,5 @@
 #
-#   Copyright (c) 2013, Texas Instruments Incorporated
+#   Copyright (c) 2013-2015, Texas Instruments Incorporated
 #
 #   Redistribution and use in source and binary forms, with or without
 #   modification, are permitted provided that the following conditions
@@ -32,6 +32,6 @@
 EARLY_DIRS=perfutils
 LATE_DIRS=ti
 
-SYSLINK_BUILDOS=Qnx
+IPC_BUILDOS=Qnx
 
 include recurse.mk
index fd5b684e77d7327b37e19d10b950f20d2438fcbc..9a7bcf1c6d41aa836df21f3ff579f65c32f764e9 100644 (file)
@@ -1,4 +1,4 @@
-SharedMemoryAllocatorTestApp Test for Syslink SharedMemAllocator (must launch the 'shmemallocator' resource manager prior to running this test)
+SharedMemoryAllocatorTestApp Test for SharedMemAllocator (must launch the 'shmemallocator' resource manager prior to running this test)
 
 Syntax:
   sharedmemallocator
index 33532832ecf8072442b5ed4f70bd7c069bc8c196..0d29c8ff20aebb896552bd1d5fdc00b0024adb51 100644 (file)
@@ -1,5 +1,5 @@
 #
-#   Copyright (c) 2013, Texas Instruments Incorporated
+#   Copyright (c) 2013-2015, Texas Instruments Incorporated
 #
 #   Redistribution and use in source and binary forms, with or without
 #   modification, are permitted provided that the following conditions
@@ -34,7 +34,7 @@ EXCLUDE_OSLIST=ipc procmgr utils
 EARLY_DIRS=build
 LATE_DIRS=samples
 
-SYSLINK_ROOT=$(CURDIR)
+IPC_ROOT=$(CURDIR)
 
 include recurse.mk
 
index c3b8bc91604546bd39b13798c150bd51cca4531c..037cdc3c1dd6fc796139e90cad6645b1c0b9c115 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2008-2009, Texas Instruments Incorporated
+ *  Copyright (c) 2008-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
 #if !defined(STD_H)
 #define STD_H
 
-#ifdef SYSLINK_BUILDOS_LINUX
-#include <std_linux.h>
-#elif SYSLINK_BUILDOS_QNX
 #include <std_qnx.h>
-#endif
 
 #if defined (__cplusplus)
 extern "C" {
index f87ee4c3d246817dd764694f44811bf2d584bae1..a1830b3aeed9ea47b6b01c13b9606a41bc78e75b 100644 (file)
@@ -2,14 +2,14 @@
  *  @file   SysLink.h
  *
  *  @brief      This module contains common definitions, types, structures and
- *              functions used by SysLink.
+ *              functions used by IPC.
  *
  *
  */
 /*
  *  ============================================================================
  *
- *  Copyright (c) 2008-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2008-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -83,68 +83,43 @@ extern "C" {
 /**
  *  @brief   Maximum number of mem entries for each core for one platform.
  */
-#define SYSLINK_MAX_MEMENTRIES  32
+#define IPC_MAX_MEMENTRIES  32
 
 /**
  *  @brief   Max name length.
  */
-#define SYSLINK_MAX_NAMELENGTH  32
+#define IPC_MAX_NAMELENGTH  32
 
 /* =============================================================================
  * Structures & Enums
  * =============================================================================
  */
 
-typedef UInt32 SysLink_MapMask;
+typedef UInt32 Ipc_MapMask;
 
 /**
  *  @brief  Kernel Virtual address on master processor
  */
-#define SysLink_MASTERKNLVIRT   (SysLink_MapMask)(1 << 0)
+#define Ipc_MASTERKNLVIRT   (Ipc_MapMask)(1 << 0)
 
 /**
  *  @brief  User Virtual address on master processor
  */
-#define SysLink_MASTERUSRVIRT   (SysLink_MapMask)(1 << 1)
+#define Ipc_MASTERUSRVIRT   (Ipc_MapMask)(1 << 1)
 
 /**
  *  @brief  Virtual address on slave processor
  */
-#define SysLink_SLAVEVIRT       (SysLink_MapMask)(1 << 2)
-
-/**
- *  @brief  Enumeration of Client notifyMgr notification types.
- */
-typedef enum SysLink_NotifyType_tag {
-    SysLink_NOTIFICATION_NONE   = 0,
-    /*!< No notification required*/
-    SysLink_NOTIFICATION_ALWAYS = 1,
-    /*!< Notify whenever the other client sends data/frees up space.*/
-    SysLink_NOTIFICATION_ONCE   = 2,
-    /*!< Notify when the other side sends data/frees up buffer. Once the
-     *   notification is done, the notification is disabled until it is
-     *   enabled again.
-     */
-    SysLink_NOTIFICATION_HDWRFIFO_ALWAYS = 3,
-    /*!< Notify whenever the other side sends data/frees up space.
-     *   This notification is never disabled.
-     */
-    SysLink_NOTIFICATION_HDWRFIFO_ONCE   = 4
-    /*!< Notify when the other side sends data/frees up buffer. Once the
-     *   notification is done, the notification is disabled until it is enabled
-     *   again. The notification is enabled once the watermark is crossed and
-     *   does not require buffer to get full/empty.
-     */
-} SysLink_NotifyType;
+#define Ipc_SLAVEVIRT       (Ipc_MapMask)(1 << 2)
 
 /**
  *  @brief  Structure for memEntry.
  */
-typedef struct SysLink_MemEntry_tag {
+typedef struct Ipc_MemEntry_tag {
     UInt32 slaveVirtAddr;    /**< Virtual address */
     UInt32 masterPhysAddr;   /**< Physical address */
     UInt32 size;             /**< Size of the entry */
-    SysLink_MapMask mapMask; /**< Used for entries for which map is TRUE */
+    Ipc_MapMask mapMask; /**< Used for entries for which map is TRUE */
     Bool   map;              /**< Flag indicating whether this region should
                               *   be mapped to the slave MMU.
                               */
@@ -152,57 +127,30 @@ typedef struct SysLink_MemEntry_tag {
                               *   for this region
                               */
     Bool   isValid;          /**< Specifies if the memEntry is valid */
-} SysLink_MemEntry;
+} Ipc_MemEntry;
 
 /**
  *  @brief  Structure for memEntry block for one core.
  */
-typedef struct SysLink_MemEntry_Block_tag {
-    Char             procName[SYSLINK_MAX_NAMELENGTH];
+typedef struct Ipc_MemEntry_Block_tag {
+    Char             procName[IPC_MAX_NAMELENGTH];
     /*!< Processor name for which entries are being defined*/
     UInt32           numEntries;
     /*!< Max memEntries for one core*/
-    SysLink_MemEntry memEntries [SYSLINK_MAX_MEMENTRIES];
+    Ipc_MemEntry memEntries [IPC_MAX_MEMENTRIES];
     /*!< Entire memory map (p->v) for one code*/
-} SysLink_MemEntry_Block;
+} Ipc_MemEntry_Block;
 
 
 /**
  *  @brief  Structure for memEntry block for one core.
  */
-typedef struct SysLink_MemoryMap_tag {
+typedef struct Ipc_MemoryMap_tag {
     UInt16                   numBlocks;
     /*!< Number of memory blocks in the memory map */
-    SysLink_MemEntry_Block * memBlocks;
+    Ipc_MemEntry_Block * memBlocks;
     /*!< Poninter to entire system memory map */
-} SysLink_MemoryMap;
-
-/** @endcond */
-
-/* =============================================================================
- * APIs
- * =============================================================================
- */
-/**
- *  @brief      Function to initialize SysLink.
- *
- *              This function must be called in every user process before making
- *              calls to any other SysLink APIs.
- *
- *  @sa         SysLink_destroy()
- */
-Void SysLink_setup (Void);
-
-/**
- *  @brief      Function to finalize SysLink.
- *
- *              This function must be called in every user process at the end
- *              after all usage of SysLink in that process is complete.
- *
- *  @sa         SysLink_setup()
- */
-Void SysLink_destroy (Void);
-
+} Ipc_MemoryMap;
 
 #if defined (__cplusplus)
 }
index 38ebfa34bb562d258d1bce726e01b599c23d2aec..1a447d8813d3a8ad07004ed7974f0c06f999d514 100644 (file)
@@ -15,35 +15,35 @@ NAME=ipc_client
 # ---------------------------------------------------------------------------- #
 # Override definitions in base Makefile if required
 
-#To Over ride the usage of syslink memory manager
-SYSLINK_USE_SYSMGR := 0
+#To Over ride the usage of ipc memory manager
+IPC_USE_SYSMGR := 0
 #To Over ride the build optimization flag
-SYSLINK_BUILD_OPTIMIZE := 0
+IPC_BUILD_OPTIMIZE := 0
 #To override the debug build flag
-SYSLINK_BUILD_DEBUG := 0
+IPC_BUILD_DEBUG := 0
 #To override the TRACE flag
-SYSLINK_TRACE_ENABLE := 0
+IPC_TRACE_ENABLE := 0
 
-ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
-CCOPTS += -DSYSLINK_PLATFORM_OMAP5430
-endif # ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
+ifeq ("$(IPC_PLATFORM)", "omap5430")
+CCOPTS += -DIPC_PLATFORM_OMAP5430
+endif # ifeq ("$(IPC_PLATFORM)", "omap5430")
 
-#default SYSLINK Product root path and can be overridden from commandline
-SYSLINK_ROOT = $(PROJECT_ROOT)/../../../../..
-SYSLINK_BUILDOS = Qnx
+#default IPC Product root path and can be overridden from commandline
+IPC_ROOT = $(PROJECT_ROOT)/../../../../..
+IPC_BUILDOS = Qnx
 
 #For SOURCE and include paths
-#-include $(SYSLINK_ROOT)/ti/syslink/buildutils/hlos/usr/Makefile.inc
+#-include $(IPC_ROOT)/ti/syslink/buildutils/hlos/usr/Makefile.inc
 
 #Add Resource Manager include path
-#EXTRA_INCVPATH+=$(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/Qnx/resMgr
+#EXTRA_INCVPATH+=$(IPC_ROOT)/ti/syslink/utils/hlos/knl/Qnx/resMgr
 
 #Add extra include path
-EXTRA_INCVPATH+=$(SYSLINK_ROOT)        \
-                               $(SYSLINK_ROOT)/ti/syslink/inc  \
-                               $(SYSLINK_ROOT)/ti/syslink/inc/usr/$(SYSLINK_BUILDOS)   \
-                               $(SYSLINK_ROOT)/ti/syslink/inc/usr      \
-                               $(SYSLINK_ROOT)/ti/syslink/inc/$(SYSLINK_BUILDOS) \
+EXTRA_INCVPATH+=$(IPC_ROOT)    \
+                               $(IPC_ROOT)/ti/syslink/inc      \
+                               $(IPC_ROOT)/ti/syslink/inc/usr/$(IPC_BUILDOS)   \
+                               $(IPC_ROOT)/ti/syslink/inc/usr  \
+                               $(IPC_ROOT)/ti/syslink/inc/$(IPC_BUILDOS) \
                                $(IPC_REPO)/packages \
                                $(IPC_REPO)/qnx/include \
                                 $(IPC_REPO)/hlos_common/include
@@ -51,20 +51,20 @@ EXTRA_INCVPATH+=$(SYSLINK_ROOT)     \
 
 #SRCDIRS=$(sort $(foreach i,$(CSRCS),$(shell dirname $i)))
 #EXTRA_SRCVPATH+=$(SRCDIRS)
-EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/ipc/hlos/usr \
-                               $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/usr/$(SYSLINK_BUILDOS)      \
-                               $(SYSLINK_ROOT)/ti/syslink/utils/hlos   \
-                               $(SYSLINK_ROOT)/ti/syslink/utils/hlos/usr       \
-                               $(SYSLINK_ROOT)/ti/syslink/utils/hlos/usr/$(SYSLINK_BUILDOS)    \
-                               $(SYSLINK_ROOT)/ti/syslink/utils/hlos/usr/osal/$(SYSLINK_BUILDOS)
+EXTRA_SRCVPATH+=$(IPC_ROOT)/ti/syslink/ipc/hlos/usr \
+                               $(IPC_ROOT)/ti/syslink/ipc/hlos/usr/$(IPC_BUILDOS)      \
+                               $(IPC_ROOT)/ti/syslink/utils/hlos       \
+                               $(IPC_ROOT)/ti/syslink/utils/hlos/usr   \
+                               $(IPC_ROOT)/ti/syslink/utils/hlos/usr/$(IPC_BUILDOS)    \
+                               $(IPC_ROOT)/ti/syslink/utils/hlos/usr/osal/$(IPC_BUILDOS)
 
 #Using the default build rules TODO: to selective pick and choose the compiler/linker/archiver & build rules
 include $(MKFILES_ROOT)/qtargets.mk
-CCOPTS += -DSYSLINK_BUILDOS_QNX -DSYSLINK_BUILD_DEBUG $(QNX_CFLAGS)
-ifeq ("$(SYSLINK_DEBUG)", "1")
+CCOPTS += -DIPC_BUILDOS_QNX -DIPC_BUILD_DEBUG $(QNX_CFLAGS)
+ifeq ("$(IPC_DEBUG)", "1")
 #enable debug build
 CCOPTS += -g -O0
-endif # ifeq ("$(SYSLINK_DEBUG)", "")
+endif # ifeq ("$(IPC_DEBUG)", "")
 CCFLAGS += $(COMPILE_FLAGS)
 CCFLAGS += -fPIC
 
index 5b34d2511e5cf532353b0842000fe6ebfd862774..2765ab3d55ecedaad5c39875a5a4c84e0d841a64 100644 (file)
@@ -1,5 +1,5 @@
 #
-#   Copyright (c) 2013-2014, Texas Instruments Incorporated
+#   Copyright (c) 2013-2015, Texas Instruments Incorporated
 #
 #   Redistribution and use in source and binary forms, with or without
 #   modification, are permitted provided that the following conditions
@@ -41,104 +41,104 @@ PINFO DESCRIPTION=IPC Resource Manager
 endef
 NAME=ipc
 
-CCOPTS += -DSYSLINK_BUILDOS_QNX -DSYSLINK_BUILD_DEBUG -DSYSLINK_BUILD_HLOS $(QNX_CFLAGS)
+CCOPTS += -DIPC_BUILDOS_QNX -DIPC_BUILD_DEBUG -DIPC_BUILD_HLOS $(QNX_CFLAGS)
 
-ifeq ("$(SYSLINK_DEBUG)", "1")
+ifeq ("$(IPC_DEBUG)", "1")
 #enable debug build
 CCOPTS += -g -O0
-endif # ifeq ("$(SYSLINK_DEBUG)", "1")
+endif # ifeq ("$(IPC_DEBUG)", "1")
 
-ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
+ifeq ("$(IPC_PLATFORM)", "omap5430")
 ifeq ("$(SMP)", "1")
-CCOPTS += -DSYSLINK_SYSBIOS_SMP
+CCOPTS += -DIPC_SYSBIOS_SMP
 endif # ifeq ("$(SMP)", "1")
-CCOPTS += -DSYSLINK_PLATFORM_OMAP5430 -DARM_TARGET -DC60_TARGET -DSYSLINK_USE_IPU_PM
-endif # ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
+CCOPTS += -DIPC_PLATFORM_OMAP5430 -DARM_TARGET -DC60_TARGET -DIPC_USE_IPU_PM
+endif # ifeq ("$(IPC_PLATFORM)", "omap5430")
 
-ifeq ("$(SYSLINK_PLATFORM)", "vayu")
+ifeq ("$(IPC_PLATFORM)", "vayu")
 ifeq ("$(SMP)", "1")
-CCOPTS += -DSYSLINK_SYSBIOS_SMP
+CCOPTS += -DIPC_SYSBIOS_SMP
 endif # ifeq ("$(SMP)", "1")
-CCOPTS += -DSYSLINK_PLATFORM_VAYU -DARM_TARGET -DC60_TARGET
-endif # ifeq ("$(SYSLINK_PLATFORM)", "vayu")
+CCOPTS += -DIPC_PLATFORM_VAYU -DARM_TARGET -DC60_TARGET
+endif # ifeq ("$(IPC_PLATFORM)", "vayu")
 
-#SYSLINK Product root path
-SYSLINK_ROOT = $(PROJECT_ROOT)/../../../../..
-SYSLINK_BUILDOS = Qnx
+#IPC Product root path
+IPC_ROOT = $(PROJECT_ROOT)/../../../../..
+IPC_BUILDOS = Qnx
 
 #PUBLIC_INCVPATH = $(PROJECT_ROOT)/public
 
-EXTRA_INCVPATH = $(SYSLINK_ROOT)       \
-                 $(SYSLINK_ROOT)/ti/syslink/inc        \
-                 $(SYSLINK_ROOT)/ti/syslink/inc/ti/ipc \
-                 $(SYSLINK_ROOT)/ti/syslink/inc/knl    \
-                 $(SYSLINK_ROOT)/ti/syslink/inc/$(SYSLINK_BUILDOS)     \
-                 $(SYSLINK_ROOT)/ti/syslink/inc/knl/$(SYSLINK_BUILDOS)         \
-                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/family/$(SYSLINK_PLATFORM)    \
-                 $(SYSLINK_PKGPATH)    \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc      \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)    \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_API    \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD        \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_DYN        \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_REL        \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_DYN     \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_REL     \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_SYM    \
-                 $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/dlw_client \
-                 $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)/family    \
-                 $(SYSLINK_ROOT)/ti/syslink/resources  \
-                  $(SYSLINK_ROOT)/ti/syslink/family/common \
+EXTRA_INCVPATH = $(IPC_ROOT)   \
+                 $(IPC_ROOT)/ti/syslink/inc    \
+                 $(IPC_ROOT)/ti/syslink/inc/ti/ipc     \
+                 $(IPC_ROOT)/ti/syslink/inc/knl        \
+                 $(IPC_ROOT)/ti/syslink/inc/$(IPC_BUILDOS)     \
+                 $(IPC_ROOT)/ti/syslink/inc/knl/$(IPC_BUILDOS)         \
+                 $(IPC_ROOT)/ti/syslink/ipc/hlos/knl/family/$(IPC_PLATFORM)    \
+                 $(IPC_PKGPATH)        \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc  \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)    \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/DLOAD_API    \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/DLOAD        \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/C60_DLOAD_DYN        \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/C60_DLOAD_REL        \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/TMS470_DLOAD_DYN     \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/TMS470_DLOAD_REL     \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/DLOAD_SYM    \
+                 $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/dlw_client \
+                 $(IPC_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(IPC_BUILDOS)/family    \
+                 $(IPC_ROOT)/ti/syslink/resources      \
+                  $(IPC_ROOT)/ti/syslink/family/common \
                  $(IPC_REPO)/qnx/include \
                   $(IPC_REPO)/hlos_common/include \
                  $(IPC_REPO)/packages \
 
 #devctl for ipc, procmgr, utils
-EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl    \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc        \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)      \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD  \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_DYN       \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/TMS470_DLOAD_REL       \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_REL  \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/C60_DLOAD_DYN  \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/DLOAD/DLOAD_SYM      \
-               $(SYSLINK_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(SYSLINK_BUILDOS)/dlw_client   \
-               $(SYSLINK_ROOT)/ti/syslink/resources    \
-               $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/transports/virtio       \
-               $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl \
-               $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/arch    \
-               $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/arch/$(SYSLINK_PLATFORM)        \
-               $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/knl/$(SYSLINK_BUILDOS)      \
-               $(SYSLINK_ROOT)/ti/syslink/utils/common \
-               $(SYSLINK_ROOT)/ti/syslink/utils/hlos   \
-               $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl       \
-               $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/$(SYSLINK_BUILDOS)    \
-               $(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/osal/$(SYSLINK_BUILDOS)       \
-               $(SYSLINK_ROOT)/ti/syslink/rpmsg-omx/hlos/knl/$(SYSLINK_BUILDOS)        \
-               $(SYSLINK_ROOT)/ti/syslink/rpmsg-dce/hlos/knl/$(SYSLINK_BUILDOS)        \
-               $(SYSLINK_ROOT)/ti/syslink/ti-ipc       \
-               $(SYSLINK_ROOT)/ti/syslink/rpmsg-rpc    \
-               $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)/family/$(SYSLINK_PLATFORM)  \
-               $(SYSLINK_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(SYSLINK_BUILDOS)
-
-ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
-EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)  \
-               $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/ipu
+EXTRA_SRCVPATH+=$(IPC_ROOT)/ti/syslink/procMgr/hlos/knl        \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/rprc    \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)      \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/DLOAD  \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/TMS470_DLOAD_DYN       \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/TMS470_DLOAD_REL       \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/C60_DLOAD_REL  \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/C60_DLOAD_DYN  \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/DLOAD/DLOAD_SYM      \
+               $(IPC_ROOT)/ti/syslink/procMgr/hlos/knl/loaders/Elf/$(IPC_BUILDOS)/dlw_client   \
+               $(IPC_ROOT)/ti/syslink/resources        \
+               $(IPC_ROOT)/ti/syslink/ipc/hlos/knl/transports/virtio   \
+               $(IPC_ROOT)/ti/syslink/ipc/hlos/knl     \
+               $(IPC_ROOT)/ti/syslink/ipc/hlos/knl/arch        \
+               $(IPC_ROOT)/ti/syslink/ipc/hlos/knl/arch/$(IPC_PLATFORM)        \
+               $(IPC_ROOT)/ti/syslink/ipc/hlos/knl/$(IPC_BUILDOS)      \
+               $(IPC_ROOT)/ti/syslink/utils/common     \
+               $(IPC_ROOT)/ti/syslink/utils/hlos       \
+               $(IPC_ROOT)/ti/syslink/utils/hlos/knl   \
+               $(IPC_ROOT)/ti/syslink/utils/hlos/knl/$(IPC_BUILDOS)    \
+               $(IPC_ROOT)/ti/syslink/utils/hlos/knl/osal/$(IPC_BUILDOS)       \
+               $(IPC_ROOT)/ti/syslink/rpmsg-omx/hlos/knl/$(IPC_BUILDOS)        \
+               $(IPC_ROOT)/ti/syslink/rpmsg-dce/hlos/knl/$(IPC_BUILDOS)        \
+               $(IPC_ROOT)/ti/syslink/ti-ipc   \
+               $(IPC_ROOT)/ti/syslink/rpmsg-rpc        \
+               $(IPC_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(IPC_BUILDOS)/family/$(IPC_PLATFORM)      \
+               $(IPC_ROOT)/ti/syslink/rpmsg-resmgr/hlos/knl/$(IPC_BUILDOS)
+
+ifeq ("$(IPC_PLATFORM)", "omap5430")
+EXTRA_SRCVPATH+=$(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)  \
+               $(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)/ipu
 
 EXCLUDE_OBJS = GateMP_daemon.o gatemp_devctl.o
 endif
 
-ifeq ("$(SYSLINK_PLATFORM)", "vayu")
-EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/family/common       \
-               $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)dsp     \
-               $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu     \
-               $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core0    \
-               $(SYSLINK_ROOT)/ti/syslink/family/common/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core1    \
-               $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)   \
-               $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)dsp    \
-               $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu    \
-               $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)/$(SYSLINK_PLATFORM)ipu/$(SYSLINK_PLATFORM)core1   \
+ifeq ("$(IPC_PLATFORM)", "vayu")
+EXTRA_SRCVPATH+=$(IPC_ROOT)/ti/syslink/family/common   \
+               $(IPC_ROOT)/ti/syslink/family/common/$(IPC_PLATFORM)/$(IPC_PLATFORM)dsp \
+               $(IPC_ROOT)/ti/syslink/family/common/$(IPC_PLATFORM)/$(IPC_PLATFORM)ipu \
+               $(IPC_ROOT)/ti/syslink/family/common/$(IPC_PLATFORM)/$(IPC_PLATFORM)ipu/$(IPC_PLATFORM)core0    \
+               $(IPC_ROOT)/ti/syslink/family/common/$(IPC_PLATFORM)/$(IPC_PLATFORM)ipu/$(IPC_PLATFORM)core1    \
+               $(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)   \
+               $(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)/$(IPC_PLATFORM)dsp        \
+               $(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)/$(IPC_PLATFORM)ipu        \
+               $(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)/$(IPC_PLATFORM)ipu/$(IPC_PLATFORM)core1   \
                 $(IPC_REPO)/qnx/src/api/gates
 
 EXCLUDE_OBJS = GateMP.o
@@ -150,10 +150,10 @@ LDFLAGS += -M
 
 EXTRA_LIBVPATH += $(INSTALL_ROOT_nto)/usr/lib
 
-ifeq ("$(SYSLINK_DEBUG)", "1")
+ifeq ("$(IPC_DEBUG)", "1")
 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.g.le.v7
 LIBS += utils_g
 else
 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.le.v7
 LIBS += utils
-endif # ifeq ("$(SYSLINK_DEBUG)", "1")
+endif # ifeq ("$(IPC_DEBUG)", "1")
index b047c20038106a1db848886b6caa34d60bb8abb7..e43c6873229cca1145e98c9fe9d2cf157d1fbc74 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2014, Texas Instruments Incorporated
+ * Copyright (c) 2013-2015, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 extern "C" {
 #endif
 
-#define _DCMD_SYSLINK   _DCMD_MISC
+#define _DCMD_IPC   _DCMD_MISC
 
 typedef enum {
-    _DCMD_SYSLINK_NAMESERVER = 0x2A,
-    _DCMD_SYSLINK_MESSAGEQ,
-    _DCMD_SYSLINK_MULTIPROC,
-    _DCMD_SYSLINK_GATEMP
+    _DCMD_IPC_NAMESERVER = 0x2A,
+    _DCMD_IPC_MESSAGEQ,
+    _DCMD_IPC_MULTIPROC,
+    _DCMD_IPC_GATEMP
 } dcmd_class_t_val;
 
 /*  ----------------------------------------------------------------------------
@@ -61,69 +61,69 @@ typedef enum {
 /*!
  *  @brief  Command for NameServer_setup
  */
-#define DCMD_NAMESERVER_SETUP               __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_SETUP               __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             2,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_setup
  */
-#define DCMD_NAMESERVER_DESTROY             __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_DESTROY             __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             3,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_destroy
  */
-#define DCMD_NAMESERVER_PARAMS_INIT         __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_PARAMS_INIT         __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             4,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_create
  */
-#define DCMD_NAMESERVER_CREATE              __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_CREATE              __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             5,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_delete
  */
-#define DCMD_NAMESERVER_DELETE              __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_DELETE              __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             6,\
                                             NameServerDrv_CmdArgs)
 
 /*!
  *  @brief  Command for NameServer_addUInt32
  */
-#define DCMD_NAMESERVER_ADDUINT32           __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_ADDUINT32           __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             7,\
                                             NameServerDrv_CmdArgs)
 
 /*!
  *  @brief  Command for NameServer_remove
  */
-#define DCMD_NAMESERVER_REMOVE              __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_REMOVE              __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             8,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_removeEntry
  */
-#define DCMD_NAMESERVER_REMOVEENTRY         __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_REMOVEENTRY         __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             9,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_getUInt32
  */
-#define DCMD_NAMESERVER_GETUINT32           __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_GETUINT32           __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             10, \
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_add
  */
-#define DCMD_NAMESERVER_ADD                 __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_ADD                 __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             11,\
                                             NameServerDrv_CmdArgs)
 /*!
  *  @brief  Command for NameServer_get
  */
-#define DCMD_NAMESERVER_GET                 __DIOTF(_DCMD_SYSLINK_NAMESERVER,\
+#define DCMD_NAMESERVER_GET                 __DIOTF(_DCMD_IPC_NAMESERVER,\
                                             12, \
                                             NameServerDrv_CmdArgs)
 
@@ -136,31 +136,31 @@ typedef enum {
 /*!
  *  @brief  Command for MessageQ_getConfig
 */
-#define DCMD_MESSAGEQ_GETCONFIG             __DIOTF(_DCMD_SYSLINK_MESSAGEQ,\
+#define DCMD_MESSAGEQ_GETCONFIG             __DIOTF(_DCMD_IPC_MESSAGEQ,\
                                             1,\
                                             MessageQDrv_CmdArgs)
 /*!
  *  @brief  Command for MessageQ_setup
 */
-#define DCMD_MESSAGEQ_SETUP                 __DIOTF(_DCMD_SYSLINK_MESSAGEQ,\
+#define DCMD_MESSAGEQ_SETUP                 __DIOTF(_DCMD_IPC_MESSAGEQ,\
                                             2,\
                                             MessageQDrv_CmdArgs)
 /*!
  *  @brief  Command for MessageQ_setup
 */
-#define DCMD_MESSAGEQ_DESTROY               __DIOTF(_DCMD_SYSLINK_MESSAGEQ,\
+#define DCMD_MESSAGEQ_DESTROY               __DIOTF(_DCMD_IPC_MESSAGEQ,\
                                             3,\
                                             MessageQDrv_CmdArgs)
 /*!
  *  @brief  Command for MessageQ_create
 */
-#define DCMD_MESSAGEQ_CREATE                __DIOTF(_DCMD_SYSLINK_MESSAGEQ,\
+#define DCMD_MESSAGEQ_CREATE                __DIOTF(_DCMD_IPC_MESSAGEQ,\
                                             4,\
                                             MessageQDrv_CmdArgs)
 /*!
  *  @brief  Command for MessageQ_delete
 */
-#define DCMD_MESSAGEQ_DELETE                __DIOTF(_DCMD_SYSLINK_MESSAGEQ,\
+#define DCMD_MESSAGEQ_DELETE                __DIOTF(_DCMD_IPC_MESSAGEQ,\
                                             5,\
                                             MessageQDrv_CmdArgs)
 
@@ -172,7 +172,7 @@ typedef enum {
 /*!
  *  @brief  Command for MultiProc_getConfig
 */
-#define DCMD_MULTIPROC_GETCONFIG            __DIOTF(_DCMD_SYSLINK_MULTIPROC,\
+#define DCMD_MULTIPROC_GETCONFIG            __DIOTF(_DCMD_IPC_MULTIPROC,\
                                             1,\
                                             MultiProcDrv_CmdArgs)
 
@@ -184,42 +184,42 @@ typedef enum {
 /*!
  *  @brief  Command for GateMP_getFreeResource
  */
-#define DCMD_GATEMP_GETFREERES              __DIOTF(_DCMD_SYSLINK_GATEMP,\
+#define DCMD_GATEMP_GETFREERES              __DIOTF(_DCMD_IPC_GATEMP,\
                                             1,\
                                             GateMPDrv_CmdArgs)
 
 /*!
  *  @brief  Command for GateMP_releaseResource
  */
-#define DCMD_GATEMP_RELRES                  __DIOTF(_DCMD_SYSLINK_GATEMP,\
+#define DCMD_GATEMP_RELRES                  __DIOTF(_DCMD_IPC_GATEMP,\
                                             2,\
                                             GateMPDrv_CmdArgs)
 
 /*!
  *  @brief  Command for GateMP_getNumResources
  */
-#define DCMD_GATEMP_GETNUMRES               __DIOTF(_DCMD_SYSLINK_GATEMP,\
+#define DCMD_GATEMP_GETNUMRES               __DIOTF(_DCMD_IPC_GATEMP,\
                                             3,\
                                             GateMPDrv_CmdArgs)
 
 /*!
  *  @brief  Command for GateMP_start
  */
-#define DCMD_GATEMP_START                   __DIOTF(_DCMD_SYSLINK_GATEMP,\
+#define DCMD_GATEMP_START                   __DIOTF(_DCMD_IPC_GATEMP,\
                                             4,\
                                             GateMPDrv_CmdArgs)
 
 /*!
  *  @brief  Command for GateMP_stop
  */
-#define DCMD_GATEMP_STOP                    __DIOTF(_DCMD_SYSLINK_GATEMP,\
+#define DCMD_GATEMP_STOP                    __DIOTF(_DCMD_IPC_GATEMP,\
                                             5,\
                                             GateMPDrv_CmdArgs)
 
 /*!
  *  @brief  Command for GateMP_isSetup
  */
-#define DCMD_GATEMP_ISSETUP                 __DIOTF(_DCMD_SYSLINK_GATEMP,\
+#define DCMD_GATEMP_ISSETUP                 __DIOTF(_DCMD_IPC_GATEMP,\
                                             6,\
                                             GateMPDrv_CmdArgs)
 
index 2e7fb3b66a45c69e7c2a0f42db742ae0d43dc228..61dac95b4b43c6de7213dcc14941a629c6682977 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2010-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2010-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
  */
 
 
-#ifndef _SYSLINK_PROTO_H_INCLUDED
-#define _SYSLINK_PROTO_H_INCLUDED
+#ifndef _IPC_PROTO_H_INCLUDED
+#define _IPC_PROTO_H_INCLUDED
 
 struct _iofunc_attr;
 #define RESMGR_HANDLE_T struct _iofunc_attr
-struct syslink_ocb;
-#define IOFUNC_OCB_T struct syslink_ocb
-#define RESMGR_OCB_T struct syslink_ocb
+struct ipc_ocb;
+#define IOFUNC_OCB_T struct ipc_ocb
+#define RESMGR_OCB_T struct ipc_ocb
 #define THREAD_POOL_PARAM_T dispatch_context_t
-struct syslink_attr;
-#define IOFUNC_ATTR_T struct syslink_attr
+struct ipc_attr;
+#define IOFUNC_ATTR_T struct ipc_attr
 
 /* QNX specific header files */
 
@@ -91,17 +91,17 @@ struct syslink_attr;
  *  Define our device attributes structure.
 */
 
-typedef struct syslink_attr {
+typedef struct ipc_attr {
     iofunc_attr_t   attr;
     uint16_t        procid;
     Ptr             dev;
-} syslink_attr_t;
+} ipc_attr_t;
 
 typedef struct named_device {
     iofunc_mount_t      mattr;
     iofunc_attr_t       cattr;
-    syslink_attr_t      cattr_trace[MultiProc_MAXPROCESSORS];
-    syslink_attr_t      cattr_slave[MultiProc_MAXPROCESSORS];
+    ipc_attr_t          cattr_trace[MultiProc_MAXPROCESSORS];
+    ipc_attr_t          cattr_slave[MultiProc_MAXPROCESSORS];
     int                 resmgr_id;
     int                 resmgr_id_trace[MultiProc_MAXPROCESSORS];
     int                 resmgr_id_state[MultiProc_MAXPROCESSORS];
@@ -118,25 +118,25 @@ typedef struct named_device {
     char device_name[_POSIX_PATH_MAX];
 } named_device_t;
 
-typedef struct syslink_dev {
+typedef struct ipc_dev {
     dispatch_t       * dpp;
     thread_pool_t    * tpool;
-    named_device_t     syslink;
+    named_device_t     ipc;
     void             * da_virt;
     void             * da_tesla_virt;
     pthread_mutex_t    firmwareLock;  /* lock for load/unload firmware */
     pthread_mutex_t    lock;
     Bool               recover;
     OsalThread_Handle  ipc_recovery_work;
-} syslink_dev_t;
+} ipc_dev_t;
 
-typedef struct syslink_ocb {
+typedef struct ipc_ocb {
     iofunc_ocb_t       ocb;
     pid_t              pid;
     uint32_t           ridx;
     uint32_t           widx;
-} syslink_ocb_t;
+} ipc_ocb_t;
 
-int  syslink_devctl(resmgr_context_t *ctp, io_devctl_t *msg, syslink_ocb_t *ocb);
+int  ipc_devctl(resmgr_context_t *ctp, io_devctl_t *msg, ipc_ocb_t *ocb);
 
 #endif
index b66cdb749870461134b281e76ad73dab3473e594..036e793dd6f21c15f02b3728c3e2500bad4d637f 100644 (file)
@@ -1,14 +1,14 @@
 /*
  *  @file       syslink_devctl.c
  *
- *  @brief      devctl handler for the syslink resource manager
+ *  @brief      devctl handler for the ipc resource manager
  *
  *
  *  @ver        02.00.00.46_alpha1
  *
  *  ============================================================================
  *
- *  Copyright (c) 2010-2013, Texas Instruments Incorporated
+ *  Copyright (c) 2010-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
 #include <ti/syslink/utils/Trace.h>
 
 extern Int MessageQCopyDrv_devctl (resmgr_context_t *ctp, io_devctl_t *msg,
-                                   syslink_ocb_t *ocb);
+                                   ipc_ocb_t *ocb);
 extern Int GateHWSpinlockDrv_devctl (resmgr_context_t * ctp, io_devctl_t * msg,
-                                     syslink_ocb_t * ocb);
-extern int syslink_messageq_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
-                                   syslink_ocb_t *ocb);
-extern int syslink_nameserver_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
-                                     syslink_ocb_t * ocb);
-extern int syslink_multiproc_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
-                                     syslink_ocb_t * ocb);
-extern int syslink_gatemp_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
-                                 syslink_ocb_t * ocb);
+                                     ipc_ocb_t * ocb);
+extern int ipc_messageq_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
+                                   ipc_ocb_t *ocb);
+extern int ipc_nameserver_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
+                                     ipc_ocb_t * ocb);
+extern int ipc_multiproc_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
+                                     ipc_ocb_t * ocb);
+extern int ipc_gatemp_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
+                                 ipc_ocb_t * ocb);
 
 /**
  * Handler for devctl() messages.
@@ -100,7 +100,7 @@ extern int syslink_gatemp_devctl(resmgr_context_t *ctp, io_devctl_t *msg,
  * \retval EOK        Success.
  * \retval ENOTSUP    Unsupported devctl().
  */
-int syslink_devctl(resmgr_context_t *ctp, io_devctl_t *msg, syslink_ocb_t *ocb)
+int ipc_devctl(resmgr_context_t *ctp, io_devctl_t *msg, ipc_ocb_t *ocb)
 {
     int status = 0;
     int commandClass = 0;
@@ -120,23 +120,23 @@ int syslink_devctl(resmgr_context_t *ctp, io_devctl_t *msg, syslink_ocb_t *ocb)
         case MESSAGEQCOPY_BASE_CMD:
             status = MessageQCopyDrv_devctl( ctp, msg, ocb);
             break;
-#ifndef SYSLINK_PLATFORM_VAYU
+#ifndef IPC_PLATFORM_VAYU
         case HWSPINLOCKDRV_BASE_CMD:
             status = GateHWSpinlockDrv_devctl(ctp, msg, ocb);
             break;
 #endif
-        case _DCMD_SYSLINK_NAMESERVER:
-            status = syslink_nameserver_devctl(ctp, msg, ocb);
+        case _DCMD_IPC_NAMESERVER:
+            status = ipc_nameserver_devctl(ctp, msg, ocb);
             break;
-        case _DCMD_SYSLINK_MESSAGEQ:
-            status = syslink_messageq_devctl(ctp, msg, ocb);
+        case _DCMD_IPC_MESSAGEQ:
+            status = ipc_messageq_devctl(ctp, msg, ocb);
             break;
-        case _DCMD_SYSLINK_MULTIPROC:
-            status = syslink_multiproc_devctl(ctp, msg, ocb);
+        case _DCMD_IPC_MULTIPROC:
+            status = ipc_multiproc_devctl(ctp, msg, ocb);
             break;
-#ifdef SYSLINK_PLATFORM_VAYU
-        case _DCMD_SYSLINK_GATEMP:
-            status = syslink_gatemp_devctl(ctp, msg, ocb);
+#ifdef IPC_PLATFORM_VAYU
+        case _DCMD_IPC_GATEMP:
+            status = ipc_gatemp_devctl(ctp, msg, ocb);
             break;
 #endif
         default:
index f182884042473a517bad7e1440a2421852eeb104..8025b935448a13fbf12f0b1a0ef8f92d037e63c7 100644 (file)
@@ -1,14 +1,14 @@
 /*
  *  @file       syslink_main.c
  *
- *  @brief      syslink main
+ *  @brief      ipc main
  *
  *
  *  @ver        02.00.00.46_alpha1
  *
  *  ============================================================================
  *
- *  Copyright (c) 2011-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2011-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -70,7 +70,7 @@
 #include <_GateMP_daemon.h>
 #include <OsalSemaphore.h>
 #include <ti/syslink/utils/OsalPrint.h>
-#if defined(SYSLINK_PLATFORM_OMAP5430)
+#if defined(IPC_PLATFORM_OMAP5430)
 #include <_ipu_pm.h>
 #endif
 #include <ti/syslink/utils/Trace.h>
@@ -96,7 +96,7 @@ static char * logFilename = NULL;
 /* Number of cores to attach to */
 static int numAttach = 0;
 
-#if defined(SYSLINK_PLATFORM_VAYU)
+#if defined(IPC_PLATFORM_VAYU)
 /* DSP2 is invalid on Vayu */
 #define INVALID_PROC     "DSP2"
 
@@ -106,21 +106,21 @@ static Int32 sr0OwnerProcId = -1;
 #define INVALID_PROC     ""
 #endif
 
-// Syslink hibernation global variables
-Bool syslink_hib_enable = TRUE;
-#if !defined(SYSLINK_PLATFORM_OMAP5430)
+// IPC hibernation global variables
+Bool ipc_hib_enable = TRUE;
+#if !defined(IPC_PLATFORM_OMAP5430)
 #define PM_HIB_DEFAULT_TIME 5000
 #endif
-uint32_t syslink_hib_timeout = PM_HIB_DEFAULT_TIME;
-Bool syslink_hib_hibernating = FALSE;
-pthread_mutex_t syslink_hib_mutex = PTHREAD_MUTEX_INITIALIZER;
-pthread_cond_t syslink_hib_cond = PTHREAD_COND_INITIALIZER;
+uint32_t ipc_hib_timeout = PM_HIB_DEFAULT_TIME;
+Bool ipc_hib_hibernating = FALSE;
+pthread_mutex_t ipc_hib_mutex = PTHREAD_MUTEX_INITIALIZER;
+pthread_cond_t ipc_hib_cond = PTHREAD_COND_INITIALIZER;
 
 extern Int rpmsg_rpc_setup (Void);
 extern Void rpmsg_rpc_destroy (Void);
 extern Void GateHWSpinlock_LeaveLockForPID(int pid);
 
-typedef struct syslink_firmware_info_t {
+typedef struct ipc_firmware_info_t {
     uint16_t proc_id;
     char * proc;
     char * firmware;
@@ -129,20 +129,20 @@ typedef struct syslink_firmware_info_t {
     int  readProcState; /* state that is currently being printed */
     bool reload;     /* reload core during recovery */
     bool freeString; /* Need to free previously allocated firmware string */
-} syslink_firmware_info;
-static syslink_firmware_info syslink_firmware[MultiProc_MAXPROCESSORS];
+} ipc_firmware_info;
+static ipc_firmware_info ipc_firmware[MultiProc_MAXPROCESSORS];
 
-/* Number of valid entries in syslink_firmware array */
-static unsigned int syslink_num_cores = 0;
+/* Number of valid entries in ipc_firmware array */
+static unsigned int ipc_num_cores = 0;
 
-int init_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
+int init_ipc(ipc_dev_t * dev, ipc_firmware_info * firmware,
     bool recover);
-int deinit_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
+int deinit_ipc(ipc_dev_t * dev, ipc_firmware_info * firmware,
     bool recover);
-int init_syslink_trace_device(syslink_dev_t *dev);
-int deinit_syslink_trace_device(syslink_dev_t *dev);
+int init_ipc_trace_device(ipc_dev_t *dev);
+int deinit_ipc_trace_device(ipc_dev_t *dev);
 
-Int syslink_error_cb (UInt16 procId, ProcMgr_Handle handle,
+Int ipc_error_cb (UInt16 procId, ProcMgr_Handle handle,
                       ProcMgr_State fromState, ProcMgr_State toState,
                       ProcMgr_EventStatus status, Ptr args);
 
@@ -162,18 +162,18 @@ static ProcMgr_State errStates[] = {ProcMgr_State_Mmu_Fault,
 static String procStateNames[] = { "In reset\n",
                                    "Running\n" };
 
-typedef struct syslink_trace_info_t {
+typedef struct ipc_trace_info_t {
     uintptr_t   va;
     uint32_t    len;
     uint32_t *  widx;
     uint32_t *  ridx;
     Bool        firstRead;
-} syslink_trace_info;
+} ipc_trace_info;
 
-static syslink_trace_info proc_traces[MultiProc_MAXPROCESSORS];
+static ipc_trace_info proc_traces[MultiProc_MAXPROCESSORS];
 
-static int runSlave(syslink_dev_t *dev, uint16_t procId,
-    syslink_firmware_info * firmware_info)
+static int runSlave(ipc_dev_t *dev, uint16_t procId,
+    ipc_firmware_info * firmware_info)
 {
     int status = 0;
     ProcMgr_AttachParams attachParams;
@@ -231,7 +231,7 @@ static int runSlave(syslink_dev_t *dev, uint16_t procId,
         goto ipcattach_fail;
     }
 
-    status = ProcMgr_registerNotify(procH[procId], syslink_error_cb, (Ptr)dev,
+    status = ProcMgr_registerNotify(procH[procId], ipc_error_cb, (Ptr)dev,
         -1, errStates);
     if (status < 0) {
         goto procmgrreg_fail;
@@ -254,7 +254,7 @@ static int runSlave(syslink_dev_t *dev, uint16_t procId,
     return 0;
 
 procmgrstart_fail:
-    ProcMgr_unregisterNotify(procH[procId], syslink_error_cb,
+    ProcMgr_unregisterNotify(procH[procId], ipc_error_cb,
         (Ptr)dev, errStates);
 procmgrreg_fail:
     Ipc_detach(procId);
@@ -274,7 +274,7 @@ procmgropen_fail:
     return -1;
 }
 
-static int resetSlave(syslink_dev_t *dev, uint16_t procId)
+static int resetSlave(ipc_dev_t *dev, uint16_t procId)
 {
     if ((procH[procId]) && (procH_fileId[procId])) {
         GT_1trace(curTrace, GT_4CLASS, "stopping %s", MultiProc_getName(procId));
@@ -282,7 +282,7 @@ static int resetSlave(syslink_dev_t *dev, uint16_t procId)
     }
 
     if (procH[procId]) {
-        ProcMgr_unregisterNotify(procH[procId], syslink_error_cb, (Ptr)dev,
+        ProcMgr_unregisterNotify(procH[procId], ipc_error_cb, (Ptr)dev,
             errStates);
         Ipc_detach(procId);
         if (procH_fileId[procId]) {
@@ -304,20 +304,20 @@ static int resetSlave(syslink_dev_t *dev, uint16_t procId)
 /* Add firmware entry after IPC is setup */
 static void addFirmware(uint16_t procId)
 {
-    syslink_firmware[syslink_num_cores].proc =
+    ipc_firmware[ipc_num_cores].proc =
         MultiProc_getName(procId);
-    syslink_firmware[syslink_num_cores].proc_id = procId;
-    syslink_firmware[syslink_num_cores].attachOnly = false;
-    syslink_firmware[syslink_num_cores].reload = false;
-    syslink_firmware[syslink_num_cores].procState = RESET_STATE;
-    syslink_firmware[syslink_num_cores].freeString = false;
-    syslink_firmware[syslink_num_cores++].firmware = NULL;
+    ipc_firmware[ipc_num_cores].proc_id = procId;
+    ipc_firmware[ipc_num_cores].attachOnly = false;
+    ipc_firmware[ipc_num_cores].reload = false;
+    ipc_firmware[ipc_num_cores].procState = RESET_STATE;
+    ipc_firmware[ipc_num_cores].freeString = false;
+    ipc_firmware[ipc_num_cores++].firmware = NULL;
 
     return;
 }
 
 static int slave_state_read(resmgr_context_t *ctp, io_read_t *msg,
-    syslink_ocb_t *ocb)
+    ipc_ocb_t *ocb)
 {
     int             nbytes;
     int             nparts;
@@ -325,7 +325,7 @@ static int slave_state_read(resmgr_context_t *ctp, io_read_t *msg,
     int             nleft;
     int             i;
     uint16_t        procId = ocb->ocb.attr->procid;
-    syslink_dev_t * dev = ocb->ocb.attr->dev;
+    ipc_dev_t * dev = ocb->ocb.attr->dev;
 
     if ((status = iofunc_read_verify(ctp, msg, &ocb->ocb, NULL)) != EOK) {
         return (status);
@@ -342,13 +342,13 @@ static int slave_state_read(resmgr_context_t *ctp, io_read_t *msg,
 
     pthread_mutex_lock(&dev->firmwareLock);
 
-    for (i = 0; i < syslink_num_cores; i++) {
-        if (syslink_firmware[i].proc_id == procId) {
+    for (i = 0; i < ipc_num_cores; i++) {
+        if (ipc_firmware[i].proc_id == procId) {
             break;
         }
     }
-    if (i == syslink_num_cores) {
-        if ((syslink_num_cores < MultiProc_MAXPROCESSORS)) {
+    if (i == ipc_num_cores) {
+        if ((ipc_num_cores < MultiProc_MAXPROCESSORS)) {
             addFirmware(procId);
         }
         else {
@@ -359,10 +359,10 @@ static int slave_state_read(resmgr_context_t *ctp, io_read_t *msg,
 
     if (ocb->ocb.offset == 0) {
         /* latch onto new state, so that we print out complete strings */
-        syslink_firmware[i].readProcState = syslink_firmware[i].procState;
+        ipc_firmware[i].readProcState = ipc_firmware[i].procState;
     }
 
-    nleft = strlen(procStateNames[syslink_firmware[i].readProcState])
+    nleft = strlen(procStateNames[ipc_firmware[i].readProcState])
         - ocb->ocb.offset; /* the state is expressed in one byte */
     nbytes = min(msg->i.nbytes, nleft);
 
@@ -370,7 +370,7 @@ static int slave_state_read(resmgr_context_t *ctp, io_read_t *msg,
     if (nbytes > 0) {
         /* set up the return data IOV */
         SETIOV(ctp->iov,
-            (char *)procStateNames[syslink_firmware[i].readProcState]
+            (char *)procStateNames[ipc_firmware[i].readProcState]
             + ocb->ocb.offset, nbytes);
 
         pthread_mutex_unlock(&dev->firmwareLock);
@@ -403,14 +403,14 @@ static int slave_state_read(resmgr_context_t *ctp, io_read_t *msg,
 }
 
 static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
-    syslink_ocb_t *ocb)
+    ipc_ocb_t *ocb)
 {
     int             status;
     char *          buf;
     uint16_t        procId = ocb->ocb.attr->procid;
     int             i;
     char *          ptr;
-    syslink_dev_t * dev = ocb->ocb.attr->dev;
+    ipc_dev_t * dev = ocb->ocb.attr->dev;
     Int32           sr0ProcId;
 
     if ((status = iofunc_write_verify(ctp, msg, &ocb->ocb, NULL)) != EOK) {
@@ -444,13 +444,13 @@ static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
     }
 
     pthread_mutex_lock(&dev->firmwareLock);
-    for (i = 0; i < syslink_num_cores; i++) {
-        if (syslink_firmware[i].proc_id == procId) {
+    for (i = 0; i < ipc_num_cores; i++) {
+        if (ipc_firmware[i].proc_id == procId) {
             break;
         }
     }
-    if (i == syslink_num_cores) {
-        if ((syslink_num_cores < MultiProc_MAXPROCESSORS)) {
+    if (i == ipc_num_cores) {
+        if ((ipc_num_cores < MultiProc_MAXPROCESSORS)) {
             addFirmware(procId);
         }
         else {
@@ -460,10 +460,10 @@ static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
     }
 
     if (strcmp("1", buf) == 0) {
-        if ((syslink_firmware[i].procState == RESET_STATE) &&
-           (syslink_firmware[i].firmware != NULL)) {
-            runSlave(ocb->ocb.attr->dev, procId, &syslink_firmware[i]);
-#if defined(SYSLINK_PLATFORM_VAYU)
+        if ((ipc_firmware[i].procState == RESET_STATE) &&
+           (ipc_firmware[i].firmware != NULL)) {
+            runSlave(ocb->ocb.attr->dev, procId, &ipc_firmware[i]);
+#if defined(IPC_PLATFORM_VAYU)
             if (gatempEnabled) {
                 if (sr0OwnerProcId == -1) {
                     /* Set up GateMP */
@@ -488,10 +488,10 @@ static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
             }
 #endif
             printf("Core is now running with image '%s'\n",
-                syslink_firmware[i].firmware);
-            syslink_firmware[i].procState = RUNNING_STATE;
-            syslink_firmware[i].reload = true;
-            status = init_syslink_trace_device(dev);
+                ipc_firmware[i].firmware);
+            ipc_firmware[i].procState = RUNNING_STATE;
+            ipc_firmware[i].reload = true;
+            status = init_ipc_trace_device(dev);
             if (status < 0) {
                 pthread_mutex_unlock(&dev->firmwareLock);
                 free(buf);
@@ -501,8 +501,8 @@ static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
         }
     }
     else if (strcmp("0", buf) == 0) {
-        if (syslink_firmware[i].procState == RUNNING_STATE) {
-#if defined(SYSLINK_PLATFORM_VAYU)
+        if (ipc_firmware[i].procState == RUNNING_STATE) {
+#if defined(IPC_PLATFORM_VAYU)
             if ((gatempEnabled) && (procId == sr0OwnerProcId)) {
                 sr0OwnerProcId = -1;
                 status = GateMP_destroy(FALSE);
@@ -516,13 +516,13 @@ static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
             }
 #endif
             resetSlave(ocb->ocb.attr->dev, procId);
-            syslink_firmware[i].procState = RESET_STATE;
-            syslink_firmware[i].reload = false;
-            status = deinit_syslink_trace_device(dev);
+            ipc_firmware[i].procState = RESET_STATE;
+            ipc_firmware[i].reload = false;
+            status = deinit_ipc_trace_device(dev);
             if (status < 0) {
                 pthread_mutex_unlock(&dev->firmwareLock);
                 free(buf);
-                Osal_printf("IPC: deinit_syslink_trace_device failed %d",
+                Osal_printf("IPC: deinit_ipc_trace_device failed %d",
                     status);
                 return (EIO);
             }
@@ -546,7 +546,7 @@ static int slave_state_write(resmgr_context_t *ctp, io_write_t *msg,
 }
 
 static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
-    syslink_ocb_t *ocb)
+    ipc_ocb_t *ocb)
 {
     int             nbytes;
     int             nparts;
@@ -554,7 +554,7 @@ static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
     int             nleft;
     int             i;
     uint16_t        procId = ocb->ocb.attr->procid;
-    syslink_dev_t * dev = ocb->ocb.attr->dev;
+    ipc_dev_t * dev = ocb->ocb.attr->dev;
 
     if ((status = iofunc_read_verify (ctp, msg, &ocb->ocb, NULL)) != EOK) {
         return (status);
@@ -570,14 +570,14 @@ static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
     }
 
     pthread_mutex_lock(&dev->firmwareLock);
-    for (i = 0; i < syslink_num_cores; i++) {
-        if (syslink_firmware[i].proc_id == procId) {
+    for (i = 0; i < ipc_num_cores; i++) {
+        if (ipc_firmware[i].proc_id == procId) {
             break;
         }
     }
 
-    if (i == syslink_num_cores) {
-        if ((syslink_num_cores < MultiProc_MAXPROCESSORS)) {
+    if (i == ipc_num_cores) {
+        if ((ipc_num_cores < MultiProc_MAXPROCESSORS)) {
             addFirmware(procId);
         }
         else {
@@ -586,11 +586,11 @@ static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
         }
     }
 
-    if (syslink_firmware[i].firmware == NULL) {
+    if (ipc_firmware[i].firmware == NULL) {
         nbytes = 0;
     }
     else {
-        nleft = strlen(syslink_firmware[i].firmware)
+        nleft = strlen(ipc_firmware[i].firmware)
             - ocb->ocb.offset + 1; /* Add one byte for carriage return */
         nbytes = min(msg->i.nbytes, nleft);
     }
@@ -599,7 +599,7 @@ static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
     if (nbytes > 0) {
         if (nbytes == nleft) {
             /* set up the return data IOV */
-            SETIOV(&ctp->iov[0], (char *)syslink_firmware[i].firmware
+            SETIOV(&ctp->iov[0], (char *)ipc_firmware[i].firmware
                 + ocb->ocb.offset, nbytes - 1);
 
             /* add a carriage return */
@@ -609,7 +609,7 @@ static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
         }
         else {
             /* set up the return data IOV */
-            SETIOV(ctp->iov, (char *)syslink_firmware[i].firmware
+            SETIOV(ctp->iov, (char *)ipc_firmware[i].firmware
                 + ocb->ocb.offset, nbytes);
 
             nparts = 1;
@@ -641,7 +641,7 @@ static int slave_file_read(resmgr_context_t *ctp, io_read_t *msg,
 }
 
 static int slave_file_write(resmgr_context_t *ctp, io_write_t *msg,
-    syslink_ocb_t *ocb)
+    ipc_ocb_t *ocb)
 {
     int             status;
     char *          buf;
@@ -649,7 +649,7 @@ static int slave_file_write(resmgr_context_t *ctp, io_write_t *msg,
     int             i;
     char *          absPath;
     char *          ptr;
-    syslink_dev_t * dev = ocb->ocb.attr->dev;
+    ipc_dev_t * dev = ocb->ocb.attr->dev;
 
     if ((status = iofunc_write_verify(ctp, msg, &ocb->ocb, NULL)) != EOK) {
         return (status);
@@ -700,19 +700,19 @@ static int slave_file_write(resmgr_context_t *ctp, io_write_t *msg,
     pthread_mutex_lock(&dev->firmwareLock);
 
     /*
-     * Check if an entry in syslink_firmware already exists for this core.
+     * Check if an entry in ipc_firmware already exists for this core.
      * If not, create one. Otherwise just update the firmware path.
      */
-    for (i = 0; i < syslink_num_cores; i++) {
-        if (syslink_firmware[i].proc_id == procId) {
+    for (i = 0; i < ipc_num_cores; i++) {
+        if (ipc_firmware[i].proc_id == procId) {
             break;
         }
     }
-    if (i == syslink_num_cores) {
-        if (syslink_num_cores < MultiProc_MAXPROCESSORS) {
+    if (i == ipc_num_cores) {
+        if (ipc_num_cores < MultiProc_MAXPROCESSORS) {
             addFirmware(procId);
-            syslink_firmware[syslink_num_cores - 1].freeString = true;
-            syslink_firmware[syslink_num_cores - 1].firmware = absPath;
+            ipc_firmware[ipc_num_cores - 1].freeString = true;
+            ipc_firmware[ipc_num_cores - 1].firmware = absPath;
         }
         else {
             pthread_mutex_unlock(&dev->firmwareLock);
@@ -722,11 +722,11 @@ static int slave_file_write(resmgr_context_t *ctp, io_write_t *msg,
     }
     else {
         /* Free previously allocated string */
-        if ((syslink_firmware[i].freeString) &&
-           (syslink_firmware[i].firmware)) {
-            free(syslink_firmware[i].firmware);
+        if ((ipc_firmware[i].freeString) &&
+           (ipc_firmware[i].firmware)) {
+            free(ipc_firmware[i].firmware);
         }
-        syslink_firmware[i].firmware = absPath;
+        ipc_firmware[i].firmware = absPath;
     }
 
     pthread_mutex_unlock(&dev->firmwareLock);
@@ -738,7 +738,7 @@ static int slave_file_write(resmgr_context_t *ctp, io_write_t *msg,
     return (_RESMGR_NPARTS(0));
 }
 
-int syslink_read(resmgr_context_t *ctp, io_read_t *msg, syslink_ocb_t *ocb)
+int ipc_read(resmgr_context_t *ctp, io_read_t *msg, ipc_ocb_t *ocb)
 {
     int         nbytes;
     int         nparts;
@@ -813,7 +813,7 @@ int syslink_read(resmgr_context_t *ctp, io_read_t *msg, syslink_ocb_t *ocb)
 
 extern OsalSemaphore_Handle mqcopy_test_sem;
 
-int syslink_unblock(resmgr_context_t *ctp, io_pulse_t *msg, syslink_ocb_t *ocb)
+int ipc_unblock(resmgr_context_t *ctp, io_pulse_t *msg, ipc_ocb_t *ocb)
 {
     int status = _RESMGR_NOREPLY;
     struct _msg_info info;
@@ -841,12 +841,12 @@ int syslink_unblock(resmgr_context_t *ctp, io_pulse_t *msg, syslink_ocb_t *ocb)
 }
 
 IOFUNC_OCB_T *
-syslink_ocb_calloc (resmgr_context_t * ctp, IOFUNC_ATTR_T * device)
+ipc_ocb_calloc (resmgr_context_t * ctp, IOFUNC_ATTR_T * device)
 {
-    syslink_ocb_t *ocb = NULL;
+    ipc_ocb_t *ocb = NULL;
 
     /* Allocate the OCB */
-    ocb = (syslink_ocb_t *) calloc (1, sizeof (syslink_ocb_t));
+    ocb = (ipc_ocb_t *) calloc (1, sizeof (ipc_ocb_t));
     if (ocb == NULL){
         errno = ENOMEM;
         return (NULL);
@@ -858,23 +858,23 @@ syslink_ocb_calloc (resmgr_context_t * ctp, IOFUNC_ATTR_T * device)
 }
 
 void
-syslink_ocb_free (IOFUNC_OCB_T * i_ocb)
+ipc_ocb_free (IOFUNC_OCB_T * i_ocb)
 {
-    syslink_ocb_t * ocb = (syslink_ocb_t *)i_ocb;
+    ipc_ocb_t * ocb = (ipc_ocb_t *)i_ocb;
 
     if (ocb) {
-#ifndef SYSLINK_PLATFORM_VAYU
+#ifndef IPC_PLATFORM_VAYU
         GateHWSpinlock_LeaveLockForPID(ocb->pid);
 #endif
         free (ocb);
     }
 }
 
-int init_slave_devices(syslink_dev_t *dev)
+int init_slave_devices(ipc_dev_t *dev)
 {
     resmgr_attr_t    resmgr_attr;
     int              i;
-    syslink_attr_t * slave_attr;
+    ipc_attr_t * slave_attr;
     int              status = 0;
 
     memset(&resmgr_attr, 0, sizeof resmgr_attr);
@@ -883,25 +883,25 @@ int init_slave_devices(syslink_dev_t *dev)
 
     /* Populate the /dev/ipc-state namespace */
     for (i = 1; i < MultiProc_getNumProcessors(); i++) {
-        iofunc_func_init(_RESMGR_CONNECT_NFUNCS, &dev->syslink.cfuncs_state[i],
-                         _RESMGR_IO_NFUNCS, &dev->syslink.iofuncs_state[i]);
-        slave_attr = &dev->syslink.cattr_slave[i];
+        iofunc_func_init(_RESMGR_CONNECT_NFUNCS, &dev->ipc.cfuncs_state[i],
+                         _RESMGR_IO_NFUNCS, &dev->ipc.iofuncs_state[i]);
+        slave_attr = &dev->ipc.cattr_slave[i];
         iofunc_attr_init(&slave_attr->attr,
                          S_IFCHR | 0777, NULL, NULL);
-        slave_attr->attr.mount = &dev->syslink.mattr;
+        slave_attr->attr.mount = &dev->ipc.mattr;
         slave_attr->procid = i;
         slave_attr->dev = (Ptr)dev;
         iofunc_time_update(&slave_attr->attr);
-        snprintf(dev->syslink.device_name, _POSIX_PATH_MAX,
+        snprintf(dev->ipc.device_name, _POSIX_PATH_MAX,
                   "%s-state/%s", IPC_DEVICE_PATH, MultiProc_getName(i));
-        dev->syslink.iofuncs_state[i].read = slave_state_read;
-        dev->syslink.iofuncs_state[i].write = slave_state_write;
+        dev->ipc.iofuncs_state[i].read = slave_state_read;
+        dev->ipc.iofuncs_state[i].write = slave_state_write;
 
-        if (-1 == (dev->syslink.resmgr_id_state[i] =
+        if (-1 == (dev->ipc.resmgr_id_state[i] =
             resmgr_attach(dev->dpp, &resmgr_attr,
-                dev->syslink.device_name, _FTYPE_ANY, 0,
-                &dev->syslink.cfuncs_state[i],
-                &dev->syslink.iofuncs_state[i],
+                dev->ipc.device_name, _FTYPE_ANY, 0,
+                &dev->ipc.cfuncs_state[i],
+                &dev->ipc.iofuncs_state[i],
                 &slave_attr->attr))) {
             GT_setFailureReason(curTrace, GT_4CLASS, "init_slave_devices",
                 status, "resmgr_attach failed");
@@ -911,25 +911,25 @@ int init_slave_devices(syslink_dev_t *dev)
 
     /* Populate the /dev/ipc-file namespace */
     for (i = 1; i < MultiProc_getNumProcessors(); i++) {
-        iofunc_func_init(_RESMGR_CONNECT_NFUNCS, &dev->syslink.cfuncs_file[i],
-                         _RESMGR_IO_NFUNCS, &dev->syslink.iofuncs_file[i]);
-        slave_attr = &dev->syslink.cattr_slave[i];
+        iofunc_func_init(_RESMGR_CONNECT_NFUNCS, &dev->ipc.cfuncs_file[i],
+                         _RESMGR_IO_NFUNCS, &dev->ipc.iofuncs_file[i]);
+        slave_attr = &dev->ipc.cattr_slave[i];
         iofunc_attr_init(&slave_attr->attr,
                          S_IFCHR | 0777, NULL, NULL);
-        slave_attr->attr.mount = &dev->syslink.mattr;
+        slave_attr->attr.mount = &dev->ipc.mattr;
         slave_attr->procid = i;
         slave_attr->dev = (Ptr)dev;
         iofunc_time_update(&slave_attr->attr);
-        snprintf(dev->syslink.device_name, _POSIX_PATH_MAX,
+        snprintf(dev->ipc.device_name, _POSIX_PATH_MAX,
                   "%s-file/%s", IPC_DEVICE_PATH, MultiProc_getName(i));
-        dev->syslink.iofuncs_file[i].read = slave_file_read;
-        dev->syslink.iofuncs_file[i].write = slave_file_write;
+        dev->ipc.iofuncs_file[i].read = slave_file_read;
+        dev->ipc.iofuncs_file[i].write = slave_file_write;
 
-        if (-1 == (dev->syslink.resmgr_id_file[i] =
+        if (-1 == (dev->ipc.resmgr_id_file[i] =
             resmgr_attach(dev->dpp, &resmgr_attr,
-                dev->syslink.device_name, _FTYPE_ANY, 0,
-                &dev->syslink.cfuncs_file[i],
-                &dev->syslink.iofuncs_file[i],
+                dev->ipc.device_name, _FTYPE_ANY, 0,
+                &dev->ipc.cfuncs_file[i],
+                &dev->ipc.iofuncs_file[i],
                 &slave_attr->attr))) {
             GT_setFailureReason(curTrace, GT_4CLASS, "init_slave_devices",
                 status, "resmgr_attach failed");
@@ -940,18 +940,18 @@ int init_slave_devices(syslink_dev_t *dev)
     return (status);
 }
 
-int deinit_slave_devices(syslink_dev_t *dev)
+int deinit_slave_devices(ipc_dev_t *dev)
 {
     int status = EOK;
     int i = 0;
 
     for (i = 1; i < MultiProc_getNumProcessors(); i++) {
-        status = resmgr_detach(dev->dpp, dev->syslink.resmgr_id_state[i], 0);
+        status = resmgr_detach(dev->dpp, dev->ipc.resmgr_id_state[i], 0);
         if (status < 0) {
             Osal_printf("IPC: resmgr_detach of state device %d failed: %d",
                 i, errno);
         }
-        status = resmgr_detach(dev->dpp, dev->syslink.resmgr_id_file[i], 0);
+        status = resmgr_detach(dev->dpp, dev->ipc.resmgr_id_file[i], 0);
         if (status < 0) {
             Osal_printf("IPC: resmgr_detach of file device %d failed: %d",
                 i, errno);
@@ -961,11 +961,11 @@ int deinit_slave_devices(syslink_dev_t *dev)
     return (status);
 }
 
-int init_syslink_trace_device(syslink_dev_t *dev)
+int init_ipc_trace_device(ipc_dev_t *dev)
 {
     resmgr_attr_t    resmgr_attr;
     int              i;
-    syslink_attr_t * trace_attr;
+    ipc_attr_t * trace_attr;
     char             trace_name[_POSIX_PATH_MAX];
     int              status = 0;
     unsigned int     da = 0, pa = 0;
@@ -975,29 +975,29 @@ int init_syslink_trace_device(syslink_dev_t *dev)
     resmgr_attr.nparts_max = 10;
     resmgr_attr.msg_max_size = 2048;
 
-    for (i = 0; i < syslink_num_cores; i++) {
+    for (i = 0; i < ipc_num_cores; i++) {
         /*
          * Initialize trace device only for cores that are running and their
          * device is not yet setup.
          */
-        if ((syslink_firmware[i].procState == RUNNING_STATE) &&
+        if ((ipc_firmware[i].procState == RUNNING_STATE) &&
             (proc_traces[i].va == NULL)) {
             iofunc_func_init(_RESMGR_CONNECT_NFUNCS,
-                &dev->syslink.cfuncs_trace[i],
-                _RESMGR_IO_NFUNCS, &dev->syslink.iofuncs_trace[i]);
-            trace_attr = &dev->syslink.cattr_trace[i];
+                &dev->ipc.cfuncs_trace[i],
+                _RESMGR_IO_NFUNCS, &dev->ipc.iofuncs_trace[i]);
+            trace_attr = &dev->ipc.cattr_trace[i];
             iofunc_attr_init(&trace_attr->attr,
                          S_IFCHR | 0777, NULL, NULL);
-            trace_attr->attr.mount = &dev->syslink.mattr;
+            trace_attr->attr.mount = &dev->ipc.mattr;
             trace_attr->procid = i;
             iofunc_time_update(&trace_attr->attr);
-            snprintf(dev->syslink.device_name, _POSIX_PATH_MAX,
+            snprintf(dev->ipc.device_name, _POSIX_PATH_MAX,
                 "%s-trace/%s", IPC_DEVICE_PATH,
-                MultiProc_getName(syslink_firmware[i].proc_id));
-            dev->syslink.iofuncs_trace[i].read = syslink_read;
+                MultiProc_getName(ipc_firmware[i].proc_id));
+            dev->ipc.iofuncs_trace[i].read = ipc_read;
             snprintf (trace_name, _POSIX_PATH_MAX, "%d", 0);
             pa = 0;
-            status = RscTable_getInfo(syslink_firmware[i].proc_id, TYPE_TRACE,
+            status = RscTable_getInfo(ipc_firmware[i].proc_id, TYPE_TRACE,
                 0, &da, &pa, &len);
             if (status == 0) {
                 /* last 8 bytes are for writeIdx/readIdx */
@@ -1005,7 +1005,7 @@ int init_syslink_trace_device(syslink_dev_t *dev)
                 if (da && !pa) {
                     /* need to translate da->pa */
                     status = ProcMgr_translateAddr(
-                        procH[syslink_firmware[i].proc_id],
+                        procH[ipc_firmware[i].proc_id],
                         (Ptr *) &pa,
                         ProcMgr_AddrType_MasterPhys,
                         (Ptr) da,
@@ -1013,7 +1013,7 @@ int init_syslink_trace_device(syslink_dev_t *dev)
                 }
                 else {
                     GT_setFailureReason(curTrace, GT_4CLASS,
-                        "init_syslink_trace_device",
+                        "init_ipc_trace_device",
                         status, "not performing ProcMgr_translate");
                 }
                 /* map length aligned to page size */
@@ -1025,7 +1025,7 @@ int init_syslink_trace_device(syslink_dev_t *dev)
                     + sizeof(uint32_t));
                 if (proc_traces[i].va == MAP_DEVICE_FAILED) {
                     GT_setFailureReason(curTrace, GT_4CLASS,
-                        "init_syslink_trace_device",
+                        "init_ipc_trace_device",
                         status, "mmap_device_io failed");
                     GT_1trace(curTrace, GT_4CLASS, "errno %d", errno);
                     proc_traces[i].va = NULL;
@@ -1034,18 +1034,18 @@ int init_syslink_trace_device(syslink_dev_t *dev)
             }
             else {
                 GT_setFailureReason(curTrace, GT_4CLASS,
-                    "init_syslink_trace_device",
+                    "init_ipc_trace_device",
                     status, "RscTable_getInfo failed");
                 proc_traces[i].va = NULL;
             }
-            if (-1 == (dev->syslink.resmgr_id_trace[i] =
+            if (-1 == (dev->ipc.resmgr_id_trace[i] =
                        resmgr_attach(dev->dpp, &resmgr_attr,
-                                     dev->syslink.device_name, _FTYPE_ANY, 0,
-                                     &dev->syslink.cfuncs_trace[i],
-                                     &dev->syslink.iofuncs_trace[i],
+                                     dev->ipc.device_name, _FTYPE_ANY, 0,
+                                     &dev->ipc.cfuncs_trace[i],
+                                     &dev->ipc.iofuncs_trace[i],
                                      &trace_attr->attr))) {
                 GT_setFailureReason(curTrace, GT_4CLASS,
-                    "init_syslink_trace_device",
+                    "init_ipc_trace_device",
                     status, "resmgr_attach failed");
                 return(-1);
             }
@@ -1055,16 +1055,16 @@ int init_syslink_trace_device(syslink_dev_t *dev)
     return (status);
 }
 
-int deinit_syslink_trace_device(syslink_dev_t *dev)
+int deinit_ipc_trace_device(ipc_dev_t *dev)
 {
     int status = EOK;
     int i = 0;
 
-    for (i = 0; i < syslink_num_cores; i++) {
+    for (i = 0; i < ipc_num_cores; i++) {
         /* Only disable trace device on cores in RESET state */
-        if ((syslink_firmware[i].procState == RESET_STATE) &&
+        if ((ipc_firmware[i].procState == RESET_STATE) &&
             (proc_traces[i].va != NULL)) {
-            status = resmgr_detach(dev->dpp, dev->syslink.resmgr_id_trace[i],
+            status = resmgr_detach(dev->dpp, dev->ipc.resmgr_id_trace[i],
                 0);
             if (status < 0) {
                 Osal_printf("IPC: resmgr_detach of trace device %d failed: %d",
@@ -1082,8 +1082,8 @@ int deinit_syslink_trace_device(syslink_dev_t *dev)
     return (status);
 }
 
-/* Initialize the syslink device */
-int init_syslink_device(syslink_dev_t *dev)
+/* Initialize the ipc device */
+int init_ipc_device(ipc_dev_t *dev)
 {
     iofunc_attr_t *  attr;
     resmgr_attr_t    resmgr_attr;
@@ -1096,34 +1096,34 @@ int init_syslink_device(syslink_dev_t *dev)
     resmgr_attr.nparts_max = 10;
     resmgr_attr.msg_max_size = 2048;
 
-    memset(&dev->syslink.mattr, 0, sizeof(iofunc_mount_t));
-    dev->syslink.mattr.flags = ST_NOSUID | ST_NOEXEC;
-    dev->syslink.mattr.conf = IOFUNC_PC_CHOWN_RESTRICTED |
+    memset(&dev->ipc.mattr, 0, sizeof(iofunc_mount_t));
+    dev->ipc.mattr.flags = ST_NOSUID | ST_NOEXEC;
+    dev->ipc.mattr.conf = IOFUNC_PC_CHOWN_RESTRICTED |
                               IOFUNC_PC_NO_TRUNC |
                               IOFUNC_PC_SYNC_IO;
-    dev->syslink.mattr.funcs = &dev->syslink.mfuncs;
+    dev->ipc.mattr.funcs = &dev->ipc.mfuncs;
 
-    memset(&dev->syslink.mfuncs, 0, sizeof(iofunc_funcs_t));
-    dev->syslink.mfuncs.nfuncs = _IOFUNC_NFUNCS;
+    memset(&dev->ipc.mfuncs, 0, sizeof(iofunc_funcs_t));
+    dev->ipc.mfuncs.nfuncs = _IOFUNC_NFUNCS;
 
-    iofunc_func_init(_RESMGR_CONNECT_NFUNCS, &dev->syslink.cfuncs,
-                    _RESMGR_IO_NFUNCS, &dev->syslink.iofuncs);
+    iofunc_func_init(_RESMGR_CONNECT_NFUNCS, &dev->ipc.cfuncs,
+                    _RESMGR_IO_NFUNCS, &dev->ipc.iofuncs);
 
-    iofunc_attr_init(attr = &dev->syslink.cattr, S_IFCHR | 0777, NULL, NULL);
+    iofunc_attr_init(attr = &dev->ipc.cattr, S_IFCHR | 0777, NULL, NULL);
 
-    dev->syslink.mfuncs.ocb_calloc = syslink_ocb_calloc;
-    dev->syslink.mfuncs.ocb_free = syslink_ocb_free;
-    dev->syslink.iofuncs.devctl = syslink_devctl;
-    dev->syslink.iofuncs.unblock = syslink_unblock;
+    dev->ipc.mfuncs.ocb_calloc = ipc_ocb_calloc;
+    dev->ipc.mfuncs.ocb_free = ipc_ocb_free;
+    dev->ipc.iofuncs.devctl = ipc_devctl;
+    dev->ipc.iofuncs.unblock = ipc_unblock;
 
-    attr->mount = &dev->syslink.mattr;
+    attr->mount = &dev->ipc.mattr;
     iofunc_time_update(attr);
 
-    if (-1 == (dev->syslink.resmgr_id =
+    if (-1 == (dev->ipc.resmgr_id =
         resmgr_attach(dev->dpp, &resmgr_attr,
                       IPC_DEVICE_PATH, _FTYPE_ANY, 0,
-                      &dev->syslink.cfuncs,
-                      &dev->syslink.iofuncs, attr))) {
+                      &dev->ipc.cfuncs,
+                      &dev->ipc.iofuncs, attr))) {
         return(-1);
     }
 
@@ -1132,7 +1132,7 @@ int init_syslink_device(syslink_dev_t *dev)
         return status;
     }
 
-    status = init_syslink_trace_device(dev);
+    status = init_ipc_trace_device(dev);
     if (status < 0) {
         return status;
     }
@@ -1140,21 +1140,21 @@ int init_syslink_device(syslink_dev_t *dev)
     return(0);
 }
 
-/* De-initialize the syslink device */
-int deinit_syslink_device(syslink_dev_t *dev)
+/* De-initialize the ipc device */
+int deinit_ipc_device(ipc_dev_t *dev)
 {
     int status = EOK;
 
-    status = resmgr_detach(dev->dpp, dev->syslink.resmgr_id, 0);
+    status = resmgr_detach(dev->dpp, dev->ipc.resmgr_id, 0);
     if (status < 0) {
         Osal_printf("IPC: resmgr_detach of %s failed: %d",
             IPC_DEVICE_PATH, errno);
         status = errno;
     }
 
-    status = deinit_syslink_trace_device(dev);
+    status = deinit_ipc_trace_device(dev);
     if (status < 0) {
-        Osal_printf("IPC: deinit_syslink_trace_device failed %d", status);
+        Osal_printf("IPC: deinit_ipc_trace_device failed %d", status);
     }
 
     status = deinit_slave_devices(dev);
@@ -1167,9 +1167,9 @@ int deinit_syslink_device(syslink_dev_t *dev)
 
 
 /* Initialize the devices */
-int init_devices(syslink_dev_t *dev)
+int init_devices(ipc_dev_t *dev)
 {
-    if (init_syslink_device(dev) < 0) {
+    if (init_ipc_device(dev) < 0) {
         Osal_printf("IPC: device init failed");
         return(-1);
     }
@@ -1179,11 +1179,11 @@ int init_devices(syslink_dev_t *dev)
 
 
 /* De-initialize the devices */
-int deinit_devices(syslink_dev_t *dev)
+int deinit_devices(ipc_dev_t *dev)
 {
     int status = EOK;
 
-    if ((status = deinit_syslink_device(dev)) < 0) {
+    if ((status = deinit_ipc_device(dev)) < 0) {
         fprintf( stderr, "IPC: device de-init failed %d\n", status);
         status = errno;
     }
@@ -1193,15 +1193,15 @@ int deinit_devices(syslink_dev_t *dev)
 
 static void ipc_recover(Ptr args)
 {
-    syslink_dev_t * dev = (syslink_dev_t *)args;
+    ipc_dev_t * dev = (ipc_dev_t *)args;
 
     if (!disableRecovery) {
-        /* Protect the syslink_firmware array as we recover */
+        /* Protect the ipc_firmware array as we recover */
         pthread_mutex_lock(&dev->firmwareLock);
-        deinit_ipc(dev, syslink_firmware, TRUE);
-        deinit_syslink_trace_device(dev);
-        init_ipc(dev, syslink_firmware, TRUE);
-        init_syslink_trace_device(dev);
+        deinit_ipc(dev, ipc_firmware, TRUE);
+        deinit_ipc_trace_device(dev);
+        init_ipc(dev, ipc_firmware, TRUE);
+        init_ipc_trace_device(dev);
         pthread_mutex_unlock(&dev->firmwareLock);
     }
     else {
@@ -1210,13 +1210,13 @@ static void ipc_recover(Ptr args)
     }
 }
 
-Int syslink_error_cb (UInt16 procId, ProcMgr_Handle handle,
+Int ipc_error_cb (UInt16 procId, ProcMgr_Handle handle,
                       ProcMgr_State fromState, ProcMgr_State toState,
                       ProcMgr_EventStatus status, Ptr args)
 {
     Int ret = 0;
     String errString = NULL;
-    syslink_dev_t * dev = (syslink_dev_t *)args;
+    ipc_dev_t * dev = (ipc_dev_t *)args;
 
     if (status == ProcMgr_EventStatus_Event) {
         switch (toState) {
@@ -1235,7 +1235,7 @@ Int syslink_error_cb (UInt16 procId, ProcMgr_Handle handle,
                 break;
         }
         GT_2trace (curTrace, GT_4CLASS,
-                   "syslink_error_cb: Received Error Callback for %s : %s\n",
+                   "ipc_error_cb: Received Error Callback for %s : %s\n",
                    MultiProc_getName(procId), errString);
         /* Don't allow re-schedule of recovery until complete */
         pthread_mutex_lock(&dev->lock);
@@ -1244,23 +1244,23 @@ Int syslink_error_cb (UInt16 procId, ProcMgr_Handle handle,
             dev->recover = TRUE;
             /* Activate a thread to handle the recovery. */
             GT_0trace (curTrace, GT_4CLASS,
-                       "syslink_error_cb: Scheduling recovery...");
+                       "ipc_error_cb: Scheduling recovery...");
             OsalThread_activate(dev->ipc_recovery_work);
         }
         else {
             GT_0trace (curTrace, GT_4CLASS,
-                       "syslink_error_cb: Recovery already scheduled.");
+                       "ipc_error_cb: Recovery already scheduled.");
         }
         pthread_mutex_unlock(&dev->lock);
     }
     else if (status == ProcMgr_EventStatus_Canceled) {
         GT_1trace (curTrace, GT_3CLASS,
-                   "SysLink Error Callback Cancelled for %s",
+                   "Ipc Error Callback Cancelled for %s",
                    MultiProc_getName(procId));
     }
     else {
         GT_1trace (curTrace, GT_4CLASS,
-                   "SysLink Error Callback Unexpected Event for %s",
+                   "Ipc Error Callback Unexpected Event for %s",
                    MultiProc_getName(procId));
     }
 
@@ -1268,13 +1268,13 @@ Int syslink_error_cb (UInt16 procId, ProcMgr_Handle handle,
 }
 
 /*
- * Initialize the syslink ipc
+ * Initialize ipc
  *
  * This function sets up the "kernel"-side IPC modules, and does any special
  * initialization required for QNX and the platform being used.  This function
  * also registers for error notifications and initializes the recovery thread.
  */
-int init_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware, bool recover)
+int init_ipc(ipc_dev_t * dev, ipc_firmware_info * firmware, bool recover)
 {
     int status = 0;
     Ipc_Config iCfg;
@@ -1317,7 +1317,7 @@ int init_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware, bool recover
 
         memset(procH_fileId, 0, sizeof(procH_fileId));
 
-        for (i = 0; i < syslink_num_cores; i++) {
+        for (i = 0; i < ipc_num_cores; i++) {
             procId = firmware[i].proc_id = MultiProc_getId(firmware[i].proc);
             if (procId >= MultiProc_MAXPROCESSORS) {
                 status = -1;
@@ -1374,7 +1374,7 @@ int init_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware, bool recover
         if (status < 0)
             goto rpcsetup_fail;
 
-#if defined(SYSLINK_PLATFORM_VAYU)
+#if defined(IPC_PLATFORM_VAYU)
         if (gatempEnabled) {
             Int32 sr0ProcId;
 
@@ -1405,7 +1405,7 @@ int init_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware, bool recover
         goto exit;
     }
 
-#if defined(SYSLINK_PLATFORM_VAYU)
+#if defined(IPC_PLATFORM_VAYU)
 gatempsetup_fail:
     NameServer_destroy();
 nameserversetup_fail:
@@ -1419,7 +1419,7 @@ tiipcsetup_fail:
         if (procId >= MultiProc_MAXPROCESSORS) {
             continue;
         }
-        ProcMgr_unregisterNotify(procH[procId], syslink_error_cb,
+        ProcMgr_unregisterNotify(procH[procId], ipc_error_cb,
                                 (Ptr)dev, errStates);
         if (!firmware[i].attachOnly) {
             ProcMgr_stop(procH[procId]);
@@ -1444,7 +1444,7 @@ exit:
     return status;
 }
 
-int deinit_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
+int deinit_ipc(ipc_dev_t * dev, ipc_firmware_info * firmware,
     bool recover)
 {
     int status = EOK;
@@ -1462,7 +1462,7 @@ int deinit_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
         }
     }
 
-#if defined(SYSLINK_PLATFORM_VAYU)
+#if defined(IPC_PLATFORM_VAYU)
     if (gatempEnabled) {
         GateMP_destroy(TRUE);
 
@@ -1486,7 +1486,7 @@ int deinit_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
             Osal_printf("IPC: printing remote core trace dump");
             log = fopen(logFilename, "a+");
             if (log) {
-                for (id = 0; id < syslink_num_cores; id++) {
+                for (id = 0; id < ipc_num_cores; id++) {
                     if (firmware[id].procState == RUNNING_STATE) {
                         if (proc_traces[id].va) {
                             /* print traces */
@@ -1519,7 +1519,7 @@ int deinit_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
     }
 
     /* After printing trace, set all processor states to RESET */
-    for (id = 0; id < syslink_num_cores; id++) {
+    for (id = 0; id < ipc_num_cores; id++) {
         firmware[id].procState = RESET_STATE;
     }
 
@@ -1542,7 +1542,7 @@ int deinit_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware,
 static Void printUsage (Char * app)
 {
     printf("\n\nUsage:\n");
-#if defined(SYSLINK_PLATFORM_OMAP5430)
+#if defined(IPC_PLATFORM_OMAP5430)
     printf("\n%s: [-HTdca] <core_id1> <executable1> [<core_id2> <executable2> ...]\n",
         app);
     printf("  <core_id#> should be set to a core name (e.g. IPU, DSP)\n");
@@ -1569,11 +1569,11 @@ static Void printUsage (Char * app)
     exit (EXIT_SUCCESS);
 }
 
-dispatch_t * syslink_dpp = NULL;
+dispatch_t * ipc_dpp = NULL;
 
 int main(int argc, char *argv[])
 {
-    syslink_dev_t * dev = NULL;
+    ipc_dev_t * dev = NULL;
     thread_pool_attr_t tattr;
     int status;
     int error = EOK;
@@ -1602,7 +1602,7 @@ int main(int argc, char *argv[])
 
         switch (c)
         {
-#if defined(SYSLINK_PLATFORM_OMAP5430)
+#if defined(IPC_PLATFORM_OMAP5430)
         case 'H':
             hib_enable = atoi(optarg);
             if (hib_enable != 0 && hib_enable != 1) {
@@ -1629,7 +1629,7 @@ int main(int argc, char *argv[])
         case 'v':
             verbosity++;
             break;
-#if defined(SYSLINK_PLATFORM_VAYU)
+#if defined(IPC_PLATFORM_VAYU)
         case 'g':
             printf("GateMP support enabled on host\n");
             gatempEnabled = true;
@@ -1643,7 +1643,7 @@ int main(int argc, char *argv[])
     /* Now parse the operands, which should be in the format:
      * "<multiproc_name> <firmware_file> ..*/
     for (; optind + 1 < argc; optind+=2) {
-        if (syslink_num_cores == MultiProc_MAXPROCESSORS) {
+        if (ipc_num_cores == MultiProc_MAXPROCESSORS) {
             printUsage(argv[0]);
             return (error);
         }
@@ -1652,12 +1652,12 @@ int main(int argc, char *argv[])
             return (error);
         }
 
-        syslink_firmware[syslink_num_cores].proc = argv [optind];
-        syslink_firmware[syslink_num_cores].attachOnly =
+        ipc_firmware[ipc_num_cores].proc = argv [optind];
+        ipc_firmware[ipc_num_cores].attachOnly =
             ((numAttach-- > 0) ? true : false);
-        syslink_firmware[syslink_num_cores].reload = true;
-        syslink_firmware[syslink_num_cores].freeString = false;
-        syslink_firmware[syslink_num_cores++].firmware = argv [optind+1];
+        ipc_firmware[ipc_num_cores].reload = true;
+        ipc_firmware[ipc_num_cores].freeString = false;
+        ipc_firmware[ipc_num_cores++].firmware = argv [optind+1];
     }
 
     /* Validate hib_enable args */
@@ -1667,10 +1667,10 @@ int main(int argc, char *argv[])
         return (error);
     }
 
-    syslink_hib_enable = (Bool)hib_enable;
-    syslink_hib_timeout = hib_timeout;
+    ipc_hib_enable = (Bool)hib_enable;
+    ipc_hib_timeout = hib_timeout;
 
-    /* Init logging for syslink */
+    /* Init logging for ipc */
     if (Osal_initlogging(verbosity) != 0) {
         return -1;
     }
@@ -1683,20 +1683,20 @@ int main(int argc, char *argv[])
     }
 
     /* Get the abs path for all firmware files */
-    for (i = 0; i < syslink_num_cores; i++) {
+    for (i = 0; i < ipc_num_cores; i++) {
         abs_path = calloc(1, PATH_MAX + 1);
         if (abs_path == NULL) {
             return -1;
         }
-        if (NULL == realpath(syslink_firmware[i].firmware, abs_path)) {
+        if (NULL == realpath(ipc_firmware[i].firmware, abs_path)) {
             fprintf (stderr, "invalid path to executable\n");
             return -1;
         }
-        syslink_firmware[i].firmware = abs_path;
+        ipc_firmware[i].firmware = abs_path;
     }
 
     /* allocate the device structure */
-    if (NULL == (dev = calloc(1, sizeof(syslink_dev_t)))) {
+    if (NULL == (dev = calloc(1, sizeof(ipc_dev_t)))) {
         Osal_printf("IPC: calloc() failed");
         return (-1);
     }
@@ -1712,7 +1712,7 @@ int main(int argc, char *argv[])
     }
 
     /* create the dispatch structure */
-    if (NULL == (dev->dpp = syslink_dpp = dispatch_create_channel (channelid, 0))) {
+    if (NULL == (dev->dpp = ipc_dpp = dispatch_create_channel (channelid, 0))) {
         Osal_printf("IPC: dispatch_create() failed");
         return(-1);
     }
@@ -1744,14 +1744,14 @@ int main(int argc, char *argv[])
         return(-1);
     }
 
-    /* init syslink */
-    status = init_ipc(dev, syslink_firmware, FALSE);
+    /* init ipc */
+    status = init_ipc(dev, ipc_firmware, FALSE);
     if (status < 0) {
         Osal_printf("IPC: init failed");
         return(-1);
     }
 
-    /* init the syslink device */
+    /* init the ipc device */
     status = init_devices(dev);
     if (status < 0) {
         Osal_printf("IPC: device init failed");
@@ -1841,15 +1841,15 @@ done:
     if (error < 0) {
         Osal_printf("IPC: thread_pool_destroy returned an error");
     }
-    deinit_ipc(dev, syslink_firmware, FALSE);
+    deinit_ipc(dev, ipc_firmware, FALSE);
     deinit_devices(dev);
     free(dev);
 
     /* Free the abs path of firmware files if necessary */
-    for (i = 0; i < syslink_num_cores; i++) {
-        if ((syslink_firmware[i].freeString) &&
-            (syslink_firmware[i].firmware)) {
-            free(syslink_firmware[i].firmware);
+    for (i = 0; i < ipc_num_cores; i++) {
+        if ((ipc_firmware[i].freeString) &&
+            (ipc_firmware[i].firmware)) {
+            free(ipc_firmware[i].firmware);
         }
     }
 
index 32e1ae3db105da885898f987f2f85fa41fdd6df3..ecaacf53921ecfe88af3b6e88ee60eed6c4c4848 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright (c) 2014, Texas Instruments Incorporated
+#   Copyright (c) 2014-2015, Texas Instruments Incorporated
 #
 #   Redistribution and use in source and binary forms, with or without
 #   modification, are permitted provided that the following conditions
@@ -40,20 +40,21 @@ endef
 NAME = ipc_trace_daemon
 INSTALLDIR = bin
 
-#SYSLINK Product root path
-SYSLINK_ROOT = $(PROJECT_ROOT)/../../../../..
+#IPC Product root path
+IPC_ROOT = $(PROJECT_ROOT)/../../../../..
 
-EXTRA_INCVPATH = $(SYSLINK_ROOT)       \
-                 $(SYSLINK_ROOT)/ti/syslink/inc \
-                 $(IPC_REPO)/qnx/include
+EXTRA_INCVPATH = $(IPC_ROOT)   \
+                 $(IPC_ROOT)/ti/syslink/inc \
+                 $(IPC_REPO)/qnx/include \
+                  $(IPC_ROOT)/ti/syslink/inc/Qnx
 
 CCOPTS+=-g
 CCOPTS+= -O0
 
 LDFLAGS += -M
 
-EXTRA_SRCVPATH += $(SYSLINK_ROOT)/ti/syslink/family/$(SYSLINK_PLATFORM)
-SRCS += SystemCfg_$(SYSLINK_PLATFORM).c IpcTraceDaemon.c
+EXTRA_SRCVPATH += $(IPC_ROOT)/ti/syslink/family/$(IPC_PLATFORM)
+SRCS += SystemCfg_$(IPC_PLATFORM).c IpcTraceDaemon.c
 
 EXTRA_LIBVPATH += $(IPC_REPO)/qnx/src/utils/arm/a.g.le.v7
 LIBS += utils_g
index 664209cefcfcdbf8f438f7ba36345d29369c9670..32b3b0b09902e4bc2476b740337ebd94a47fa4be 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -117,7 +117,7 @@ VAYUDSP_halInit (Ptr * halObj, Ptr params)
         halObject->procId = halParams->procId;
 
         status = VAYUDSP_phyShmemInit (*halObj);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if (status < 0) {
             GT_setFailureReason (curTrace,
                                  GT_4CLASS,
@@ -127,7 +127,7 @@ VAYUDSP_halInit (Ptr * halObj, Ptr params)
             Memory_free (NULL, *halObj, sizeof (VAYUDSP_HalObject));
             *halObj = NULL;
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
     }
 
     GT_1trace(curTrace, GT_LEAVE, "VAYUDSP_halInit", status);
@@ -155,7 +155,7 @@ VAYUDSP_halExit (Ptr halObj)
     GT_assert (curTrace, (halObj != NULL));
 
     status = VAYUDSP_phyShmemExit (halObj);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (status < 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -163,7 +163,7 @@ VAYUDSP_halExit (Ptr halObj)
                              status,
                              "VAYUDSP_phyShmemExit failed!");
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     if (halObj != NULL) {
         /* Free the memory for the HAL object. */
index 7f772622f09b63e9c9daa292529a37780c97ba14..68069cf9ed0ecf7e35061a6b4439c03f045d884b 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
  */
 
 
-#if defined(SYSLINK_BUILD_RTOS)
-#include <xdc/std.h>
-#include <xdc/runtime/Error.h>
-#endif /* #if defined(SYSLINK_BUILD_RTOS) */
-
-#if defined(SYSLINK_BUILD_HLOS)
 #include <ti/syslink/Std.h>
-#endif /* #if defined(SYSLINK_BUILD_HLOS) */
 
 /* OSAL & Utils headers */
 #include <ti/syslink/utils/Trace.h>
index d0de52b4c9ba7934ab8486041457102286e7f203..f976a7277f68b735976216b4b2641b386c10ca53 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
  *  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#if defined(SYSLINK_BUILD_RTOS)
-#include <xdc/std.h>
-#include <xdc/runtime/Error.h>
-#endif /* #if defined(SYSLINK_BUILD_RTOS) */
-
-#if defined(SYSLINK_BUILD_HLOS)
 #include <ti/syslink/Std.h>
-#endif /* #if defined(SYSLINK_BUILD_HLOS) */
 
 /* OSAL & Utils headers */
 #include <ti/syslink/utils/Trace.h>
index 9554562fbd8647e17e3de17b3dd0405e997c3807..97646d16ebb90a115e1d41e18d7928bcd5ac477d 100644 (file)
@@ -11,7 +11,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -132,9 +132,9 @@ static ProcMgr_AddrInfo AddrTable[AddrTable_SIZE];
  *
  *  @brief  VAYUDSPPROC state object variable
  */
-#if !defined(SYSLINK_BUILD_DEBUG)
+#if !defined(IPC_BUILD_DEBUG)
 static
-#endif /* if !defined(SYSLINK_BUILD_DEBUG) */
+#endif /* if !defined(IPC_BUILD_DEBUG) */
 VAYUDSPPROC_ModuleObject VAYUDSPPROC_state =
 {
     .isSetup = FALSE,
@@ -143,8 +143,6 @@ VAYUDSPPROC_ModuleObject VAYUDSPPROC_state =
     .defInstParams.numMemEntries = 0
 };
 
-/* config override specified in SysLinkCfg.c, defined in ProcMgr.c */
-extern String ProcMgr_sysLinkCfgParams;
 
 /* =============================================================================
  * APIs directly called by applications
@@ -173,7 +171,7 @@ VAYUDSPPROC_getConfig (VAYUDSPPROC_Config * cfg)
 
     GT_assert (curTrace, (cfg != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (cfg == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -183,13 +181,13 @@ VAYUDSPPROC_getConfig (VAYUDSPPROC_Config * cfg)
                              "is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         Memory_copy (cfg,
                      &(VAYUDSPPROC_state.defCfg),
                      sizeof (VAYUDSPPROC_Config));
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUDSPPROC_getConfig");
 }
@@ -235,7 +233,7 @@ VAYUDSPPROC_setup (VAYUDSPPROC_Config * cfg)
     /* Create a default gate handle for local module protection. */
     VAYUDSPPROC_state.gateHandle = (IGateProvider_Handle)
                                GateMutex_create ((GateMutex_Params *)NULL, &eb);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUDSPPROC_state.gateHandle == NULL) {
         /*! @retval PROCESSOR_E_FAIL Failed to create GateMutex! */
         status = PROCESSOR_E_FAIL;
@@ -246,7 +244,7 @@ VAYUDSPPROC_setup (VAYUDSPPROC_Config * cfg)
                              "Failed to create GateMutex!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Copy the user provided values into the state object. */
         Memory_copy (&VAYUDSPPROC_state.cfg,
                      cfg,
@@ -257,9 +255,9 @@ VAYUDSPPROC_setup (VAYUDSPPROC_Config * cfg)
                     0,
                     (sizeof (VAYUDSPPROC_Handle) * MultiProc_MAXPROCESSORS));
         VAYUDSPPROC_state.isSetup = TRUE;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_setup", status);
 
@@ -331,7 +329,7 @@ VAYUDSPPROC_Params_init(
 
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (params == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -371,7 +369,7 @@ VAYUDSPPROC_Params_init(
             /* return updated VAYUDSPPROC instance specific parameters */
             Memory_copy(params, &(procObject->params), sizeof(VAYUDSPPROC_Params));
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
 
@@ -401,7 +399,7 @@ VAYUDSPPROC_create (      UInt16                procId,
     GT_assert (curTrace, IS_VALID_PROCID (procId));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (!IS_VALID_PROCID (procId)) {
         /* Not setting status here since this function does not return status.*/
         GT_setFailureReason (curTrace,
@@ -418,10 +416,10 @@ VAYUDSPPROC_create (      UInt16                procId,
                              "params passed is NULL!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUDSPPROC_state.gateHandle);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         /* Check if the Processor already exists for specified procId. */
         if (VAYUDSPPROC_state.procHandles [procId] != NULL) {
             status = PROCESSOR_E_ALREADYEXIST;
@@ -432,7 +430,7 @@ VAYUDSPPROC_create (      UInt16                procId,
                               "Processor already exists for specified procId!");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             /* Allocate memory for the handle */
             handle = (Processor_Object *) Memory_calloc (NULL,
                                                       sizeof (Processor_Object),
@@ -489,7 +487,7 @@ VAYUDSPPROC_create (      UInt16                procId,
                     List_Params_init(&listParams);
                     handle->registeredNotifiers = List_create(&listParams);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (handle->registeredNotifiers == NULL) {
                         /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed */
                         status = PROCESSOR_E_FAIL;
@@ -500,12 +498,12 @@ VAYUDSPPROC_create (      UInt16                procId,
                                              "List_create failed");
                     }
                     else {
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
 
                         handle->notifiersLock =
                                  OsalMutex_create(OsalMutex_Type_Interruptible);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                         if (handle->notifiersLock == NULL) {
                             /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed*/
                             status = PROCESSOR_E_FAIL;
@@ -516,18 +514,18 @@ VAYUDSPPROC_create (      UInt16                procId,
                                                  "OsalMutex_create failed");
                         }
                     }
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
                 }
             }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUDSPPROC_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     if (status < 0) {
         if (handle !=  NULL) {
@@ -576,7 +574,7 @@ VAYUDSPPROC_delete (VAYUDSPPROC_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -597,7 +595,7 @@ VAYUDSPPROC_delete (VAYUDSPPROC_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         handle = (Processor_Object *) (*handlePtr);
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUDSPPROC_state.gateHandle);
@@ -657,9 +655,9 @@ VAYUDSPPROC_delete (VAYUDSPPROC_Handle * handlePtr)
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUDSPPROC_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_delete", status);
 
@@ -688,7 +686,7 @@ VAYUDSPPROC_open (VAYUDSPPROC_Handle * handlePtr, UInt16 procId)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, IS_VALID_PROCID (procId));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid NULL handlePtr specified */
         status = PROCESSOR_E_HANDLE;
@@ -708,7 +706,7 @@ VAYUDSPPROC_open (VAYUDSPPROC_Handle * handlePtr, UInt16 procId)
                              "Invalid procId specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Initialize return parameter handle. */
         *handlePtr = NULL;
 
@@ -725,9 +723,9 @@ VAYUDSPPROC_open (VAYUDSPPROC_Handle * handlePtr, UInt16 procId)
         else {
             *handlePtr = VAYUDSPPROC_state.procHandles [procId];
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_open", status);
 
@@ -753,7 +751,7 @@ VAYUDSPPROC_close (VAYUDSPPROC_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -774,11 +772,11 @@ VAYUDSPPROC_close (VAYUDSPPROC_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Nothing to be done for close. */
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_close", status);
 
@@ -811,8 +809,8 @@ VAYUDSPPROC_attach(
     UInt32                      i = 0;
     UInt32                      index = 0;
     ProcMgr_AddrInfo *          me;
-    SysLink_MemEntry *          entry;
-    SysLink_MemEntry_Block      memBlock;
+    Ipc_MemEntry *              entry;
+    Ipc_MemEntry_Block          memBlock;
     VAYUDSP_HalMmuCtrlArgs_Enable mmuEnableArgs;
     VAYUDSP_HalParams           halParams;
 
@@ -820,7 +818,7 @@ VAYUDSPPROC_attach(
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -856,7 +854,7 @@ VAYUDSPPROC_attach(
                                   &memBlock.numEntries,
                                   procHandle,
                                   procHandle->bootMode);
-        if (status < 0 || memBlock.numEntries > SYSLINK_MAX_MEMENTRIES) {
+        if (status < 0 || memBlock.numEntries > IPC_MAX_MEMENTRIES) {
             /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
             status = PROCESSOR_E_INVALIDARG;
             GT_setFailureReason (curTrace,
@@ -953,7 +951,7 @@ VAYUDSPPROC_attach(
             halParams.procId = procHandle->procId;
             status = VAYUDSP_halInit(&(object->halObject), &halParams);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 GT_setFailureReason(curTrace, GT_4CLASS,
                     "VAYUDSPPROC_attach", status,
@@ -964,7 +962,7 @@ VAYUDSPPROC_attach(
                 if ((procHandle->bootMode == ProcMgr_BootMode_Boot)
                     || (procHandle->bootMode == ProcMgr_BootMode_NoLoad_Pwr)) {
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (status < 0) {
                         GT_setFailureReason(curTrace, GT_4CLASS,
                             "VAYUDSPPROC_attach", status,
@@ -979,7 +977,7 @@ VAYUDSPPROC_attach(
                         status = VAYUDSP_halMmuCtrl(object->halObject,
                             Processor_MmuCtrlCmd_Enable, &mmuEnableArgs);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                         if (status < 0) {
                             GT_setFailureReason(curTrace, GT_4CLASS,
                                 "VAYUDSPPROC_attach", status,
@@ -1005,16 +1003,16 @@ VAYUDSPPROC_attach(
                                         status,
                                     "Reset MMU_Release failed");
                             }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                          }
                     }
 #endif
                 }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             }
 #endif
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
 
@@ -1047,7 +1045,7 @@ VAYUDSPPROC_detach (Processor_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1070,7 +1068,7 @@ VAYUDSPPROC_detach (Processor_Handle handle)
 
             status = VAYUDSP_halResetCtrl(object->halObject,
                 Processor_ResetCtrlCmd_MMU_Reset);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 /*! @retval status */
                 GT_setFailureReason (curTrace,
@@ -1079,12 +1077,12 @@ VAYUDSPPROC_detach (Processor_Handle handle)
                                      status,
                                      "Reset MMU failed");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
             status = VAYUDSP_halMmuCtrl(object->halObject,
                 Processor_MmuCtrlCmd_Disable, NULL);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 GT_setFailureReason(curTrace, GT_4CLASS,
                     "VAYUDSPPROC_detach", status,
@@ -1116,7 +1114,7 @@ VAYUDSPPROC_detach (Processor_Handle handle)
             GT_0trace(curTrace, GT_2CLASS,
                 "VAYUDSPPROC_detach: Slave processor is now in reset");*/
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             if ((tmpStatus < 0) && (status >= 0)) {
                 status = tmpStatus;
                 GT_setFailureReason(curTrace,
@@ -1133,7 +1131,7 @@ VAYUDSPPROC_detach (Processor_Handle handle)
                    "    VAYUDSPPROC_detach: Unmapping memory regions\n");
 
         tmpStatus = VAYUDSP_halExit (object->halObject);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         if ((tmpStatus < 0) && (status >= 0)) {
             status = tmpStatus;
             GT_setFailureReason (curTrace,
@@ -1178,7 +1176,7 @@ VAYUDSPPROC_start (Processor_Handle        handle,
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1198,7 +1196,7 @@ VAYUDSPPROC_start (Processor_Handle        handle,
                                  "Invalid params specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         object = (VAYUDSPPROC_Object *) procHandle->object;
         GT_assert (curTrace, (object != NULL));
         if (    (procHandle->bootMode == ProcMgr_BootMode_Boot)
@@ -1209,7 +1207,7 @@ VAYUDSPPROC_start (Processor_Handle        handle,
             status = VAYUDSP_halBootCtrl (object->halObject,
                                         Processor_BootCtrlCmd_SetEntryPoint,
                                         (Ptr) entryPt);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 GT_setFailureReason (curTrace,
                                      GT_4CLASS,
@@ -1218,7 +1216,7 @@ VAYUDSPPROC_start (Processor_Handle        handle,
                                      "Failed to set slave boot entry point");
             }
             else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
                 status = rproc_dsp_setup(object->halObject,
                                          object->params.memEntries,
                                          object->params.numMemEntries);
@@ -1234,7 +1232,7 @@ VAYUDSPPROC_start (Processor_Handle        handle,
                 if (status >= 0) {
                     status = VAYUDSP_halResetCtrl(object->halObject,
                                                 Processor_ResetCtrlCmd_Release);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                     if (status < 0) {
                         GT_setFailureReason (curTrace,
                                          GT_4CLASS,
@@ -1242,16 +1240,16 @@ VAYUDSPPROC_start (Processor_Handle        handle,
                                          status,
                                          "Failed to release slave from reset");
                     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
                 }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         }
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     if (status >= 0) {
         GT_0trace (curTrace,
@@ -1292,7 +1290,7 @@ VAYUDSPPROC_stop (Processor_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1317,7 +1315,7 @@ VAYUDSPPROC_stop (Processor_Handle handle)
             GT_0trace (curTrace,
                        GT_1CLASS,
                        "    VAYUDSPPROC_stop: Slave is now in reset!\n");
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 GT_setFailureReason (curTrace,
                                      GT_4CLASS,
@@ -1325,12 +1323,12 @@ VAYUDSPPROC_stop (Processor_Handle handle)
                                      status,
                                      "Failed to place slave in reset");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             rproc_dsp_destroy(object->halObject);
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_stop", status);
 
     /*! @retval PROCESSOR_SUCCESS Operation successful */
@@ -1372,7 +1370,7 @@ VAYUDSPPROC_read (Processor_Handle   handle,
     GT_assert (curTrace, (numBytes != NULL));
     GT_assert (curTrace, (buffer   != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1401,11 +1399,11 @@ VAYUDSPPROC_read (Processor_Handle   handle,
                                  "Invalid buffer specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         procPtr8 = (UInt8 *) procAddr ;
         buffer = Memory_copy (buffer, procPtr8, *numBytes);
         GT_assert (curTrace, (buffer != (UInt32) NULL));
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         if (buffer == (UInt32) NULL) {
             /*! @retval PROCESSOR_E_FAIL Failed in memcpy */
             status = PROCESSOR_E_FAIL;
@@ -1417,7 +1415,7 @@ VAYUDSPPROC_read (Processor_Handle   handle,
             *numBytes = 0;
         }
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_read",status);
 
@@ -1465,7 +1463,7 @@ VAYUDSPPROC_write (Processor_Handle handle,
     GT_assert (curTrace, (numBytes != NULL));
     GT_assert (curTrace, (buffer   != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1494,14 +1492,14 @@ VAYUDSPPROC_write (Processor_Handle handle,
                                  "Invalid buffer specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         if (*numBytes != sizeof (UInt32)) {
             procPtr8 = (UInt8 *) procAddr ;
             procAddr = (UInt32) Memory_copy (procPtr8,
                                              buffer,
                                              *numBytes);
             GT_assert (curTrace, (procAddr != (UInt32) NULL));
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (procAddr == (UInt32) NULL) {
                 /*! @retval PROCESSOR_E_FAIL Failed in Memory_copy */
                 status = PROCESSOR_E_FAIL;
@@ -1512,7 +1510,7 @@ VAYUDSPPROC_write (Processor_Handle handle,
                                      "Failed in Memory_copy");
                 *numBytes = 0;
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         }
         else  {
              /* For 4 bytes, directly write as a UInt32 */
@@ -1526,9 +1524,9 @@ VAYUDSPPROC_write (Processor_Handle handle,
                              |   ((UInt32) temp8_1));
             *((UInt32*) procAddr) = temp;
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_write",status);
 
@@ -1559,7 +1557,7 @@ VAYUDSPPROC_control (Processor_Handle handle, Int32 cmd, Ptr arg)
     GT_assert (curTrace, (handle   != NULL));
     /* cmd and arg can be 0/NULL, so cannot check for validity. */
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1570,14 +1568,14 @@ VAYUDSPPROC_control (Processor_Handle handle, Int32 cmd, Ptr arg)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* No control operations currently implemented. */
         /*! @retval PROCESSOR_E_NOTSUPPORTED No control operations are supported
                                              for this device. */
         status = PROCESSOR_E_NOTSUPPORTED;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPROC_control",status);
 
     /*! @retval PROCESSOR_SUCCESS Operation successful */
@@ -1615,7 +1613,7 @@ VAYUDSPPROC_translate(
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (dstAddr != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1659,7 +1657,7 @@ VAYUDSPPROC_translate(
                 "VAYUDSPPROC_translate", status,
                 "srcAddr not found in slave address space");
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE,
@@ -1702,7 +1700,7 @@ VAYUDSPPROC_map(
     GT_assert (curTrace, (sglist != NULL));
     GT_assert (curTrace, (nSegs > 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1781,7 +1779,7 @@ VAYUDSPPROC_map(
                 }
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE, "VAYUDSPPROC_map", status);
@@ -1822,7 +1820,7 @@ VAYUDSPPROC_unmap(
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (size   != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1885,7 +1883,7 @@ VAYUDSPPROC_unmap(
 
                     status = VAYUDSP_halMmuCtrl(object->halObject,
                         Processor_MmuCtrlCmd_DeleteEntry, &deleteEntryArgs);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (status < 0) {
                         GT_setFailureReason(curTrace, GT_4CLASS,
                             "VAYUDSPPROC_unmap", status,
@@ -1895,7 +1893,7 @@ VAYUDSPPROC_unmap(
                 }
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE, "VAYUDSPPROC_unmap", status);
index a801bfafa987233c7a386f027cc2a70176355545..aeb71597fac9a1dce9338776674931d8181c5fcf 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
 
 
 /* Standard headers */
-#if defined(SYSLINK_BUILD_RTOS)
-#include <xdc/std.h>
-#include <string.h>
-#include <xdc/runtime/Error.h>
-#include <xdc/runtime/Memory.h>
-#include <xdc/runtime/System.h>
-#include <xdc/runtime/IGateProvider.h>
-#include <ti/sysbios/gates/GateMutex.h>
-#include <ti/syslink/utils/_Memory.h>
-#include <ti/syslink/inc/VAYUClock.h>
-#endif /* #if defined(SYSLINK_BUILD_RTOS) */
-
-#if defined(SYSLINK_BUILD_HLOS)
 #include <ti/syslink/Std.h>
 /* OSAL & Utils headers */
 #include <ti/syslink/utils/String.h>
 #include <ti/syslink/utils/GateMutex.h>
 #include <ti/syslink/utils/Memory.h>
 #include <_MultiProc.h>
-#if defined(__KERNEL__)
-#include <linux/string.h>
-#else
 #include <string.h>
-#endif
-#if defined (SYSLINK_BUILDOS_LINUX)
-#include <ti/syslink/inc/knl/Linux/LinuxClock.h>
-#endif /* #if defined(SYSLINK_BUILDOS_LINUX) */
-#endif /* #if defined(SYSLINK_BUILD_HLOS) */
+
 #include <ti/syslink/utils/Trace.h>
 #include <Bitops.h>
 
@@ -195,9 +175,9 @@ typedef struct VAYUDSPPWR_Object_tag VAYUDSPPWR_Object;
  *
  *  @brief  VAYUDSPPWR state object variable
  */
-#if !defined(SYSLINK_BUILD_DEBUG)
+#if !defined(IPC_BUILD_DEBUG)
 static
-#endif /* if !defined(SYSLINK_BUILD_DEBUG) */
+#endif /* if !defined(IPC_BUILD_DEBUG) */
 VAYUDSPPWR_ModuleObject VAYUDSPPWR_state =
 {
     .isSetup = FALSE,
@@ -234,7 +214,7 @@ VAYUDSPPWR_getConfig (VAYUDSPPWR_Config * cfg)
 
     GT_assert (curTrace, (cfg != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (cfg == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -244,13 +224,13 @@ VAYUDSPPWR_getConfig (VAYUDSPPWR_Config * cfg)
                              "is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         memcpy (cfg,
                      &VAYUDSPPWR_state.defCfg,
                      sizeof (VAYUDSPPWR_Config));
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUDSPPWR_getConfig");
 }
@@ -295,7 +275,7 @@ VAYUDSPPWR_setup (VAYUDSPPWR_Config * cfg)
     /* Create a default gate handle for local module protection. */
     VAYUDSPPWR_state.gateHandle = (IGateProvider_Handle)
                              GateMutex_create ((GateMutex_Params*)NULL, &eb);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUDSPPWR_state.gateHandle == NULL) {
         /*! @retval PWRMGR_E_FAIL Failed to create GateMutex! */
         status = PWRMGR_E_FAIL;
@@ -306,7 +286,7 @@ VAYUDSPPWR_setup (VAYUDSPPWR_Config * cfg)
                              "Failed to create GateMutex!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Copy the user provided values into the state object. */
         Memory_copy (&VAYUDSPPWR_state.cfg,
                      cfg,
@@ -317,9 +297,9 @@ VAYUDSPPWR_setup (VAYUDSPPWR_Config * cfg)
                     0,
                     (sizeof (VAYUDSPPWR_Handle) * MultiProc_MAXPROCESSORS));
         VAYUDSPPWR_state.isSetup = TRUE;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_setup", status);
 
@@ -383,7 +363,7 @@ VAYUDSPPWR_Params_init (VAYUDSPPWR_Params * params)
 
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (params == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -393,12 +373,12 @@ VAYUDSPPWR_Params_init (VAYUDSPPWR_Params * params)
                              "passed is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Return updated VAYUDSPPWR instance specific parameters. */
         params->reserved = 0;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUDSPPWR_Params_init");
 }
@@ -424,7 +404,7 @@ VAYUDSPPWR_create (      UInt16               procId,
     GT_assert (curTrace, IS_VALID_PROCID (procId));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (!IS_VALID_PROCID (procId)) {
         status = PWRMGR_E_INVALIDARG;
         GT_setFailureReason (curTrace,
@@ -442,10 +422,10 @@ VAYUDSPPWR_create (      UInt16               procId,
                              "params passed is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUDSPPWR_state.gateHandle);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         /* Check if the PwrMgr already exists for specified procId. */
         if (VAYUDSPPWR_state.pwrHandles [procId] != NULL) {
             status = PWRMGR_E_ALREADYEXIST;
@@ -456,7 +436,7 @@ VAYUDSPPWR_create (      UInt16               procId,
                                  "PwrMgr already exists for specified procId!");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             /* Allocate memory for the handle */
             handle = (PwrMgr_Object *) Memory_calloc (NULL,
                                                       sizeof (PwrMgr_Object),
@@ -492,27 +472,19 @@ VAYUDSPPWR_create (      UInt16               procId,
                                         "Memory allocation failed for handle!");
                 }
                 else {
-#if defined (SYSLINK_BUILDOS_LINUX)
-                    ((VAYUDSPPWR_Object *)(handle->object))->clockHandle
-                                       = (ClockOps_Handle) LinuxClock_create();
-#endif/* #if defined (SYSLINK_BUILDOS_LINUX) */
-#if defined (SYSLINK_BUILD_RTOS)
-                    ((VAYUDSPPWR_Object *)(handle->object))->clockHandle
-                                       = (ClockOps_Handle) VAYUCLOCK_create();
-#endif/* #if defined (SYSLINK_BUILD_RTOS) */
                     handle->procId = procId;
                     VAYUDSPPWR_state.pwrHandles [procId] =
                                                 (VAYUDSPPWR_Handle) handle;
                 }
             }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUDSPPWR_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     if (status < 0) {
         if (handle !=  NULL) {
@@ -555,7 +527,7 @@ VAYUDSPPWR_delete (VAYUDSPPWR_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PWRMGR_E_INVALIDARG Invalid NULL handlePtr specified*/
         status = PWRMGR_E_INVALIDARG;
@@ -575,7 +547,7 @@ VAYUDSPPWR_delete (VAYUDSPPWR_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         handle = (PwrMgr_Object *) (*handlePtr);
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUDSPPWR_state.gateHandle);
@@ -588,12 +560,6 @@ VAYUDSPPWR_delete (VAYUDSPPWR_Handle * handlePtr)
         /* Free memory used for the VAYUDSPPWR object. */
         if (handle->object != NULL) {
             /* Free memory used for the clock handle */
-#if defined (SYSLINK_BUILDOS_LINUX)
-            LinuxClock_delete(((VAYUDSPPWR_Object *)(handle->object))->clockHandle);
-#endif /* #if defined (SYSLINK_BUILDOS_LINUX) */
-#if defined (SYSLINK_BUILD_RTOS)
-            VAYUCLOCK_delete(((VAYUDSPPWR_Object *)(handle->object))->clockHandle);
-#endif /* #if defined (SYSLINK_BUILD_RTOS) */
             Memory_free (NULL,
                          object,
                          sizeof (VAYUDSPPWR_Object));
@@ -606,9 +572,9 @@ VAYUDSPPWR_delete (VAYUDSPPWR_Handle * handlePtr)
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUDSPPWR_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_delete", status);
 
@@ -637,7 +603,7 @@ VAYUDSPPWR_open (VAYUDSPPWR_Handle * handlePtr, UInt16 procId)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, IS_VALID_PROCID (procId));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PWRMGR_E_HANDLE Invalid NULL handlePtr specified */
         status = PWRMGR_E_HANDLE;
@@ -657,7 +623,7 @@ VAYUDSPPWR_open (VAYUDSPPWR_Handle * handlePtr, UInt16 procId)
                              "Invalid procId specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Initialize return parameter handle. */
         *handlePtr = NULL;
 
@@ -674,9 +640,9 @@ VAYUDSPPWR_open (VAYUDSPPWR_Handle * handlePtr, UInt16 procId)
         else {
             *handlePtr = VAYUDSPPWR_state.pwrHandles [procId];
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_open", status);
 
@@ -702,7 +668,7 @@ VAYUDSPPWR_close (VAYUDSPPWR_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PWRMGR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -723,12 +689,12 @@ VAYUDSPPWR_close (VAYUDSPPWR_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Nothing to be done for close. */
         *handlePtr = NULL;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_close", status);
 
@@ -763,7 +729,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PWRMGR_E_HANDLE Invalid argument */
         status = PWRMGR_E_HANDLE;
@@ -774,7 +740,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         object = (VAYUDSPPWR_Object *) pwrMgrHandle->object;
         GT_assert (curTrace, (object != NULL));
         /* Map and get the virtual address for system control module */
@@ -782,7 +748,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
         mapInfo.size     = PRCM_SIZE;
         mapInfo.isCached = FALSE;
         status = Memory_map (&mapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         if (status < 0) {
             status = VAYUDSPPWR_E_FAIL;
             GT_setFailureReason (curTrace,
@@ -792,7 +758,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                                  "Failure in mapping prcm module");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             object->prcmVA = mapInfo.dst;
 
             /* Map and get the virtual address for system control module */
@@ -800,7 +766,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
             mapInfo.size     = CTRL_MODULE_SIZE;
             mapInfo.isCached = FALSE;
             status = Memory_map (&mapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 status = VAYUDSPPWR_E_FAIL;
                 GT_setFailureReason (curTrace,
@@ -810,7 +776,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                                      "Failure in mapping prcm module");
             }
             else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
                 object->controlVA = mapInfo.dst;
 
                 /* Map and get the virtual address for system l2 ram */
@@ -818,7 +784,7 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                 mapInfo.size     = GEM_L2RAM_SIZE;
                 mapInfo.isCached = FALSE;
                 status = Memory_map (&mapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 if (status < 0) {
                     status = VAYUDSPPWR_E_FAIL;
                     GT_setFailureReason (curTrace,
@@ -828,14 +794,14 @@ VAYUDSPPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                                          "Failure in mapping prcm module");
                 }
                 else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
                 object->l2baseVA = mapInfo.dst;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 }
             }
         }
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
     /*! @retval PWRMGR_SUCCESS Operation successful */
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_attach", status);
     return (status);
@@ -866,7 +832,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PWRMGR_E_HANDLE Invalid argument */
         status = PWRMGR_E_HANDLE;
@@ -877,7 +843,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         object = (VAYUDSPPWR_Object *) pwrMgrHandle->object;
         GT_assert (curTrace, (object != NULL));
 
@@ -888,7 +854,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
             unmapInfo.isCached = FALSE;
             if (unmapInfo.addr != 0) {
                 status = Memory_unmap (&unmapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 if (status < 0) {
                     status = VAYUDSPPWR_E_FAIL;
                     GT_setFailureReason (curTrace,
@@ -897,7 +863,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
                                          status,
                                          "Failure in mapping prcm module");
                 }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             }
         }
         if (object->prcmVA != 0x0) {
@@ -907,7 +873,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
             unmapInfo.isCached = FALSE;
             if (unmapInfo.addr != 0) {
                 status = Memory_unmap (&unmapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 if (status < 0) {
                     status = VAYUDSPPWR_E_FAIL;
                     GT_setFailureReason (curTrace,
@@ -916,7 +882,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
                                          status,
                                          "Failure in mapping prcm module");
                 }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             }
         }
         if (object->l2baseVA != 0x0) {
@@ -926,7 +892,7 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
             unmapInfo.isCached = FALSE;
             if (unmapInfo.addr != 0) {
                 status = Memory_unmap (&unmapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 if (status < 0) {
                     status = VAYUDSPPWR_E_FAIL;
                     GT_setFailureReason (curTrace,
@@ -935,12 +901,12 @@ VAYUDSPPWR_detach (PwrMgr_Handle handle)
                                          status,
                                          "Failure in mapping prcm module");
                 }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_detach", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
@@ -976,7 +942,7 @@ VAYUDSPPWR_on (PwrMgr_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PWRMGR_E_HANDLE Invalid argument */
         status = PWRMGR_E_HANDLE;
@@ -987,14 +953,14 @@ VAYUDSPPWR_on (PwrMgr_Handle handle)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         object = (VAYUDSPPWR_Object *) pwrMgrHandle->object;
         GT_assert (curTrace, (object != NULL));
 
         /* Enable spinlocks, mailbox and timers before powering on dsp */
         object->dspSpinlockHandle = ClockOps_get(object->clockHandle, "spinbox_ick");
 
-        /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+        /* Do not put this check under IPC_BUILD_OPTIMIZE */
         GT_assert (curTrace, (object->dspSpinlockHandle != NULL));
         status = ClockOps_enable(object->clockHandle, object->dspSpinlockHandle);
         if (status < 0) {
@@ -1007,7 +973,7 @@ VAYUDSPPWR_on (PwrMgr_Handle handle)
                                  "ClockOps_enable failed");
         }
         object->dspMailboxHandle = ClockOps_get(object->clockHandle, "mailbox_ick");
-        /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+        /* Do not put this check under IPC_BUILD_OPTIMIZE */
         GT_assert (curTrace, (object->dspMailboxHandle != NULL));
         status = ClockOps_enable(object->clockHandle, object->dspMailboxHandle);
         GT_assert (curTrace, (status >= 0));
@@ -1017,13 +983,13 @@ VAYUDSPPWR_on (PwrMgr_Handle handle)
          */
 
         object->dspTimerIclkHandle = ClockOps_get(object->clockHandle, "gpt4_ick");
-        /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+        /* Do not put this check under IPC_BUILD_OPTIMIZE */
         GT_assert (curTrace, (object->dspTimerIclkHandle != NULL));
         status = ClockOps_enable(object->clockHandle, object->dspTimerIclkHandle);
         GT_assert (curTrace, (status >= 0));
 
         object->dspTimerFclkHandle = ClockOps_get(object->clockHandle, "gpt4_fck");
-        /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+        /* Do not put this check under IPC_BUILD_OPTIMIZE */
         GT_assert (curTrace, (object->dspTimerFclkHandle != NULL));
         status = ClockOps_enable(object->clockHandle, object->dspTimerFclkHandle);
         GT_assert (curTrace, (status >= 0));
@@ -1031,13 +997,13 @@ VAYUDSPPWR_on (PwrMgr_Handle handle)
         /* Enable Dsp MMU clocks */
 
         object->dspMmuCfgClkHandle = ClockOps_get(object->clockHandle, "mmu_cfg_ick");
-        /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+        /* Do not put this check under IPC_BUILD_OPTIMIZE */
         GT_assert (curTrace, (object->dspMmuCfgClkHandle != NULL));
         status = ClockOps_enable(object->clockHandle, object->dspMmuCfgClkHandle);
         GT_assert (curTrace, (status >= 0));
 
         object->dspMmuClkHandle = ClockOps_get(object->clockHandle, "mmu_ick");
-        /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+        /* Do not put this check under IPC_BUILD_OPTIMIZE */
         GT_assert (curTrace, (object->dspMmuClkHandle != NULL));
         status = ClockOps_enable(object->clockHandle, object->dspMmuClkHandle);
         GT_assert (curTrace, (status >= 0));
@@ -1047,12 +1013,12 @@ VAYUDSPPWR_on (PwrMgr_Handle handle)
         status = ClockOps_enable(object->clockHandle, object->dspClkHandle);
         GT_assert (curTrace, (status >= 0));
 
-               /* Warm Reset to  access Internal RAM of DSP - to access internal RAM */
-//             REG((object->prcmVA) + RM_ACTIVE_RSTCTRL) = 0x01;
+        /* Warm Reset to  access Internal RAM of DSP - to access internal RAM */
+//      REG((object->prcmVA) + RM_ACTIVE_RSTCTRL) = 0x01;
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_on", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
 #endif /*#if !defined (NETRA_SIMULATOR)*/
@@ -1083,7 +1049,7 @@ VAYUDSPPWR_off (PwrMgr_Handle handle, Bool force)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handle == NULL) {
         /*! @retval PWRMGR_E_HANDLE Invalid argument */
         status = PWRMGR_E_HANDLE;
@@ -1094,7 +1060,7 @@ VAYUDSPPWR_off (PwrMgr_Handle handle, Bool force)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         object = (VAYUDSPPWR_Object *) pwrMgrHandle->object;
         GT_assert (curTrace, (object != NULL));
 
@@ -1140,9 +1106,9 @@ VAYUDSPPWR_off (PwrMgr_Handle handle, Bool force)
             ClockOps_put(object->clockHandle, object->dspSpinlockHandle);
         }
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUDSPPWR_off", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
     return (status);
index 2b6199bf4491900203263d05f656f3b6d0c0a39a..ac41e3af5e2946517fdb6dc0e85d1f109e2f730d 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -117,7 +117,7 @@ VAYUIPU_halInit (Ptr * halObj, Ptr params)
         halObject->procId = halParams->procId;
 
         status = VAYUIPU_phyShmemInit (*halObj);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if (status < 0) {
             GT_setFailureReason (curTrace,
                                  GT_4CLASS,
@@ -127,7 +127,7 @@ VAYUIPU_halInit (Ptr * halObj, Ptr params)
             Memory_free (NULL, *halObj, sizeof (VAYUIPU_HalObject));
             *halObj = NULL;
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
     }
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPU_halInit", status);
@@ -155,7 +155,7 @@ VAYUIPU_halExit (Ptr halObj)
     GT_assert (curTrace, (halObj != NULL));
 
     status = VAYUIPU_phyShmemExit (halObj);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (status < 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -163,7 +163,7 @@ VAYUIPU_halExit (Ptr halObj)
                              status,
                              "VAYUIPU_phyShmemExit failed!");
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     if (halObj != NULL) {
         /* Free the memory for the HAL object. */
index f9bf778f5b0c450f1c650417e4db80cb701c2770..66fd2a292bdb66734b6468f2c575ec31bfaa93b8 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
  */
 
 
-#if defined(SYSLINK_BUILD_RTOS)
-#include <xdc/std.h>
-#include <xdc/runtime/Error.h>
-#endif /* #if defined(SYSLINK_BUILD_RTOS) */
-
-#if defined(SYSLINK_BUILD_HLOS)
 #include <ti/syslink/Std.h>
-#endif /* #if defined(SYSLINK_BUILD_HLOS) */
 
 /* OSAL & Utils headers */
 #include <ti/syslink/utils/Trace.h>
index d29fe98d339091b75d40d0bd5864f49aa88cde9e..b4ed0ae876bac5dc2bc4a4ad5add5999679a5580 100644 (file)
@@ -6,7 +6,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -81,7 +81,7 @@ Void VAYUIPUMMU_enable(PwrMgr_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if (handle == NULL) {
             /*! @retval PWRMGR_E_HANDLE Invalid argument */
             GT_setFailureReason (curTrace,
@@ -91,7 +91,7 @@ Void VAYUIPUMMU_enable(PwrMgr_Handle handle)
                                  "Invalid handle specified");
         }
         else {
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
             object = (VAYUIPUPWR_Object *) pwrMgrHandle->object;
             GT_assert (curTrace, (object != NULL));
 #if 0 // TODO: move enabling of MMU to this phase?
@@ -107,10 +107,10 @@ Void VAYUIPUMMU_enable(PwrMgr_Handle handle)
             /* M4_0 and M4_1 should be taken out of reset after this
                and that is done is reset code*/
 #endif
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
 
     }
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
     GT_0trace (curTrace, GT_LEAVE, "VAYUIPUMMU_enable");
 }
 
@@ -124,7 +124,7 @@ Void VAYUIPUMMU_disable(PwrMgr_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if (handle == NULL) {
             /*! @retval PWRMGR_E_HANDLE Invalid argument */
             GT_setFailureReason (curTrace,
@@ -134,7 +134,7 @@ Void VAYUIPUMMU_disable(PwrMgr_Handle handle)
                                  "Invalid handle specified");
         }
         else {
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
             object = (VAYUIPUPWR_Object *) pwrMgrHandle->object;
             GT_assert (curTrace, (object != NULL));
 #if 0 // TODO: Move disabling of MMU to here?
@@ -147,10 +147,10 @@ Void VAYUIPUMMU_disable(PwrMgr_Handle handle)
 
             /* DO NOT Disable the Ipu Logic*/
 #endif
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
 
     }
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
     GT_0trace (curTrace, GT_LEAVE, "VAYUIPUMMU_disable");
 }
 
index 46d6747c3dbff254d2783fb541d5172b833b906e..07bf6b2a3c9e6bf2778bdc2ad895e37dc8af3a72 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -134,9 +134,9 @@ typedef struct VAYUIPUPWR_ModuleObject_tag {
  *
  *  @brief  VAYUIPUPWR state object variable
  */
-#if !defined(SYSLINK_BUILD_DEBUG)
+#if !defined(IPC_BUILD_DEBUG)
 static
-#endif /* if !defined(SYSLINK_BUILD_DEBUG) */
+#endif /* if !defined(IPC_BUILD_DEBUG) */
 VAYUIPUPWR_ModuleObject VAYUIPUPWR_state =
 {
     .isSetup = FALSE,
@@ -174,7 +174,7 @@ VAYUIPUPWR_getConfig (VAYUIPUPWR_Config * cfg)
 
     GT_assert (curTrace, (cfg != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (cfg == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -184,7 +184,7 @@ VAYUIPUPWR_getConfig (VAYUIPUPWR_Config * cfg)
                              "is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
         if (VAYUIPUPWR_state.refCount == 0) {
             memcpy (cfg,
@@ -196,9 +196,9 @@ VAYUIPUPWR_getConfig (VAYUIPUPWR_Config * cfg)
                          &VAYUIPUPWR_state.cfg,
                          sizeof (VAYUIPUPWR_Config));
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUIPUPWR_getConfig");
 }
@@ -231,12 +231,7 @@ VAYUIPUPWR_setup (VAYUIPUPWR_Config * cfg)
     IArg                     key;
     Error_Block              eb;
 
-#if defined(SYSLINK_BUILD_RTOS)
-    Error_init(&eb);
-#endif /* #if defined(SYSLINK_BUILD_RTOS) */
-#if defined(SYSLINK_BUILD_HLOS)
     eb = 0;
-#endif /* #if defined(SYSLINK_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_ENTER, "VAYUIPUPWR_setup", cfg);
     if (cfg == NULL) {
@@ -310,7 +305,7 @@ VAYUIPUPWR_destroy (Void)
 
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         status = VAYUIPUPWR_E_INVALIDSTATE;
         GT_setFailureReason (curTrace,
@@ -320,7 +315,7 @@ VAYUIPUPWR_destroy (Void)
                              "Module was not initialized!");
     }
     else {
-#endif /* !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         key = Gate_enterSystem();
         VAYUIPUPWR_state.refCount--;
         Gate_leaveSystem(key);
@@ -351,9 +346,9 @@ VAYUIPUPWR_destroy (Void)
             }
             VAYUIPUPWR_state.isSetup = FALSE;
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_destroy", status);
 
     /*! @retval PWRMGR_SUCCESS Operation successful */
@@ -375,7 +370,7 @@ VAYUIPUPWR_Params_init (VAYUIPUPWR_Params * params)
     GT_assert (curTrace, (params != NULL));
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -392,11 +387,11 @@ VAYUIPUPWR_Params_init (VAYUIPUPWR_Params * params)
                              "passed is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         params->reserved = 0;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUIPUPWR_Params_init");
 }
@@ -423,7 +418,7 @@ VAYUIPUPWR_create (      UInt16               procId,
     GT_assert (curTrace, (params != NULL));
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -447,10 +442,10 @@ VAYUIPUPWR_create (      UInt16               procId,
                              "params passed is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUIPUPWR_state.gateHandle);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         /* Check if the PwrMgr already exists for specified procId. */
         if (VAYUIPUPWR_state.pwrHandles [procId] != NULL) {
             status = PWRMGR_E_ALREADYEXIST;
@@ -461,7 +456,7 @@ VAYUIPUPWR_create (      UInt16               procId,
                                  "PwrMgr already exists for specified procId!");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             /* Allocate memory for the handle */
             handle = (PwrMgr_Object *) Memory_calloc (NULL,
                                                       sizeof (PwrMgr_Object),
@@ -496,27 +491,19 @@ VAYUIPUPWR_create (      UInt16               procId,
                                         "Memory allocation failed for handle!");
                 }
                 else {
-#if defined (SYSLINK_BUILDOS_LINUX)
-                    ((VAYUIPUPWR_Object *)handle->object)->clockHandle
-                                       = (ClockOps_Handle) LinuxClock_create();
-#endif/* #if defined (SYSLINK_BUILDOS_LINUX) */
-#if defined (SYSLINK_BUILD_RTOS)
-                    ((VAYUIPUPWR_Object *)handle->object)->clockHandle
-                                       = (ClockOps_Handle) VAYUCLOCK_create();
-#endif/* #if defined (SYSLINK_BUILD_RTOS) */
                     handle->procId = procId;
                     VAYUIPUPWR_state.pwrHandles [procId] =
                                                 (VAYUIPUPWR_Handle) handle;
                 }
             }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUIPUPWR_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     if (status < 0) {
         if (handle !=  NULL) {
@@ -560,7 +547,7 @@ VAYUIPUPWR_delete (VAYUIPUPWR_Handle * handlePtr)
 
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -587,7 +574,7 @@ VAYUIPUPWR_delete (VAYUIPUPWR_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         handle = (PwrMgr_Object *) (*handlePtr);
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUIPUPWR_state.gateHandle);
@@ -600,12 +587,6 @@ VAYUIPUPWR_delete (VAYUIPUPWR_Handle * handlePtr)
         /* Free memory used for the VAYUIPUPWR object. */
         if (handle->object != NULL) {
             /* Free memory used for the clock handle */
-#if defined (SYSLINK_BUILDOS_LINUX)
-            LinuxClock_delete(((VAYUIPUPWR_Object *)handle->object)->clockHandle);
-#endif /* #if defined (SYSLINK_BUILDOS_LINUX) */
-#if defined (SYSLINK_BUILD_RTOS)
-            VAYUCLOCK_delete(((VAYUIPUPWR_Object *)handle->object)->clockHandle);
-#endif /* #if defined (SYSLINK_BUILD_RTOS) */
             Memory_free (NULL,
                          object,
                          sizeof (VAYUIPUPWR_Object));
@@ -618,9 +599,9 @@ VAYUIPUPWR_delete (VAYUIPUPWR_Handle * handlePtr)
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUIPUPWR_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_delete", status);
 
@@ -650,7 +631,7 @@ VAYUIPUPWR_open (VAYUIPUPWR_Handle * handlePtr, UInt16 procId)
 
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -677,7 +658,7 @@ VAYUIPUPWR_open (VAYUIPUPWR_Handle * handlePtr, UInt16 procId)
                              "Invalid procId specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Initialize return parameter handle. */
         *handlePtr = NULL;
 
@@ -694,9 +675,9 @@ VAYUIPUPWR_open (VAYUIPUPWR_Handle * handlePtr, UInt16 procId)
         else {
             *handlePtr = VAYUIPUPWR_state.pwrHandles [procId];
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_open", status);
 
@@ -722,7 +703,7 @@ VAYUIPUPWR_close (VAYUIPUPWR_Handle * handlePtr)
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -750,12 +731,12 @@ VAYUIPUPWR_close (VAYUIPUPWR_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
         /* Nothing to be done for close. */
         *handlePtr = NULL;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_close", status);
 
@@ -792,7 +773,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
     GT_assert (curTrace, (params != NULL));
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -810,7 +791,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
         object = (VAYUIPUPWR_Object *) pwrMgrHandle->object;
         GT_assert (curTrace, (object != NULL));
         /* Map and get the virtual address for PRCM registers */
@@ -823,7 +804,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
         mapInfo.size     = PRCM_SIZE;
         mapInfo.isCached = FALSE;
         status = Memory_map (&mapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         if (status < 0) {
             status = VAYUIPUPWR_E_FAIL;
             GT_setFailureReason (curTrace,
@@ -833,7 +814,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                                  "Failure in mapping prcm module");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
             object->prcmVA = mapInfo.dst;
             /* Map and get the virtual address for MMU registers */
             if (handle->procId == ipu1ProcId) {
@@ -845,7 +826,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
             mapInfo.size     = MMU_SIZE;
             mapInfo.isCached = FALSE;
             status = Memory_map (&mapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 status = VAYUIPUPWR_E_FAIL;
                 GT_setFailureReason (curTrace,
@@ -855,7 +836,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                                      "Failure in mapping ipummu module");
             }
             else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
                 object->ipuMmuVA = mapInfo.dst;
                 /* Map and get the virtual address for the control module */
                 if (handle->procId == ipu1ProcId) {
@@ -867,7 +848,7 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                 mapInfo.size     = CM_SIZE;
                 mapInfo.isCached = FALSE;
                 status = Memory_map (&mapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 if (status < 0) {
                     status = VAYUIPUPWR_E_FAIL;
                     GT_setFailureReason (curTrace,
@@ -877,14 +858,14 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
                                          "Failure in mapping ipubase module");
                 }
                 else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
                     object->ipubaseVA = mapInfo.dst;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
                 }
             }
         }
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_attach", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
@@ -912,7 +893,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -930,7 +911,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
         object = (VAYUIPUPWR_Object *) pwrMgrHandle->object;
         GT_assert (curTrace, (object != NULL));
 
@@ -940,7 +921,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
         unmapInfo.isCached = FALSE;
         if (unmapInfo.addr != 0) {
             status = Memory_unmap (&unmapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 status = VAYUIPUPWR_E_FAIL;
                 GT_setFailureReason (curTrace,
@@ -949,7 +930,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
                                      status,
                                      "Failure in mapping prcm module");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
         }
         /* Unmap the virtual address for mmu base*/
         unmapInfo.addr = object->ipuMmuVA;
@@ -957,7 +938,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
         unmapInfo.isCached = FALSE;
         if (unmapInfo.addr != 0) {
             status = Memory_unmap (&unmapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 status = VAYUIPUPWR_E_FAIL;
                 GT_setFailureReason (curTrace,
@@ -966,7 +947,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
                                      status,
                                      "Failure in mapping ipuMmu module");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
         }
 
         /* Unmap the virtual address for ipu control base */
@@ -975,7 +956,7 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
         unmapInfo.isCached = FALSE;
         if (unmapInfo.addr != 0) {
             status = Memory_unmap (&unmapInfo);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (status < 0) {
                 status = VAYUIPUPWR_E_FAIL;
                 GT_setFailureReason (curTrace,
@@ -984,11 +965,11 @@ VAYUIPUPWR_detach (PwrMgr_Handle handle)
                                      status,
                                      "Failure in mapping ipuMmu module");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_detach", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
@@ -1022,7 +1003,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -1031,7 +1012,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
                              "Module was not initialized!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* This sets the refCount variable is not initialized, upper 16 bits is
          * written with module Id to ensure correctness of refCount variable.
          */
@@ -1043,7 +1024,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
         }
         else {
             Gate_leaveSystem(key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)&& defined(SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE)&& defined(IPC_BUILD_HLOS)
             if (handle == NULL) {
                 /*! @retval PWRMGR_E_HANDLE Invalid argument */
                 status = PWRMGR_E_HANDLE;
@@ -1054,7 +1035,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
                                      "Invalid handle specified");
             }
             else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
                  object = (VAYUIPUPWR_Object *) pwrMgrHandle->object;
 
                  GT_assert (curTrace, (object != NULL));
@@ -1062,7 +1043,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
 
                  VAYUIPUPWR_state.ipuSpinlockHandle
                             = ClockOps_get(object->clockHandle, "spinbox_ick");
-                     /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+                     /* Do not put this check under IPC_BUILD_OPTIMIZE */
                  GT_assert (curTrace,
                                (VAYUIPUPWR_state.ipuSpinlockHandle != NULL));
                  status = ClockOps_enable(object->clockHandle,
@@ -1071,7 +1052,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
 
                  VAYUIPUPWR_state.ipuMailboxHandle
                             = ClockOps_get(object->clockHandle, "mailbox_ick");
-                             /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+                             /* Do not put this check under IPC_BUILD_OPTIMIZE */
                  GT_assert (curTrace, (VAYUIPUPWR_state.ipuMailboxHandle != NULL));
                  status = ClockOps_enable(object->clockHandle,
                                           VAYUIPUPWR_state.ipuMailboxHandle);
@@ -1080,7 +1061,7 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
                  /* poer on ipu */
                  VAYUIPUPWR_state.ipuClkHandle
                              = ClockOps_get(object->clockHandle, "ipu_ick");
-                 /* Do not put this check under SYSLINK_BUILD_OPTIMIZE */
+                 /* Do not put this check under IPC_BUILD_OPTIMIZE */
                  if (VAYUIPUPWR_state.ipuClkHandle == NULL) {
                          /*! @retval PWRMGR_E_HANDLE Invalid argument */
                          status = PWRMGR_E_HANDLE;
@@ -1097,13 +1078,13 @@ VAYUIPUPWR_on (PwrMgr_Handle handle)
                      /* Complete the remaining power sequence here*/
                      VAYUIPUMMU_enable(pwrMgrHandle);
                  }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS)
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS)*/
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS)*/
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)*/
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)*/
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_on", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
     return (status);
@@ -1135,7 +1116,7 @@ VAYUIPUPWR_off (PwrMgr_Handle handle, Bool force)
 
     GT_assert (curTrace, (VAYUIPUPWR_state.refCount != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUPWR_state.refCount == 0) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -1153,7 +1134,7 @@ VAYUIPUPWR_off (PwrMgr_Handle handle, Bool force)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
                  object = (VAYUIPUPWR_Object *) pwrMgrHandle->object;
         key = Gate_enterSystem();
         VAYUIPUPWR_state.pwrstateRefCount--;
@@ -1182,9 +1163,9 @@ VAYUIPUPWR_off (PwrMgr_Handle handle, Bool force)
                                          VAYUIPUPWR_state.ipuClkHandle);
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined(SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined(IPC_BUILD_HLOS) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUPWR_off", status);
     /*! @retval PWRMGR_SUCCESS Operation successful */
     return (status);
index 06dd59f5b268427ac8e4048cdf6b9704d8c6681f..0119342362fa4aa04ddabf1b4e46d004241cfa56 100644 (file)
@@ -10,7 +10,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -126,7 +126,7 @@ VAYUIPUCORE0_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd)
     switch (cmd) {
         case Processor_ResetCtrlCmd_Reset:
         {
-#ifdef SYSLINK_SYSBIOS_SMP
+#ifdef IPC_SYSBIOS_SMP
             /*Put Benelli M4_0 and M4_1 to Reset*/
             /* Put IPU core 0 and core 1 into reset */
             SETBITREG32(prmBase + RM_IPU_RSTCTRL_OFFSET, 1);
@@ -209,7 +209,7 @@ VAYUIPUCORE0_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd)
 
         case Processor_ResetCtrlCmd_Release:
         {
-#ifdef SYSLINK_SYSBIOS_SMP
+#ifdef IPC_SYSBIOS_SMP
             /*Bring Benelli M4_0 and M4_1 out of Reset*/
             /* De-assert RST1 and RST2, and clear the Reset status */
             Osal_printf("De-assert RST1\n");
index 0c13a7e9dd52d533c6ce47e89ea4d1149699b1f8..7e596a6cf7a91a18137e0d64263c99f6b31dec0a 100644 (file)
@@ -11,7 +11,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -150,9 +150,9 @@ static ProcMgr_AddrInfo * AddrTable[NUM_IPUS] =
  *
  *  @brief  VAYUIPUCORE0PROC state object variable
  */
-#if !defined(SYSLINK_BUILD_DEBUG)
+#if !defined(IPC_BUILD_DEBUG)
 static
-#endif /* if !defined(SYSLINK_BUILD_DEBUG) */
+#endif /* if !defined(IPC_BUILD_DEBUG) */
 VAYUIPUCORE0PROC_ModuleObject VAYUIPUCORE0PROC_state =
 {
     .isSetup = FALSE,
@@ -161,8 +161,6 @@ VAYUIPUCORE0PROC_ModuleObject VAYUIPUCORE0PROC_state =
     .defInstParams.numMemEntries = 0,
 };
 
-/* config override specified in SysLinkCfg.c, defined in ProcMgr.c */
-extern String ProcMgr_sysLinkCfgParams;
 
 /* =============================================================================
  * APIs directly called by applications
@@ -191,7 +189,7 @@ VAYUIPUCORE0PROC_getConfig (VAYUIPUCORE0PROC_Config * cfg)
 
     GT_assert (curTrace, (cfg != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (cfg == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -201,13 +199,13 @@ VAYUIPUCORE0PROC_getConfig (VAYUIPUCORE0PROC_Config * cfg)
                              "is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         Memory_copy (cfg,
                      &(VAYUIPUCORE0PROC_state.defCfg),
                      sizeof (VAYUIPUCORE0PROC_Config));
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_getConfig");
 }
@@ -253,7 +251,7 @@ VAYUIPUCORE0PROC_setup (VAYUIPUCORE0PROC_Config * cfg)
     /* Create a default gate handle for local module protection. */
     VAYUIPUCORE0PROC_state.gateHandle = (IGateProvider_Handle)
                                 GateMutex_create ((GateMutex_Params*)NULL, &eb);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (VAYUIPUCORE0PROC_state.gateHandle == NULL) {
         /*! @retval PROCESSOR_E_FAIL Failed to create GateMutex! */
         status = PROCESSOR_E_FAIL;
@@ -264,7 +262,7 @@ VAYUIPUCORE0PROC_setup (VAYUIPUCORE0PROC_Config * cfg)
                              "Failed to create GateMutex!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Copy the user provided values into the state object. */
         Memory_copy (&VAYUIPUCORE0PROC_state.cfg,
                      cfg,
@@ -277,9 +275,9 @@ VAYUIPUCORE0PROC_setup (VAYUIPUCORE0PROC_Config * cfg)
 
         VAYUIPUCORE0PROC_state.ipu1ProcId = MultiProc_getId("IPU1");
         VAYUIPUCORE0PROC_state.isSetup = TRUE;
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_setup", status);
 
@@ -350,7 +348,7 @@ VAYUIPUCORE0PROC_Params_init(
 
     GT_assert(curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (params == NULL) {
         GT_setFailureReason(curTrace, GT_4CLASS,
                             "VAYUIPUCORE0PROC_Params_init",
@@ -370,7 +368,7 @@ VAYUIPUCORE0PROC_Params_init(
             Memory_copy(params, &(procObject->params),
                         sizeof(VAYUIPUCORE0PROC_Params));
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
 
@@ -402,7 +400,7 @@ VAYUIPUCORE0PROC_create (      UInt16                procId,
     GT_assert (curTrace, IS_VALID_PROCID (procId));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (!IS_VALID_PROCID (procId)) {
         /* Not setting status here since this function does not return status.*/
         GT_setFailureReason (curTrace,
@@ -419,10 +417,10 @@ VAYUIPUCORE0PROC_create (      UInt16                procId,
                              "params passed is NULL!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUIPUCORE0PROC_state.gateHandle);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         /* Check if the Processor already exists for specified procId. */
         if (VAYUIPUCORE0PROC_state.procHandles [procId] != NULL) {
             status = PROCESSOR_E_ALREADYEXIST;
@@ -433,7 +431,7 @@ VAYUIPUCORE0PROC_create (      UInt16                procId,
                               "Processor already exists for specified procId!");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             /* Allocate memory for the handle */
             handle = (Processor_Object *) Memory_calloc (NULL,
                                                       sizeof (Processor_Object),
@@ -518,7 +516,7 @@ VAYUIPUCORE0PROC_create (      UInt16                procId,
                     List_Params_init(&listParams);
                     handle->registeredNotifiers = List_create(&listParams);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (handle->registeredNotifiers == NULL) {
                         /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed */
                         status = PROCESSOR_E_FAIL;
@@ -529,12 +527,12 @@ VAYUIPUCORE0PROC_create (      UInt16                procId,
                                              "List_create failed");
                     }
                     else {
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
 
                         handle->notifiersLock =
                                  OsalMutex_create(OsalMutex_Type_Interruptible);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                         if (handle->notifiersLock == NULL) {
                             /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed*/
                             status = PROCESSOR_E_FAIL;
@@ -545,18 +543,18 @@ VAYUIPUCORE0PROC_create (      UInt16                procId,
                                                  "OsalMutex_create failed");
                         }
                     }
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
                 }
             }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUIPUCORE0PROC_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     if (status < 0) {
         if (handle !=  NULL) {
@@ -606,7 +604,7 @@ VAYUIPUCORE0PROC_delete (VAYUIPUCORE0PROC_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -627,7 +625,7 @@ VAYUIPUCORE0PROC_delete (VAYUIPUCORE0PROC_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         handle = (Processor_Object *) (*handlePtr);
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUIPUCORE0PROC_state.gateHandle);
@@ -687,9 +685,9 @@ VAYUIPUCORE0PROC_delete (VAYUIPUCORE0PROC_Handle * handlePtr)
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUIPUCORE0PROC_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_delete", status);
 
@@ -718,7 +716,7 @@ VAYUIPUCORE0PROC_open (VAYUIPUCORE0PROC_Handle * handlePtr, UInt16 procId)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, IS_VALID_PROCID (procId));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid NULL handlePtr specified */
         status = PROCESSOR_E_HANDLE;
@@ -738,7 +736,7 @@ VAYUIPUCORE0PROC_open (VAYUIPUCORE0PROC_Handle * handlePtr, UInt16 procId)
                              "Invalid procId specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         /* Initialize return parameter handle. */
         *handlePtr = NULL;
 
@@ -755,9 +753,9 @@ VAYUIPUCORE0PROC_open (VAYUIPUCORE0PROC_Handle * handlePtr, UInt16 procId)
         else {
             *handlePtr = VAYUIPUCORE0PROC_state.procHandles [procId];
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_open", status);
 
@@ -783,7 +781,7 @@ VAYUIPUCORE0PROC_close (VAYUIPUCORE0PROC_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -804,11 +802,11 @@ VAYUIPUCORE0PROC_close (VAYUIPUCORE0PROC_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         /* Nothing to be done for close. */
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_close", status);
 
@@ -841,8 +839,8 @@ VAYUIPUCORE0PROC_attach(
     UInt32                      i = 0;
     UInt32                      index = 0;
     ProcMgr_AddrInfo *          me;
-    SysLink_MemEntry *          entry;
-    SysLink_MemEntry_Block      memBlock;
+    Ipc_MemEntry *              entry;
+    Ipc_MemEntry_Block          memBlock;
     VAYUIPU_HalMmuCtrlArgs_Enable mmuEnableArgs;
     VAYUIPU_HalParams           halParams;
 
@@ -851,7 +849,7 @@ VAYUIPUCORE0PROC_attach(
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -899,7 +897,7 @@ VAYUIPUCORE0PROC_attach(
                                   &memBlock.numEntries,
                                   procHandle,
                                   procHandle->bootMode);
-            if (status < 0 || memBlock.numEntries > SYSLINK_MAX_MEMENTRIES) {
+            if (status < 0 || memBlock.numEntries > IPC_MAX_MEMENTRIES) {
                 /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
                 status = PROCESSOR_E_INVALIDARG;
                 GT_setFailureReason (curTrace,
@@ -1005,7 +1003,7 @@ VAYUIPUCORE0PROC_attach(
             if ((procHandle->bootMode == ProcMgr_BootMode_Boot)
                 || (procHandle->bootMode == ProcMgr_BootMode_NoLoad_Pwr)) {
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                 if (status < 0) {
                     GT_setFailureReason(curTrace, GT_4CLASS,
                         "VAYUIPUCORE0PROC_attach", status,
@@ -1032,7 +1030,7 @@ VAYUIPUCORE0PROC_attach(
                             status,
                             "Reset MMU_Release failed");
                     }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                 }
 #endif
             }
@@ -1044,7 +1042,7 @@ VAYUIPUCORE0PROC_attach(
                  */
                 rproc_enable_fault_interrupt(object->halObject);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                 if (status < 0) {
                     GT_setFailureReason(curTrace, GT_4CLASS,
                         "VAYUIPUCORE0PROC_attach", status,
@@ -1055,12 +1053,12 @@ VAYUIPUCORE0PROC_attach(
                     GT_0trace(curTrace, GT_1CLASS,
                         "VAYUIPUCORE0PROC_attach: Slave MMU interrupt is "
                         "configured");
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                 }
 #endif
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
 #endif
 
@@ -1092,7 +1090,7 @@ VAYUIPUCORE0PROC_detach (Processor_Handle handle)
     GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE0PROC_detach", handle);
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1115,7 +1113,7 @@ VAYUIPUCORE0PROC_detach (Processor_Handle handle)
 
             status = VAYUIPUCORE0_halResetCtrl(object->halObject,
                 Processor_ResetCtrlCmd_MMU_Reset);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             if (status < 0) {
                 /*! @retval status */
                 GT_setFailureReason (curTrace,
@@ -1124,11 +1122,11 @@ VAYUIPUCORE0PROC_detach (Processor_Handle handle)
                                      status,
                                      "Reset MMU failed");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         }
         else {
             status = rproc_disable_fault_interrupt(object->halObject);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             if (status < 0) {
                 /*! @retval status */
                 GT_setFailureReason (curTrace,
@@ -1137,13 +1135,13 @@ VAYUIPUCORE0PROC_detach (Processor_Handle handle)
                                      status,
                                      "rproc_disable_fault_interrupt failed");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         }
 
         if (status >= 0) {
              status = VAYUIPU_halMmuCtrl(object->halObject,
                                     Processor_MmuCtrlCmd_Disable, NULL);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             if (status < 0) {
                 GT_setFailureReason(curTrace, GT_4CLASS,
                     "VAYUIPUCORE0PROC_detach", status,
@@ -1177,7 +1175,7 @@ VAYUIPUCORE0PROC_detach (Processor_Handle handle)
         GT_0trace(curTrace, GT_2CLASS,
             "VAYUIPUCORE0PROC_detach: Slave processor is now in reset");*/
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if ((tmpStatus < 0) && (status >= 0)) {
             status = tmpStatus;
             GT_setFailureReason (curTrace,
@@ -1193,7 +1191,7 @@ VAYUIPUCORE0PROC_detach (Processor_Handle handle)
                    "    VAYUIPUCORE0PROC_detach: Unmapping memory regions\n");
 
         tmpStatus = VAYUIPU_halExit (object->halObject);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if ((tmpStatus < 0) && (status >= 0)) {
             status = tmpStatus;
             GT_setFailureReason (curTrace,
@@ -1240,7 +1238,7 @@ VAYUIPUCORE0PROC_start (Processor_Handle        handle,
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1260,7 +1258,7 @@ VAYUIPUCORE0PROC_start (Processor_Handle        handle,
                                  "Invalid params specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         object = (VAYUIPUCORE0PROC_Object *) procHandle->object;
         GT_assert (curTrace, (object != NULL));
         if (    (procHandle->bootMode == ProcMgr_BootMode_Boot)
@@ -1271,7 +1269,7 @@ VAYUIPUCORE0PROC_start (Processor_Handle        handle,
             status = VAYUIPU_halBootCtrl (object->halObject,
                                           Processor_BootCtrlCmd_SetEntryPoint,
                                           (Ptr) entryPt);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             if (status < 0) {
                 GT_setFailureReason (curTrace,
                                      GT_4CLASS,
@@ -1280,7 +1278,7 @@ VAYUIPUCORE0PROC_start (Processor_Handle        handle,
                                      "Failed to set slave boot entry point");
             }
             else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
                 status = rproc_ipu_setup(object->halObject,
                                          object->params.memEntries,
                                          object->params.numMemEntries);
@@ -1296,7 +1294,7 @@ VAYUIPUCORE0PROC_start (Processor_Handle        handle,
                 if (status >= 0) {
                     status = VAYUIPUCORE0_halResetCtrl(object->halObject,
                                                 Processor_ResetCtrlCmd_Release);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (status < 0) {
                         GT_setFailureReason (curTrace,
                                           GT_4CLASS,
@@ -1304,16 +1302,16 @@ VAYUIPUCORE0PROC_start (Processor_Handle        handle,
                                           status,
                                           "Failed to release slave from reset");
                     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
                 }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         }
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     if (status >= 0) {
         GT_0trace (curTrace,
@@ -1354,7 +1352,7 @@ VAYUIPUCORE0PROC_stop (Processor_Handle handle)
 
     GT_assert (curTrace, (handle != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1365,7 +1363,7 @@ VAYUIPUCORE0PROC_stop (Processor_Handle handle)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         object = (VAYUIPUCORE0PROC_Object *) procHandle->object;
         GT_assert (curTrace, (object != NULL));
         if (    (procHandle->bootMode == ProcMgr_BootMode_Boot)
@@ -1379,7 +1377,7 @@ VAYUIPUCORE0PROC_stop (Processor_Handle handle)
             GT_0trace (curTrace,
                        GT_1CLASS,
                        "    VAYUIPUCORE0PROC_stop: Slave is now in reset!\n");
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
             if (status < 0) {
                 GT_setFailureReason (curTrace,
                                      GT_4CLASS,
@@ -1387,12 +1385,12 @@ VAYUIPUCORE0PROC_stop (Processor_Handle handle)
                                      status,
                                      "Failed to place slave in reset");
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
             rproc_ipu_destroy(object->halObject);
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_stop", status);
 
     /*! @retval PROCESSOR_SUCCESS Operation successful */
@@ -1434,7 +1432,7 @@ VAYUIPUCORE0PROC_read (Processor_Handle   handle,
     GT_assert (curTrace, (numBytes != NULL));
     GT_assert (curTrace, (buffer   != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1463,11 +1461,11 @@ VAYUIPUCORE0PROC_read (Processor_Handle   handle,
                                  "Invalid buffer specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         procPtr8 = (UInt8 *) procAddr ;
         buffer = memcpy (buffer, procPtr8, *numBytes);
         GT_assert (curTrace, (buffer != (UInt32) NULL));
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
         if (buffer == (UInt32) NULL) {
             /*! @retval PROCESSOR_E_FAIL Failed in memcpy */
             status = PROCESSOR_E_FAIL;
@@ -1479,7 +1477,7 @@ VAYUIPUCORE0PROC_read (Processor_Handle   handle,
             *numBytes = 0;
         }
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_read",status);
 
@@ -1527,7 +1525,7 @@ VAYUIPUCORE0PROC_write (Processor_Handle handle,
     GT_assert (curTrace, (numBytes != NULL));
     GT_assert (curTrace, (buffer   != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1556,14 +1554,14 @@ VAYUIPUCORE0PROC_write (Processor_Handle handle,
                                  "Invalid buffer specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         if (*numBytes != sizeof (UInt32)) {
             procPtr8 = (UInt8 *) procAddr ;
             procAddr = (UInt32) Memory_copy (procPtr8,
                                              buffer,
                                              *numBytes);
             GT_assert (curTrace, (procAddr != (UInt32) NULL));
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
             if (procAddr == (UInt32) NULL) {
                 /*! @retval PROCESSOR_E_FAIL Failed in Memory_copy */
                 status = PROCESSOR_E_FAIL;
@@ -1574,7 +1572,7 @@ VAYUIPUCORE0PROC_write (Processor_Handle handle,
                                      "Failed in Memory_copy");
                 *numBytes = 0;
             }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         }
         else  {
              /* For 4 bytes, directly write as a UInt32 */
@@ -1588,9 +1586,9 @@ VAYUIPUCORE0PROC_write (Processor_Handle handle,
                              |   ((UInt32) temp8_1));
             *((UInt32*) procAddr) = temp;
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_write", status);
 
@@ -1621,7 +1619,7 @@ VAYUIPUCORE0PROC_control (Processor_Handle handle, Int32 cmd, Ptr arg)
     GT_assert (curTrace, (handle   != NULL));
     /* cmd and arg can be 0/NULL, so cannot check for validity. */
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1632,14 +1630,14 @@ VAYUIPUCORE0PROC_control (Processor_Handle handle, Int32 cmd, Ptr arg)
                              "Invalid handle specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
         /* No control operations currently implemented. */
         /*! @retval PROCESSOR_E_NOTSUPPORTED No control operations are supported
                                              for this device. */
         status = PROCESSOR_E_NOTSUPPORTED;
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_control",status);
 
     /*! @retval PROCESSOR_SUCCESS Operation successful */
@@ -1677,7 +1675,7 @@ VAYUIPUCORE0PROC_translate(
     GT_assert (curTrace, (handle  != NULL));
     GT_assert (curTrace, (dstAddr != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1726,7 +1724,7 @@ VAYUIPUCORE0PROC_translate(
                 "VAYUIPUCORE0PROC_translate", status,
                 "srcAddr not found in slave address space");
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE,
@@ -1762,7 +1760,7 @@ VAYUIPUCORE0PROC_translateFromPte(
     GT_assert (curTrace, (handle  != NULL));
     GT_assert (curTrace, (dstAddr != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1796,7 +1794,7 @@ VAYUIPUCORE0PROC_translateFromPte(
                 "VAYUIPUCORE0PROC_translateFromPte", status,
                 "srcAddr not found in slave address space");
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE,
@@ -1840,7 +1838,7 @@ VAYUIPUCORE0PROC_map(
     GT_assert (curTrace, (sglist != NULL));
     GT_assert (curTrace, (nSegs > 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -1924,7 +1922,7 @@ VAYUIPUCORE0PROC_map(
                 }
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE, "VAYUIPUCORE0PROC_map", status);
@@ -1965,7 +1963,7 @@ VAYUIPUCORE0PROC_unmap(
     GT_assert (curTrace, (handle != NULL));
     GT_assert (curTrace, (size   != 0));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     if (handle == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid argument */
         status = PROCESSOR_E_HANDLE;
@@ -2029,7 +2027,7 @@ VAYUIPUCORE0PROC_unmap(
 
                     status = VAYUIPU_halMmuCtrl(object->halObject,
                         Processor_MmuCtrlCmd_DeleteEntry, &deleteEntryArgs);
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (status < 0) {
                         GT_setFailureReason(curTrace, GT_4CLASS,
                             "VAYUIPUCORE0PROC_unmap", status,
@@ -2039,7 +2037,7 @@ VAYUIPUCORE0PROC_unmap(
                 }
             }
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
     }
 #endif
     GT_1trace(curTrace, GT_LEAVE,
index 677def152d151e19ab3d181f603e997392c9fbb3..fa298e6420877eee1e8569d4ec6b0cd8244a0c1d 100644 (file)
@@ -11,7 +11,7 @@
  *
  *  ============================================================================
  *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
+ *  Copyright (c) 2013-2015, Texas Instruments Incorporated
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions
@@ -149,9 +149,9 @@ static ProcMgr_AddrInfo * AddrTable[NUM_IPUS] =
  *
  *  @brief  VAYUIPUCORE1PROC state object variable
  */
-#if !defined(SYSLINK_BUILD_DEBUG)
+#if !defined(IPC_BUILD_DEBUG)
 static
-#endif /* if !defined(SYSLINK_BUILD_DEBUG) */
+#endif /* if !defined(IPC_BUILD_DEBUG) */
 VAYUIPUCORE1PROC_ModuleObject VAYUIPUCORE1PROC_state =
 {
     .isSetup = FALSE,
@@ -160,8 +160,6 @@ VAYUIPUCORE1PROC_ModuleObject VAYUIPUCORE1PROC_state =
     .defInstParams.numMemEntries = 0,
 };
 
-/* config override specified in SysLinkCfg.c, defined in ProcMgr.c */
-extern String ProcMgr_sysLinkCfgParams;
 
 /* =============================================================================
  * APIs directly called by applications
@@ -190,7 +188,7 @@ VAYUIPUCORE1PROC_getConfig (VAYUIPUCORE1PROC_Config * cfg)
 
     GT_assert (curTrace, (cfg != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (cfg == NULL) {
         GT_setFailureReason (curTrace,
                              GT_4CLASS,
@@ -200,13 +198,13 @@ VAYUIPUCORE1PROC_getConfig (VAYUIPUCORE1PROC_Config * cfg)
                              "is null!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         Memory_copy (cfg,
                      &(VAYUIPUCORE1PROC_state.defCfg),
                      sizeof (VAYUIPUCORE1PROC_Config));
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_0trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_getConfig");
 }
@@ -252,7 +250,7 @@ VAYUIPUCORE1PROC_setup (VAYUIPUCORE1PROC_Config * cfg)
     /* Create a default gate handle for local module protection. */
     VAYUIPUCORE1PROC_state.gateHandle = (IGateProvider_Handle)
                                 GateMutex_create ((GateMutex_Params*)NULL, &eb);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (VAYUIPUCORE1PROC_state.gateHandle == NULL) {
         /*! @retval PROCESSOR_E_FAIL Failed to create GateMutex! */
         status = PROCESSOR_E_FAIL;
@@ -263,7 +261,7 @@ VAYUIPUCORE1PROC_setup (VAYUIPUCORE1PROC_Config * cfg)
                              "Failed to create GateMutex!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Copy the user provided values into the state object. */
         Memory_copy (&VAYUIPUCORE1PROC_state.cfg,
                      cfg,
@@ -276,9 +274,9 @@ VAYUIPUCORE1PROC_setup (VAYUIPUCORE1PROC_Config * cfg)
 
         VAYUIPUCORE1PROC_state.ipu1ProcId = MultiProc_getId("IPU1");
         VAYUIPUCORE1PROC_state.isSetup = TRUE;
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_setup", status);
 
@@ -349,7 +347,7 @@ VAYUIPUCORE1PROC_Params_init(
 
     GT_assert(curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (params == NULL) {
         GT_setFailureReason(curTrace, GT_4CLASS,
                             "VAYUIPUCORE1PROC_Params_init",
@@ -370,7 +368,7 @@ VAYUIPUCORE1PROC_Params_init(
             Memory_copy(params, &(procObject->params),
                         sizeof (VAYUIPUCORE1PROC_Params));
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
 #endif
 
@@ -402,7 +400,7 @@ VAYUIPUCORE1PROC_create (      UInt16                procId,
     GT_assert (curTrace, IS_VALID_PROCID (procId));
     GT_assert (curTrace, (params != NULL));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (!IS_VALID_PROCID (procId)) {
         /* Not setting status here since this function does not return status.*/
         GT_setFailureReason (curTrace,
@@ -419,10 +417,10 @@ VAYUIPUCORE1PROC_create (      UInt16                procId,
                              "params passed is NULL!");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUIPUCORE1PROC_state.gateHandle);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         /* Check if the Processor already exists for specified procId. */
         if (VAYUIPUCORE1PROC_state.procHandles [procId] != NULL) {
             status = PROCESSOR_E_ALREADYEXIST;
@@ -433,7 +431,7 @@ VAYUIPUCORE1PROC_create (      UInt16                procId,
                               "Processor already exists for specified procId!");
         }
         else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
             /* Allocate memory for the handle */
             handle = (Processor_Object *) Memory_calloc (NULL,
                                                       sizeof (Processor_Object),
@@ -517,7 +515,7 @@ VAYUIPUCORE1PROC_create (      UInt16                procId,
                     List_Params_init(&listParams);
                     handle->registeredNotifiers = List_create(&listParams);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                     if (handle->registeredNotifiers == NULL) {
                         /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed */
                         status = PROCESSOR_E_FAIL;
@@ -528,12 +526,12 @@ VAYUIPUCORE1PROC_create (      UInt16                procId,
                                              "List_create failed");
                     }
                     else {
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
 
                         handle->notifiersLock =
                                  OsalMutex_create(OsalMutex_Type_Interruptible);
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE)
+#if !defined(IPC_BUILD_OPTIMIZE)
                         if (handle->notifiersLock == NULL) {
                             /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed*/
                             status = PROCESSOR_E_FAIL;
@@ -544,18 +542,18 @@ VAYUIPUCORE1PROC_create (      UInt16                procId,
                                                  "OsalMutex_create failed");
                         }
                     }
-#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */
+#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
                 }
             }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
         }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUIPUCORE1PROC_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     if (status < 0) {
         if (handle !=  NULL) {
@@ -605,7 +603,7 @@ VAYUIPUCORE1PROC_delete (VAYUIPUCORE1PROC_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -626,7 +624,7 @@ VAYUIPUCORE1PROC_delete (VAYUIPUCORE1PROC_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         handle = (Processor_Object *) (*handlePtr);
         /* Enter critical section protection. */
         key = IGateProvider_enter (VAYUIPUCORE1PROC_state.gateHandle);
@@ -686,9 +684,9 @@ VAYUIPUCORE1PROC_delete (VAYUIPUCORE1PROC_Handle * handlePtr)
 
         /* Leave critical section protection. */
         IGateProvider_leave (VAYUIPUCORE1PROC_state.gateHandle, key);
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_delete", status);
 
@@ -717,7 +715,7 @@ VAYUIPUCORE1PROC_open (VAYUIPUCORE1PROC_Handle * handlePtr, UInt16 procId)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, IS_VALID_PROCID (procId));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_HANDLE Invalid NULL handlePtr specified */
         status = PROCESSOR_E_HANDLE;
@@ -737,7 +735,7 @@ VAYUIPUCORE1PROC_open (VAYUIPUCORE1PROC_Handle * handlePtr, UInt16 procId)
                              "Invalid procId specified");
     }
     else {
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
         /* Initialize return parameter handle. */
         *handlePtr = NULL;
 
@@ -754,9 +752,9 @@ VAYUIPUCORE1PROC_open (VAYUIPUCORE1PROC_Handle * handlePtr, UInt16 procId)
         else {
             *handlePtr = VAYUIPUCORE1PROC_state.procHandles [procId];
         }
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     }
-#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS) */
+#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
 
     GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_open", status);
 
@@ -782,7 +780,7 @@ VAYUIPUCORE1PROC_close (VAYUIPUCORE1PROC_Handle * handlePtr)
     GT_assert (curTrace, (handlePtr != NULL));
     GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
 
-#if !defined(SYSLINK_BUILD_OPTIMIZE) && defined (SYSLINK_BUILD_HLOS)
+#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
     if (handlePtr == NULL) {
         /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
                                          specified*/
@@ -803,11 +801,11 @@ VAYUIPUCORE1PROC_close (VAYUIPUCORE1PROC_Handle * handlePtr)
                              "Invalid NULL *handlePtr specified");
     }
     else {