Remove code references to non-SMP mode on DRA7xx/Vayu QNX
authorvwan@ti.com <vwan@ti.com>
Wed, 25 Feb 2015 19:10:43 +0000 (11:10 -0800)
committerRobert Tivy <rtivy@ti.com>
Thu, 26 Feb 2015 19:31:24 +0000 (11:31 -0800)
Some cleanup to help address SDOCM00108142, since we do not support non-SMP
mode on IPUs in QNX.

Signed-off-by: VW <vwan@ti.com>
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/common.mk
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/vayucore1/VAYUIpuCore1HalReset.c [deleted file]
qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore1/VAYUIpuCore1Proc.c [deleted file]
qnx/src/ipc3x_dev/ti/syslink/family/vayu/Platform.c
qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUIpuCore1HalReset.h [deleted file]
qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUIpuCore1Proc.h [deleted file]
qnx/src/ipc3x_dev/ti/syslink/inc/knl/_VAYUIpuCore1Proc.h [deleted file]

index 72689dd163178442b8f27787ee870f839484ce9c..c87cfadf1af32c279cf78e3765d41cbb8eeb17bf 100644 (file)
@@ -56,9 +56,6 @@ CCOPTS += -DIPC_PLATFORM_OMAP5430 -DARM_TARGET -DC60_TARGET -DIPC_USE_IPU_PM
 endif # ifeq ("$(IPC_PLATFORM)", "omap5430")
 
 ifeq ("$(IPC_PLATFORM)", "vayu")
-ifeq ("$(SMP)", "1")
-CCOPTS += -DIPC_SYSBIOS_SMP
-endif # ifeq ("$(SMP)", "1")
 CCOPTS += -DIPC_PLATFORM_VAYU -DARM_TARGET -DC60_TARGET
 endif # ifeq ("$(IPC_PLATFORM)", "vayu")
 
@@ -135,11 +132,9 @@ 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
index 07bf6b2a3c9e6bf2778bdc2ad895e37dc8af3a72..6c6a85c6eb62af3231573ee232b4391d1e2e3555 100644 (file)
@@ -4,8 +4,7 @@
  *  @brief      PwrMgr implementation for VAYUIPU.
  *
  *              This module is responsible for handling power requests for
- *              the ProcMgr. The implementation is common to VAYUIPUCORE1 and
- *              VAYUIPUCORE0.
+ *              the ProcMgr.
  *
  *
  *  ============================================================================
@@ -765,7 +764,6 @@ VAYUIPUPWR_attach (PwrMgr_Handle handle, PwrMgr_AttachParams * params)
     VAYUIPUPWR_Object *      object       = NULL;
     UInt16                   ipu1ProcId   = MultiProc_getId("IPU1");
     Memory_MapInfo           mapInfo;
-    /* Mapping for prcm base is done in VAYUIPUCORE1_phyShmemInit */
 
     GT_2trace (curTrace, GT_ENTER, "VAYUIPUPWR_attach", handle, params);
 
index 0119342362fa4aa04ddabf1b4e46d004241cfa56..0ba1f6540085d8ebe067d0367fd1626543fbf71c 100644 (file)
@@ -126,20 +126,12 @@ VAYUIPUCORE0_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd)
     switch (cmd) {
         case Processor_ResetCtrlCmd_Reset:
         {
-#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);
             SETBITREG32(prmBase + RM_IPU_RSTCTRL_OFFSET, 0);
             /* Read back the reset control register */
             reg = INREG32(prmBase + RM_IPU_RSTCTRL_OFFSET);
-#else
-            /*Put ONLY Benelli M4_0 to Reset*/
-            /* Put IPU core 0 into reset */
-            SETBITREG32(prmBase + RM_IPU_RSTCTRL_OFFSET, 0);
-            /* Read back the reset control register */
-            reg = INREG32(prmBase + RM_IPU_RSTCTRL_OFFSET);
-#endif
         }
         break;
 
@@ -209,7 +201,6 @@ VAYUIPUCORE0_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd)
 
         case Processor_ResetCtrlCmd_Release:
         {
-#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");
@@ -221,16 +212,6 @@ VAYUIPUCORE0_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd)
             Osal_printf("RST1 & RST2 released!");
             SETBITREG32(prmBase + RM_IPU_RSTST_OFFSET, 0);
             SETBITREG32(prmBase + RM_IPU_RSTST_OFFSET, 1);
-#else
-            /*Bring ONLY Benelli M4_0 out of Reset*/
-            /* De-assert RST1, and clear the Reset status */
-            Osal_printf("De-assert RST1\n");
-            CLRBITREG32(prmBase + RM_IPU_RSTCTRL_OFFSET, 0);
-
-            while (!(INREG32(prmBase + RM_IPU_RSTST_OFFSET) & 0x1));
-            Osal_printf("RST1 released!");
-            SETBITREG32(prmBase + RM_IPU_RSTST_OFFSET, 0);
-#endif
 
             /* Setting to HW_AUTO Mode */
             reg = INREG32(cmBase + CM_IPU_CLKSTCTRL_OFFSET);
diff --git a/qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore1/VAYUIpuCore1HalReset.c b/qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore1/VAYUIpuCore1HalReset.c
deleted file mode 100644 (file)
index e9b5b40..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- *  @file   VAYUIpuCore1HalReset.c
- *
- *  @brief      Reset control module.
- *
- *              This module is responsible for handling reset-related hardware-
- *              specific operations.
- *              The implementation is specific to VAYUIPUCORE1.
- *
- *
- *  ============================================================================
- *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions
- *  are met:
- *
- *  *  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- *
- *  *  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- *
- *  *  Neither the name of Texas Instruments Incorporated nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- *  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <ti/syslink/Std.h>
-
-/* OSAL & Utils headers */
-#include <ti/syslink/utils/Trace.h>
-#include <Bitops.h>
-
-/* Module level headers */
-#include <_ProcDefs.h>
-#include <Processor.h>
-
-/* Hardware Abstraction Layer headers */
-#include <VAYUIpuHal.h>
-#include <VAYUIpuCore1HalReset.h>
-
-#include <hw/inout.h>
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
-
-/* =============================================================================
- *  Macros and types
- * =============================================================================
- */
-/* M4 PRCM Regs*/
-#define RM_IPU_RSTCTRL_OFFSET        0x210
-#define RM_IPU_RSTST_OFFSET          0x214
-
-#define CM_IPU_CLKSTCTRL_OFFSET      0x200
-#define CM_IPU_IPU_CLKCTRL_OFFSET    0x220
-
-
-/* =============================================================================
- * APIs called by VAYUIPUCORE1PROC module
- * =============================================================================
- */
-/*!
- *  @brief      Function to control reset operations
- *
- *  @param      halObj  Pointer to the HAL object
- *  @param      cmd     Reset control command
- *  @param      arg     Arguments specific to the reset control command
- *
- *  @sa
- */
-Int
-VAYUIPUCORE1_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd)
-{
-    Int                 status    = PROCESSOR_SUCCESS;
-    VAYUIPU_HalObject * halObject = NULL;
-    UInt32              cmBase;
-    UInt32              prmBase;
-    UInt32              reg       = 0;
-
-    GT_2trace (curTrace, GT_ENTER, "VAYUIPUCORE1_halResetCtrl", halObj, cmd);
-
-    GT_assert (curTrace, (halObj != NULL));
-    GT_assert (curTrace, (cmd < Processor_ResetCtrlCmd_EndValue));
-
-    halObject = (VAYUIPU_HalObject *) halObj ;
-    cmBase = halObject->cmBase;
-    prmBase = halObject->prmBase;
-
-    switch (cmd) {
-        case Processor_ResetCtrlCmd_Reset:
-        {
-            /*Put ONLY Benelli M4_1 to Reset*/
-            /* Put IPU core 1 into reset */
-            SETBITREG32(prmBase + RM_IPU_RSTCTRL_OFFSET, 1);
-            /* Read back the reset control register */
-            reg = INREG32(prmBase + RM_IPU_RSTCTRL_OFFSET);
-        }
-        break ;
-
-        case Processor_ResetCtrlCmd_MMU_Reset:
-        {
-            /* Do nothing, handled by M4_0 MMU_Reset */
-        }
-        break;
-
-        case Processor_ResetCtrlCmd_MMU_Release:
-        {
-            /* Do nothing, handled by M4_0 MMU_Release */
-        }
-        break;
-
-        case Processor_ResetCtrlCmd_Release:
-        {
-            /*Bring ONLY Benelli M4_1 out of Reset*/
-            /* De-assert RST1, and clear the Reset status */
-            Osal_printf("De-assert RST2\n");
-            CLRBITREG32(prmBase + RM_IPU_RSTCTRL_OFFSET, 1);
-
-            while (!(INREG32(prmBase + RM_IPU_RSTST_OFFSET) & 0x2));
-            Osal_printf("RST2 released!");
-            SETBITREG32(prmBase + RM_IPU_RSTST_OFFSET, 1);
-
-            /* Setting to HW_AUTO Mode */
-            reg = INREG32(cmBase + CM_IPU_CLKSTCTRL_OFFSET);
-            reg &= ~0x3;
-            reg |= 0x3;
-            OUTREG32(cmBase + CM_IPU_CLKSTCTRL_OFFSET, reg);
-        }
-        break;
-
-        case Processor_ResetCtrlCmd_PeripheralUp:
-        {
-            /* Nothing to be done to bringup the peripherals for this device. */
-        }
-        break;
-
-        default:
-        {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1_halResetCtrl",
-                                 status,
-                                 "Unsupported reset ctrl cmd specified");
-        }
-        break ;
-    }
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1_halResetCtrl",status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-#if defined (__cplusplus)
-}
-#endif
diff --git a/qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore1/VAYUIpuCore1Proc.c b/qnx/src/ipc3x_dev/ti/syslink/family/common/vayu/vayuipu/vayucore1/VAYUIpuCore1Proc.c
deleted file mode 100644 (file)
index fa298e6..0000000
+++ /dev/null
@@ -1,1941 +0,0 @@
-/*
- *  @file   VAYUIpuCore1Proc.c
- *
- * @brief       Processor implementation for VAYUIPUCORE1.
- *
- *              This module is responsible for taking care of device-specific
- *              operations for the processor. This module can be used
- *              stand-alone or as part of ProcMgr.
- *              The implementation is specific to VAYUIPUCORE1.
- *
- *
- *  ============================================================================
- *
- *  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
- *  are met:
- *
- *  *  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- *
- *  *  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- *
- *  *  Neither the name of Texas Instruments Incorporated nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- *  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *  Contact information for paper mail:
- *  Texas Instruments
- *  Post Office Box 655303
- *  Dallas, Texas 75265
- *  Contact information:
- *  http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
- *  DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
- *  ============================================================================
- *
- */
-
-
-
-#include <ti/syslink/Std.h>
-/* OSAL & Utils headers */
-#include <ti/syslink/utils/Cfg.h>
-#include <ti/syslink/utils/String.h>
-#include <ti/syslink/utils/IGateProvider.h>
-#include <ti/syslink/utils/GateMutex.h>
-#include <ti/syslink/utils/Memory.h>
-
-#include <string.h>
-
-#include <ti/syslink/utils/Trace.h>
-/* Module level headers */
-#include <ProcDefs.h>
-#include <Processor.h>
-#include <VAYUIpuCore1Proc.h>
-#include <_VAYUIpuCore1Proc.h>
-#include <VAYUIpuHal.h>
-#include <VAYUIpuCore1HalReset.h>
-#include <VAYUIpuHalBoot.h>
-#include <VAYUIpuEnabler.h>
-#include <ti/ipc/MultiProc.h>
-#include <_MultiProc.h>
-#include <RscTable.h>
-
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
-
-/* =============================================================================
- *  Macros and types
- * =============================================================================
- */
-
-/*!
- *  @brief  Max entries in address translation table.
- */
-#define AddrTable_SIZE 32
-
-/* Number of IPUs supported */
-#define NUM_IPUS 2
-
-/* Convert procId to IPU # */
-#define PROCID_TO_IPU(procId) (procId == VAYUIPUCORE1PROC_state.ipu1ProcId ?\
-    0 : 1)
-
-
-
-/*!
- *  @brief  VAYUIPUCORE1PROC Module state object
- */
-typedef struct VAYUIPUCORE1PROC_ModuleObject_tag {
-    UInt32                  configSize;
-    /*!< Size of configuration structure */
-    VAYUIPUCORE1PROC_Config cfg;
-    /*!< VAYUIPUCORE1PROC configuration structure */
-    VAYUIPUCORE1PROC_Config defCfg;
-    /*!< Default module configuration */
-    VAYUIPUCORE1PROC_Params      defInstParams;
-    /*!< Default parameters for the VAYUIPUCORE1PROC instances */
-    Bool                    isSetup;
-    /*!< Indicates whether the VAYUIPUCORE1PROC module is setup. */
-    VAYUIPUCORE1PROC_Handle procHandles [MultiProc_MAXPROCESSORS];
-    /*!< Processor handle array. */
-    IGateProvider_Handle             gateHandle;
-    /*!< Handle of gate to be used for local thread safety */
-    UInt16                     ipu1ProcId;
-    /*!< MultiProc id of IPU1 (to avoid multiple lookups) */
-} VAYUIPUCORE1PROC_ModuleObject;
-
-/* Memory region counters */
-static UInt32 AddrTable_count[NUM_IPUS] = {
-    0,
-    0,
-};
-
-/* Address translation table */
-static ProcMgr_AddrInfo AddrTable_IPU1[AddrTable_SIZE];
-static ProcMgr_AddrInfo AddrTable_IPU2[AddrTable_SIZE];
-
-static ProcMgr_AddrInfo * AddrTable[NUM_IPUS] =
-{
-    AddrTable_IPU1,
-    AddrTable_IPU2
-};
-
-/* =============================================================================
- *  Globals
- * =============================================================================
- */
-
-/*!
- *  @var    VAYUIPUCORE1PROC_state
- *
- *  @brief  VAYUIPUCORE1PROC state object variable
- */
-#if !defined(IPC_BUILD_DEBUG)
-static
-#endif /* if !defined(IPC_BUILD_DEBUG) */
-VAYUIPUCORE1PROC_ModuleObject VAYUIPUCORE1PROC_state =
-{
-    .isSetup = FALSE,
-    .configSize = sizeof (VAYUIPUCORE1PROC_Config),
-    .gateHandle = NULL,
-    .defInstParams.numMemEntries = 0,
-};
-
-
-/* =============================================================================
- * APIs directly called by applications
- * =============================================================================
- */
-/*!
- *  @brief      Function to get the default configuration for the VAYUIPUCORE1PROC
- *              module.
- *
- *              This function can be called by the application to get their
- *              configuration parameter to VAYUIPUCORE1PROC_setup filled in by the
- *              VAYUIPUCORE1PROC module with the default parameters. If the user
- *              does not wish to make any change in the default parameters, this
- *              API is not required to be called.
- *
- *  @param      cfg        Pointer to the VAYUIPUCORE1PROC module configuration
- *                         structure in which the default config is to be
- *                         returned.
- *
- *  @sa         VAYUIPUCORE1PROC_setup
- */
-Void
-VAYUIPUCORE1PROC_getConfig (VAYUIPUCORE1PROC_Config * cfg)
-{
-    GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_getConfig", cfg);
-
-    GT_assert (curTrace, (cfg != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (cfg == NULL) {
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_getConfig",
-                             PROCESSOR_E_INVALIDARG,
-                             "Argument of type (VAYUIPUCORE1PROC_Config *) passed "
-                             "is null!");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        Memory_copy (cfg,
-                     &(VAYUIPUCORE1PROC_state.defCfg),
-                     sizeof (VAYUIPUCORE1PROC_Config));
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_0trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_getConfig");
-}
-
-
-/*!
- *  @brief      Function to setup the VAYUIPUCORE1PROC module.
- *
- *              This function sets up the VAYUIPUCORE1PROC module. This function
- *              must be called before any other instance-level APIs can be
- *              invoked.
- *              Module-level configuration needs to be provided to this
- *              function. If the user wishes to change some specific config
- *              parameters, then VAYUIPUCORE1PROC_getConfig can be called to get the
- *              configuration filled with the default values. After this, only
- *              the required configuration values can be changed. If the user
- *              does not wish to make any change in the default parameters, the
- *              application can simply call VAYUIPUCORE1PROC_setup with NULL
- *              parameters. The default parameters would get automatically used.
- *
- *  @param      cfg   Optional VAYUIPUCORE1PROC module configuration. If provided as
- *                    NULL, default configuration is used.
- *
- *  @sa         VAYUIPUCORE1PROC_destroy
- *              GateMutex_create
- */
-Int
-VAYUIPUCORE1PROC_setup (VAYUIPUCORE1PROC_Config * cfg)
-{
-    Int                     status = PROCESSOR_SUCCESS;
-    VAYUIPUCORE1PROC_Config tmpCfg;
-    Error_Block             eb;
-
-    Error_init(&eb);
-
-    GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_setup", cfg);
-
-    if (cfg == NULL) {
-        VAYUIPUCORE1PROC_getConfig (&tmpCfg);
-        cfg = &tmpCfg;
-    }
-
-    /* Create a default gate handle for local module protection. */
-    VAYUIPUCORE1PROC_state.gateHandle = (IGateProvider_Handle)
-                                GateMutex_create ((GateMutex_Params*)NULL, &eb);
-#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;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_setup",
-                             status,
-                             "Failed to create GateMutex!");
-    }
-    else {
-#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,
-                     sizeof (VAYUIPUCORE1PROC_Config));
-
-        /* Initialize the name to handles mapping array. */
-        Memory_set (&VAYUIPUCORE1PROC_state.procHandles,
-                    0,
-                    (sizeof (VAYUIPUCORE1PROC_Handle) * MultiProc_MAXPROCESSORS));
-
-        VAYUIPUCORE1PROC_state.ipu1ProcId = MultiProc_getId("IPU1");
-        VAYUIPUCORE1PROC_state.isSetup = TRUE;
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_setup", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return (status);
-}
-
-
-/*!
- *  @brief      Function to destroy the VAYUIPUCORE1PROC module.
- *
- *              Once this function is called, other VAYUIPUCORE1PROC module APIs,
- *              except for the VAYUIPUCORE1PROC_getConfig API cannot be called
- *              anymore.
- *
- *  @sa         VAYUIPUCORE1PROC_setup
- *              GateMutex_delete
- */
-Int
-VAYUIPUCORE1PROC_destroy (Void)
-{
-    Int    status = PROCESSOR_SUCCESS;
-    UInt16 i;
-
-    GT_0trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_destroy");
-
-    /* Check if any VAYUIPUCORE1PROC instances have not been deleted so far. If not,
-     * delete them.
-     */
-    for (i = 0 ; i < MultiProc_getNumProcessors() ; i++) {
-        GT_assert (curTrace, (VAYUIPUCORE1PROC_state.procHandles [i] == NULL));
-        if (VAYUIPUCORE1PROC_state.procHandles [i] != NULL) {
-            VAYUIPUCORE1PROC_delete (&(VAYUIPUCORE1PROC_state.procHandles [i]));
-        }
-    }
-
-    if (VAYUIPUCORE1PROC_state.gateHandle != NULL) {
-        GateMutex_delete ((GateMutex_Handle *)
-                                &(VAYUIPUCORE1PROC_state.gateHandle));
-    }
-
-    VAYUIPUCORE1PROC_state.isSetup = FALSE;
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_destroy", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return (status);
-}
-
-
-/*!
- *  @brief      Function to initialize the parameters for this Processor
- *              instance.
- *
- *  @param      params  Configuration parameters to be returned
- *
- *  @sa         VAYUIPUCORE1PROC_create
- */
-Void
-VAYUIPUCORE1PROC_Params_init(
-        VAYUIPUCORE1PROC_Handle    handle,
-        VAYUIPUCORE1PROC_Params *  params)
-{
-    VAYUIPUCORE1PROC_Object * procObject = (VAYUIPUCORE1PROC_Object *) handle;
-
-    GT_2trace(curTrace, GT_ENTER, "VAYUIPUCORE1PROC_Params_init",
-              handle, params);
-
-    GT_assert(curTrace, (params != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (params == NULL) {
-        GT_setFailureReason(curTrace, GT_4CLASS,
-                            "VAYUIPUCORE1PROC_Params_init",
-                            PROCESSOR_E_INVALIDARG,
-                            "Argument of type (VAYUIPUCORE1PROC_Params *) "
-                            "passed is null!");
-    }
-    else {
-#endif
-        if (handle == NULL) {
-
-            Memory_copy(params, &(VAYUIPUCORE1PROC_state.defInstParams),
-                sizeof(VAYUIPUCORE1PROC_Params));
-
-        }
-        else {
-            /* return updated VAYUIPUCORE1PROC instance specific parameters */
-            Memory_copy(params, &(procObject->params),
-                        sizeof (VAYUIPUCORE1PROC_Params));
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif
-
-    GT_0trace(curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_Params_init");
-}
-
-/*!
- *  @brief      Function to create an instance of this Processor.
- *
- *  @param      name    Name of the Processor instance.
- *  @param      params  Configuration parameters.
- *
- *  @sa         VAYUIPUCORE1PROC_delete
- */
-VAYUIPUCORE1PROC_Handle
-VAYUIPUCORE1PROC_create (      UInt16                procId,
-                     const VAYUIPUCORE1PROC_Params * params)
-{
-    Int                   status    = PROCESSOR_SUCCESS;
-    Processor_Object *    handle    = NULL;
-    VAYUIPUCORE1PROC_Object * object    = NULL;
-    Int i                            = 0;
-    ProcMgr_AddrInfo *ai             = NULL;
-    IArg                  key;
-    List_Params           listParams;
-
-    GT_2trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_create", procId, params);
-
-    GT_assert (curTrace, IS_VALID_PROCID (procId));
-    GT_assert (curTrace, (params != NULL));
-
-#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,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_create",
-                             PROCESSOR_E_INVALIDARG,
-                             "Invalid procId specified");
-    }
-    else if (params == NULL) {
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_create",
-                             PROCESSOR_E_INVALIDARG,
-                             "params passed is NULL!");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        /* Enter critical section protection. */
-        key = IGateProvider_enter (VAYUIPUCORE1PROC_state.gateHandle);
-#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;
-            GT_setFailureReason (curTrace,
-                              GT_4CLASS,
-                              "VAYUIPUCORE1PROC_create",
-                              status,
-                              "Processor already exists for specified procId!");
-        }
-        else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-            /* Allocate memory for the handle */
-            handle = (Processor_Object *) Memory_calloc (NULL,
-                                                      sizeof (Processor_Object),
-                                                      0,
-                                                      NULL);
-            if (handle == NULL) {
-                GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1PROC_create",
-                                     PROCESSOR_E_MEMORY,
-                                     "Memory allocation failed for handle!");
-            }
-            else {
-                /* Populate the handle fields */
-                handle->procFxnTable.attach      = &VAYUIPUCORE1PROC_attach;
-                handle->procFxnTable.detach      = &VAYUIPUCORE1PROC_detach;
-                handle->procFxnTable.start       = &VAYUIPUCORE1PROC_start;
-                handle->procFxnTable.stop        = &VAYUIPUCORE1PROC_stop;
-                handle->procFxnTable.read        = &VAYUIPUCORE1PROC_read;
-                handle->procFxnTable.write       = &VAYUIPUCORE1PROC_write;
-                handle->procFxnTable.control     = &VAYUIPUCORE1PROC_control;
-                handle->procFxnTable.map         = &VAYUIPUCORE1PROC_map;
-                handle->procFxnTable.unmap       = &VAYUIPUCORE1PROC_unmap;
-                handle->procFxnTable.translateAddr = &VAYUIPUCORE1PROC_translate;
-                handle->procFxnTable.translateFromPte = NULL;
-                handle->state = ProcMgr_State_Unknown;
-
-                /* Allocate memory for the VAYUIPUCORE1PROC handle */
-                handle->object = Memory_calloc (NULL,
-                                                sizeof (VAYUIPUCORE1PROC_Object),
-                                                0,
-                                                NULL);
-                if (handle->object == NULL) {
-                    status = PROCESSOR_E_MEMORY;
-                    GT_setFailureReason (curTrace,
-                                GT_4CLASS,
-                                "VAYUIPUCORE1PROC_create",
-                                status,
-                                "Memory allocation failed for handle->object!");
-                }
-                else {
-                    handle->procId = procId;
-                    object = (VAYUIPUCORE1PROC_Object *) handle->object;
-                    object->procHandle = (Processor_Handle)handle;
-                    object->halObject = NULL;
-                    /* Copy params into instance object. */
-                    Memory_copy (&(object->params),
-                                 (Ptr) params,
-                                 sizeof (VAYUIPUCORE1PROC_Params));
-
-                    /* initialize the translation table */
-                    for (i = AddrTable_count[PROCID_TO_IPU(procId)];
-                        i < AddrTable_SIZE; i++) {
-                        ai = &AddrTable[PROCID_TO_IPU(procId)][i];
-                        ai->addr[ProcMgr_AddrType_MasterKnlVirt] = -1u;
-                        ai->addr[ProcMgr_AddrType_MasterUsrVirt] = -1u;
-                        ai->addr[ProcMgr_AddrType_MasterPhys] = -1u;
-                        ai->addr[ProcMgr_AddrType_SlaveVirt] = -1u;
-                        ai->addr[ProcMgr_AddrType_SlavePhys] = -1u;
-                        ai->size = 0u;
-                        ai->isCached = FALSE;
-                        ai->mapMask = 0u;
-                        ai->isMapped = FALSE;
-                    }
-
-                    /*
-                     * initialize refCount for all entries
-                     */
-                    for (i = 0; i < AddrTable_SIZE; i++) {
-                        AddrTable[PROCID_TO_IPU(procId)][i].refCount = 0u;
-                    }
-                    Memory_copy((Ptr)(object->params.memEntries),
-                        AddrTable[PROCID_TO_IPU(procId)],
-                        (procId == VAYUIPUCORE1PROC_state.ipu1ProcId ?
-                        sizeof(AddrTable_IPU1) : sizeof(AddrTable_IPU2)));
-
-                    /* Set the handle in the state object. */
-                    VAYUIPUCORE1PROC_state.procHandles [procId] =
-                                               (VAYUIPUCORE1PROC_Handle) handle;
-                    /* Initialize the list of listeners */
-                    List_Params_init(&listParams);
-                    handle->registeredNotifiers = List_create(&listParams);
-
-#if !defined(IPC_BUILD_OPTIMIZE)
-                    if (handle->registeredNotifiers == NULL) {
-                        /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed */
-                        status = PROCESSOR_E_FAIL;
-                        GT_setFailureReason (curTrace,
-                                             GT_4CLASS,
-                                             "VAYUIPUCORE1PROC_create",
-                                             status,
-                                             "List_create failed");
-                    }
-                    else {
-#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
-
-                        handle->notifiersLock =
-                                 OsalMutex_create(OsalMutex_Type_Interruptible);
-
-#if !defined(IPC_BUILD_OPTIMIZE)
-                        if (handle->notifiersLock == NULL) {
-                            /*! @retval PROCESSOR_E_FAIL OsalIsr_create failed*/
-                            status = PROCESSOR_E_FAIL;
-                            GT_setFailureReason (curTrace,
-                                                 GT_4CLASS,
-                                                 "VAYUIPUCORE1PROC_create",
-                                                 status,
-                                                 "OsalMutex_create failed");
-                        }
-                    }
-#endif /* if !defined(IPC_BUILD_OPTIMIZE) */
-                }
-            }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-        }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-        /* Leave critical section protection. */
-        IGateProvider_leave (VAYUIPUCORE1PROC_state.gateHandle, key);
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    if (status < 0) {
-        if (handle !=  NULL) {
-            if (handle->registeredNotifiers != NULL) {
-                List_delete (&handle->registeredNotifiers);
-            }
-            if (handle->object != NULL) {
-                Memory_free (NULL,
-                             handle->object,
-                             sizeof (VAYUIPUCORE1PROC_Object));
-            }
-            Memory_free (NULL, handle, sizeof (Processor_Object));
-        }
-        /*! @retval NULL Function failed */
-        handle = NULL;
-    }
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_create", handle);
-
-    /*! @retval Valid-Handle Operation successful */
-    return (VAYUIPUCORE1PROC_Handle) handle;
-}
-
-
-/*!
- *  @brief      Function to delete an instance of this Processor.
- *
- *              The user provided pointer to the handle is reset after
- *              successful completion of this function.
- *
- *  @param      handlePtr  Pointer to Handle to the Processor instance
- *
- *  @sa         VAYUIPUCORE1PROC_create
- */
-Int
-VAYUIPUCORE1PROC_delete (VAYUIPUCORE1PROC_Handle * handlePtr)
-{
-    Int                   status = PROCESSOR_SUCCESS;
-    VAYUIPUCORE1PROC_Object * object = NULL;
-    Processor_Object *    handle;
-    IArg                  key;
-    List_Elem *           elem    = NULL;
-    Processor_RegisterElem * regElem = NULL;
-
-    GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_delete", handlePtr);
-
-    GT_assert (curTrace, (handlePtr != NULL));
-    GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handlePtr == NULL) {
-        /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
-                                         specified*/
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_delete",
-                             status,
-                             "Invalid NULL handlePtr pointer specified");
-    }
-    else if (*handlePtr == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid NULL *handlePtr specified */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_delete",
-                             status,
-                             "Invalid NULL *handlePtr specified");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        handle = (Processor_Object *) (*handlePtr);
-        /* Enter critical section protection. */
-        key = IGateProvider_enter (VAYUIPUCORE1PROC_state.gateHandle);
-
-        /* Reset handle in PwrMgr handle array. */
-        GT_assert (curTrace, IS_VALID_PROCID (handle->procId));
-        VAYUIPUCORE1PROC_state.procHandles [handle->procId] = NULL;
-
-        /* Free memory used for the VAYUIPUCORE1PROC object. */
-        if (handle->object != NULL) {
-            object = (VAYUIPUCORE1PROC_Object *) handle->object;
-            Memory_free (NULL,
-                         object,
-                         sizeof (VAYUIPUCORE1PROC_Object));
-            handle->object = NULL;
-        }
-
-        /*
-         * Check the list of listeners to see if any are remaining
-         * and reply to them
-         */
-        OsalMutex_delete(&handle->notifiersLock);
-
-        while ((elem = List_dequeue(handle->registeredNotifiers)) != NULL) {
-            regElem = (Processor_RegisterElem *)elem;
-
-            /* Check if there is an associated timer and cancel it */
-            if (regElem->timer != -1) {
-                struct itimerspec value ;
-                value.it_value.tv_sec = 0;
-                value.it_value.tv_nsec = 0;
-                value.it_interval.tv_sec = 0;
-                value.it_interval.tv_nsec = 0;
-                timer_settime(regElem->timer, 0, &value, NULL);
-
-                timer_delete(regElem->timer);
-                regElem->timer = -1;
-            }
-
-            /* Call the callback function so it can clean up. */
-            regElem->info->cbFxn(handle->procId,
-                                 NULL,
-                                 handle->state,
-                                 handle->state,
-                                 ProcMgr_EventStatus_Canceled,
-                                 regElem->info->arg);
-            /* Free the memory */
-            Memory_free(NULL, regElem, sizeof(Processor_RegisterElem));
-        }
-
-        /* Delete the list of listeners */
-        List_delete(&handle->registeredNotifiers);
-
-        /* Free memory used for the Processor object. */
-        Memory_free (NULL, handle, sizeof (Processor_Object));
-        *handlePtr = NULL;
-
-        /* Leave critical section protection. */
-        IGateProvider_leave (VAYUIPUCORE1PROC_state.gateHandle, key);
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_delete", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return (status);
-}
-
-
-/*!
- *  @brief      Function to open a handle to an instance of this Processor. This
- *              function is called when access to the Processor is required from
- *              a different process.
- *
- *  @param      handlePtr   Handle to the Processor instance
- *  @param      procId      Processor ID addressed by this Processor instance.
- *
- *  @sa         VAYUIPUCORE1PROC_close
- */
-Int
-VAYUIPUCORE1PROC_open (VAYUIPUCORE1PROC_Handle * handlePtr, UInt16 procId)
-{
-    Int status = PROCESSOR_SUCCESS;
-
-    GT_2trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_open", handlePtr, procId);
-
-    GT_assert (curTrace, (handlePtr != NULL));
-    GT_assert (curTrace, IS_VALID_PROCID (procId));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handlePtr == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid NULL handlePtr specified */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_open",
-                             status,
-                             "Invalid NULL handlePtr specified");
-    }
-    else if (!IS_VALID_PROCID (procId)) {
-        /*! @retval PROCESSOR_E_INVALIDARG Invalid procId specified */
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_open",
-                             status,
-                             "Invalid procId specified");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        /* Initialize return parameter handle. */
-        *handlePtr = NULL;
-
-        /* Check if the PwrMgr exists and return the handle if found. */
-        if (VAYUIPUCORE1PROC_state.procHandles [procId] == NULL) {
-            /*! @retval PROCESSOR_E_NOTFOUND Specified instance not found */
-            status = PROCESSOR_E_NOTFOUND;
-            GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_open",
-                             status,
-                             "Specified VAYUIPUCORE1PROC instance does not exist!");
-        }
-        else {
-            *handlePtr = VAYUIPUCORE1PROC_state.procHandles [procId];
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_open", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to close a handle to an instance of this Processor.
- *
- *  @param      handlePtr  Pointer to Handle to the Processor instance
- *
- *  @sa         VAYUIPUCORE1PROC_open
- */
-Int
-VAYUIPUCORE1PROC_close (VAYUIPUCORE1PROC_Handle * handlePtr)
-{
-    Int status = PROCESSOR_SUCCESS;
-
-    GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_close", handlePtr);
-
-    GT_assert (curTrace, (handlePtr != NULL));
-    GT_assert (curTrace, ((handlePtr != NULL) && (*handlePtr != NULL)));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handlePtr == NULL) {
-        /*! @retval PROCESSOR_E_INVALIDARG Invalid NULL handlePtr pointer
-                                         specified*/
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_close",
-                             status,
-                             "Invalid NULL handlePtr pointer specified");
-    }
-    else if (*handlePtr == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid NULL *handlePtr specified */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_close",
-                             status,
-                             "Invalid NULL *handlePtr specified");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        /* Nothing to be done for close. */
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_close", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/* =============================================================================
- * APIs called by Processor module (part of function table interface)
- * =============================================================================
- */
-/*!
- *  @brief      Function to initialize the slave processor
- *
- *  @param      handle  Handle to the Processor instance
- *  @param      params  Attach parameters
- *
- *  @sa         VAYUIPUCORE1PROC_detach
- */
-Int
-VAYUIPUCORE1PROC_attach(
-        Processor_Handle            handle,
-        Processor_AttachParams *    params)
-{
-
-    Int                         status = PROCESSOR_SUCCESS ;
-    Processor_Object *          procHandle = (Processor_Object *)handle;
-    VAYUIPUCORE1PROC_Object *  object = NULL;
-    UInt32                      i = 0;
-    UInt32                      index = 0;
-    ProcMgr_AddrInfo *          me;
-    Ipc_MemEntry *              entry;
-    Ipc_MemEntry_Block          memBlock;
-    VAYUIPU_HalMmuCtrlArgs_Enable mmuEnableArgs;
-    VAYUIPU_HalParams           halParams;
-
-    GT_2trace(curTrace, GT_ENTER,
-              "VAYUIPUCORE1PROC_attach", handle, params);
-    GT_assert (curTrace, (handle != NULL));
-    GT_assert (curTrace, (params != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_attach",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (params == NULL) {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_attach",
-                                 status,
-                                 "Invalid params specified");
-    }
-    else {
-#endif
-        object = (VAYUIPUCORE1PROC_Object *) procHandle->object;
-        GT_assert (curTrace, (object != NULL));
-
-        /* Initialize halObject for Processor_translateFromPte to work */
-        halParams.procId = procHandle->procId;
-        status = VAYUIPU_halInit(&(object->halObject), &halParams);
-
-        if (status < 0) {
-            GT_setFailureReason(curTrace, GT_4CLASS,
-                "VAYUIPUCORE1PROC_attach", status,
-                "VAYUIPU_halInit failed");
-        }
-
-        /* Added for Netra Benelli core1 is cortex M4 */
-        params->procArch = Processor_ProcArch_M4;
-
-        object->pmHandle = params->pmHandle;
-        GT_0trace(curTrace, GT_1CLASS,
-            "VAYUIPUCORE1PROC_attach: Mapping memory regions");
-
-        if (status >= 0) {
-            /* search for dsp memory map */
-            status = RscTable_process(procHandle->procId,
-                                  TRUE,
-                                  &memBlock.numEntries,
-                                  procHandle,
-                                  procHandle->bootMode);
-            if (status < 0 || memBlock.numEntries > IPC_MAX_MEMENTRIES) {
-                /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-                status = PROCESSOR_E_INVALIDARG;
-                GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_attach",
-                                 status,
-                                 "Failed to process resource table");
-            }
-            else {
-                status = RscTable_getMemEntries(procHandle->procId,
-                                            memBlock.memEntries,
-                                            &memBlock.numEntries);
-                if (status < 0) {
-                    /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-                    status = PROCESSOR_E_INVALIDARG;
-                    GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1PROC_attach",
-                                     status,
-                                     "Failed to get resource table memEntries");
-                }
-            }
-        }
-
-        /* update translation tables with memory map */
-        for (i = 0; (i < memBlock.numEntries)
-            && (memBlock.memEntries[i].isValid) && (status >= 0); i++) {
-
-            entry = &memBlock.memEntries[i];
-
-            if (entry->map == FALSE) {
-                /* update table with entries which don't require mapping */
-                if (AddrTable_count[PROCID_TO_IPU(procHandle->procId)] !=
-                   AddrTable_SIZE) {
-                    me = &AddrTable[PROCID_TO_IPU(procHandle->procId)][
-                        AddrTable_count[PROCID_TO_IPU(procHandle->procId)]];
-
-                    me->addr[ProcMgr_AddrType_MasterKnlVirt] = -1u;
-                    me->addr[ProcMgr_AddrType_MasterUsrVirt] = -1u;
-                    me->addr[ProcMgr_AddrType_MasterPhys] =
-                        entry->masterPhysAddr;
-                    me->addr[ProcMgr_AddrType_SlaveVirt] = entry->slaveVirtAddr;
-                    me->addr[ProcMgr_AddrType_SlavePhys] = -1u;
-                    me->size = entry->size;
-                    me->isCached = entry->isCached;
-                    me->mapMask = entry->mapMask;
-
-                    AddrTable_count[PROCID_TO_IPU(procHandle->procId)]++;
-                }
-                else {
-                    status = PROCESSOR_E_FAIL;
-                    GT_setFailureReason(curTrace, GT_4CLASS,
-                        "VAYUIPUCORE1PROC_attach", status,
-                        "AddrTable_SIZE reached!");
-                }
-            }
-            else if (entry->map == TRUE) {
-                /* send these entries back to ProcMgr for mapping */
-                index = object->params.numMemEntries;
-
-                if (index != ProcMgr_MAX_MEMORY_REGIONS) {
-                    me = &object->params.memEntries[index];
-
-                    me->addr[ProcMgr_AddrType_MasterKnlVirt] = -1u;
-                    me->addr[ProcMgr_AddrType_MasterUsrVirt] = -1u;
-                    me->addr[ProcMgr_AddrType_MasterPhys] =
-                        entry->masterPhysAddr;
-                    me->addr[ProcMgr_AddrType_SlaveVirt] = entry->slaveVirtAddr;
-                    me->addr[ProcMgr_AddrType_SlavePhys] = -1u;
-                    me->size = entry->size;
-                    me->isCached = entry->isCached;
-                    me->mapMask = entry->mapMask;
-
-                    object->params.numMemEntries++;
-                }
-                else {
-                    status = PROCESSOR_E_FAIL;
-                    GT_setFailureReason(curTrace, GT_4CLASS,
-                                        "VAYUIPUCORE1PROC_attach", status,
-                                        "ProcMgr_MAX_MEMORY_REGIONS reached!");
-                }
-            }
-            else {
-                status = PROCESSOR_E_INVALIDARG;
-                GT_setFailureReason(curTrace, GT_4CLASS,
-                    "VAYUIPUCORE1PROC_attach", status,
-                    "Memory map has entry with invalid 'map' value");
-            }
-        } /* for (...) */
-
-        if (status >= 0) {
-            /* populate the return params */
-            params->numMemEntries = object->params.numMemEntries;
-            memcpy((Ptr)params->memEntries, (Ptr)object->params.memEntries,
-                sizeof(ProcMgr_AddrInfo) * params->numMemEntries);
-
-            if ((procHandle->bootMode == ProcMgr_BootMode_Boot)
-                || (procHandle->bootMode == ProcMgr_BootMode_NoLoad_Pwr)) {
-
-#if !defined(IPC_BUILD_OPTIMIZE)
-                if (status < 0) {
-                    GT_setFailureReason(curTrace, GT_4CLASS,
-                        "VAYUIPUCORE1PROC_attach", status,
-                        "Failed to reset the slave processor");
-                }
-                else {
-#endif
-                    GT_0trace(curTrace, GT_1CLASS,
-                        "VAYUIPUCORE1PROC_attach: slave is now in reset");
-
-                    mmuEnableArgs.numMemEntries = 0;
-                    status = VAYUIPU_halMmuCtrl(object->halObject,
-                        Processor_MmuCtrlCmd_Enable, &mmuEnableArgs);
-#if !defined(IPC_BUILD_OPTIMIZE)
-                    if (status < 0) {
-                        GT_setFailureReason(curTrace, GT_4CLASS,
-                            "VAYUIPUCORE1PROC_attach", status,
-                            "Failed to enable the slave MMU");
-                    }
-                    else {
-#endif
-                        GT_0trace(curTrace, GT_2CLASS,
-                            "VAYUIPUCORE1PROC_attach: Slave MMU "
-                            "is configured!");
-                        /*
-                         * Pull IPU MMU out of reset to make internal
-                         * memory "loadable"
-                         */
-                        status = VAYUIPUCORE1_halResetCtrl(
-                            object->halObject,
-                            Processor_ResetCtrlCmd_MMU_Release);
-                        if (status < 0) {
-                            /*! @retval status */
-                            GT_setFailureReason(curTrace,
-                                GT_4CLASS,
-                                "VAYUIPUCORE1_halResetCtrl",
-                                status,
-                                "Reset MMU_Release failed");
-                        }
-#if !defined(IPC_BUILD_OPTIMIZE)
-                    }
-                }
-#endif
-            }
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif
-
-    GT_1trace(curTrace, GT_LEAVE,
-        "VAYUIPUCORE1PROC_attach", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to detach from the Processor.
- *
- *  @param      handle  Handle to the Processor instance
- *
- *  @sa         VAYUIPUCORE1PROC_attach
- */
-Int
-VAYUIPUCORE1PROC_detach (Processor_Handle handle)
-{
-    Int                       status     = PROCESSOR_SUCCESS;
-    Int                       tmpStatus  = PROCESSOR_SUCCESS;
-    Processor_Object *        procHandle = (Processor_Object *) handle;
-    VAYUIPUCORE1PROC_Object * object     = NULL;
-    Int                       i          = 0;
-    ProcMgr_AddrInfo *        ai;
-
-    GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_detach", handle);
-    GT_assert (curTrace, (handle != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_detach",
-                             PROCESSOR_E_HANDLE,
-                             "Invalid handle specified");
-    }
-    else {
-#endif
-        object = (VAYUIPUCORE1PROC_Object *) procHandle->object;
-        GT_assert (curTrace, (object != NULL));
-
-        if (    (procHandle->bootMode == ProcMgr_BootMode_Boot)
-            ||  (procHandle->bootMode == ProcMgr_BootMode_NoLoad_Pwr)) {
-
-            GT_0trace(curTrace, GT_2CLASS,
-                "VAYUIPUCORE1PROC_detach: Disabling Slave MMU ...");
-
-            status = VAYUIPUCORE1_halResetCtrl(object->halObject,
-                Processor_ResetCtrlCmd_MMU_Reset);
-#if !defined(IPC_BUILD_OPTIMIZE)
-            if (status < 0) {
-                /*! @retval status */
-                GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1_halResetCtrl",
-                                     status,
-                                     "Reset MMU failed");
-            }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) */
-
-            status = VAYUIPU_halMmuCtrl(object->halObject,
-                Processor_MmuCtrlCmd_Disable, NULL);
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-            if (status < 0) {
-                GT_setFailureReason(curTrace, GT_4CLASS,
-                    "VAYUIPUCORE1PROC_detach", status,
-                    "Failed to disable the slave MMU");
-            }
-#endif
-
-            /* delete all dynamically added entries */
-            for (i = 0; i <
-                AddrTable_count[PROCID_TO_IPU(procHandle->procId)]; i++) {
-                ai = &AddrTable[PROCID_TO_IPU(procHandle->procId)][i];
-                ai->addr[ProcMgr_AddrType_MasterKnlVirt] = -1u;
-                ai->addr[ProcMgr_AddrType_MasterUsrVirt] = -1u;
-                ai->addr[ProcMgr_AddrType_MasterPhys] = -1u;
-                ai->addr[ProcMgr_AddrType_SlaveVirt] = -1u;
-                ai->addr[ProcMgr_AddrType_SlavePhys] = -1u;
-                ai->size = 0u;
-                ai->isCached = FALSE;
-                ai->mapMask = 0u;
-                ai->isMapped = FALSE;
-                ai->refCount = 0u;
-            }
-            object->params.numMemEntries = 0;
-            AddrTable_count[PROCID_TO_IPU(procHandle->procId)] = 0;
-
-            //No need to reset.. that will be done in STOP
-            /*tmpStatus = VAYUIPUCORE1_halResetCtrl(object->halObject,
-                Processor_ResetCtrlCmd_Reset, NULL);
-
-            GT_0trace(curTrace, GT_2CLASS,
-                "VAYUIPUCORE1PROC_detach: Slave processor is now in reset");*/
-
-#if !defined(IPC_BUILD_OPTIMIZE)
-            if ((tmpStatus < 0) && (status >= 0)) {
-                status = tmpStatus;
-                GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1PROC_detach",
-                                     status,
-                                     "Failed to reset the slave processor");
-            }
-#endif
-        }
-
-        GT_0trace (curTrace,
-                   GT_2CLASS,
-                   "    VAYUIPUCORE1PROC_detach: Unmapping memory regions\n");
-
-        tmpStatus = VAYUIPU_halExit (object->halObject);
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-        if ((tmpStatus < 0) && (status >= 0)) {
-            status = tmpStatus;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_detach",
-                                 status,
-                                 "Failed to finalize HAL object");
-        }
-    }
-#endif
-
-    GT_1trace(curTrace, GT_LEAVE,
-        "VAYUIPUCORE1PROC_detach", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to start the slave processor
- *
- *              Start the slave processor running from its entry point.
- *              Depending on the boot mode, this involves configuring the boot
- *              address and releasing the slave from reset.
- *
- *  @param      handle    Handle to the Processor instance
- *
- *  @sa         VAYUIPUCORE1PROC_stop, VAYUIPU_halBootCtrl, VAYUIPUCORE1_halResetCtrl
- */
-Int
-VAYUIPUCORE1PROC_start (Processor_Handle        handle,
-                        UInt32                  entryPt,
-                        Processor_StartParams * params)
-{
-    Int                   status        = PROCESSOR_SUCCESS ;
-    Processor_Object *    procHandle    = (Processor_Object *) handle;
-    VAYUIPUCORE1PROC_Object * object    = NULL;
-
-
-    GT_3trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_start",
-               handle, entryPt, params);
-
-    GT_assert (curTrace, (handle != NULL));
-    GT_assert (curTrace, (params != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_start",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (params == NULL) {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_start",
-                                 status,
-                                 "Invalid params specified");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        object = (VAYUIPUCORE1PROC_Object *) procHandle->object;
-        GT_assert (curTrace, (object != NULL));
-        if (    (procHandle->bootMode == ProcMgr_BootMode_Boot)
-            ||  (procHandle->bootMode == ProcMgr_BootMode_NoLoad_Pwr)
-            ||  (procHandle->bootMode == ProcMgr_BootMode_NoLoad_NoPwr)) {
-            /* Slave is to be started only for Boot mode and NoLoad mode. */
-            /* Specify the IPUCORE1 boot address in the boot config register */
-            status = VAYUIPU_halBootCtrl (object->halObject,
-                                          Processor_BootCtrlCmd_SetEntryPoint,
-                                          (Ptr) entryPt);
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-            if (status < 0) {
-                GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1PROC_start",
-                                     status,
-                                     "Failed to set slave boot entry point");
-            }
-            else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-                /* release the slave cpu from reset */
-                if (status >= 0) {
-                    status = VAYUIPUCORE1_halResetCtrl(object->halObject,
-                                                Processor_ResetCtrlCmd_Release);
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-                    if (status < 0) {
-                        GT_setFailureReason (curTrace,
-                                          GT_4CLASS,
-                                          "VAYUIPUCORE1PROC_start",
-                                          status,
-                                          "Failed to release slave from reset");
-                    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-                }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-            }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        }
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    if (status >= 0) {
-        GT_0trace (curTrace,
-                   GT_1CLASS,
-                   "    VAYUIPUCORE1PROC_start: Slave successfully started!\n");
-    }
-    else {
-        GT_0trace (curTrace,
-                   GT_1CLASS,
-                   "    VAYUIPUCORE1PROC_start: Slave could not be started!\n");
-    }
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_start", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to stop the slave processor
- *
- *              Stop the execution of the slave processor. Depending on the boot
- *              mode, this may result in placing the slave processor in reset.
- *
- *  @param      handle    Handle to the Processor instance
- *
- *  @sa         VAYUIPUCORE1PROC_start, VAYUIPUCORE1_halResetCtrl
- */
-Int
-VAYUIPUCORE1PROC_stop (Processor_Handle handle)
-{
-    Int                   status       = PROCESSOR_SUCCESS ;
-    Processor_Object *    procHandle   = (Processor_Object *) handle;
-    VAYUIPUCORE1PROC_Object * object       = NULL;
-
-    GT_1trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_stop", handle);
-
-    GT_assert (curTrace, (handle != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_stop",
-                             status,
-                             "Invalid handle specified");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        object = (VAYUIPUCORE1PROC_Object *) procHandle->object;
-        GT_assert (curTrace, (object != NULL));
-        if (    (procHandle->bootMode == ProcMgr_BootMode_Boot)
-            ||  (procHandle->bootMode == ProcMgr_BootMode_NoLoad_Pwr)
-            ||  (procHandle->bootMode == ProcMgr_BootMode_NoLoad_NoPwr)) {
-            /* Slave is to be stopped only for Boot mode and NoLoad mode. */
-            /* Place the slave processor in reset. */
-            status = VAYUIPUCORE1_halResetCtrl (object->halObject,
-                                          Processor_ResetCtrlCmd_Reset);
-
-            GT_0trace (curTrace,
-                       GT_1CLASS,
-                       "    VAYUIPUCORE1PROC_stop: Slave is now in reset!\n");
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-            if (status < 0) {
-                GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1PROC_stop",
-                                     status,
-                                     "Failed to place slave in reset");
-            }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_stop", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to read from the slave processor's memory.
- *
- *              Read from the slave processor's memory and copy into the
- *              provided buffer.
- *
- *  @param      handle     Handle to the Processor instance
- *  @param      procAddr   Address in host processor's address space of the
- *                         memory region to read from.
- *  @param      numBytes   IN/OUT parameter. As an IN-parameter, it takes in the
- *                         number of bytes to be read. When the function
- *                         returns, this parameter contains the number of bytes
- *                         actually read.
- *  @param      buffer     User-provided buffer in which the slave processor's
- *                         memory contents are to be copied.
- *
- *  @sa         VAYUIPUCORE1PROC_write
- */
-Int
-VAYUIPUCORE1PROC_read (Processor_Handle   handle,
-                       UInt32             procAddr,
-                       UInt32 *           numBytes,
-                       Ptr                buffer)
-{
-    Int       status   = PROCESSOR_SUCCESS ;
-    UInt8  *  procPtr8 = NULL;
-
-    GT_4trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_read",
-               handle, procAddr, numBytes, buffer);
-
-    GT_assert (curTrace, (handle   != NULL));
-    GT_assert (curTrace, (numBytes != NULL));
-    GT_assert (curTrace, (buffer   != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_read",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (numBytes == 0) {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_read",
-                                 status,
-                                 "Invalid numBytes specified");
-    }
-    else if (buffer == NULL) {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_read",
-                                 status,
-                                 "Invalid buffer specified");
-    }
-    else {
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        procPtr8 = (UInt8 *) procAddr ;
-        buffer = memcpy (buffer, procPtr8, *numBytes);
-        GT_assert (curTrace, (buffer != (UInt32) NULL));
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-        if (buffer == (UInt32) NULL) {
-            /*! @retval PROCESSOR_E_FAIL Failed in memcpy */
-            status = PROCESSOR_E_FAIL;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_read",
-                                 status,
-                                 "Failed in memcpy");
-            *numBytes = 0;
-        }
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_read",status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to write into the slave processor's memory.
- *
- *              Read from the provided buffer and copy into the slave
- *              processor's memory.
- *
- *  @param      handle     Handle to the Processor object
- *  @param      procAddr   Address in host processor's address space of the
- *                         memory region to write into.
- *  @param      numBytes   IN/OUT parameter. As an IN-parameter, it takes in the
- *                         number of bytes to be written. When the function
- *                         returns, this parameter contains the number of bytes
- *                         actually written.
- *  @param      buffer     User-provided buffer from which the data is to be
- *                         written into the slave processor's memory.
- *
- *  @sa         VAYUIPUCORE1PROC_read, VAYUIPUCORE1PROC_translateAddr
- */
-Int
-VAYUIPUCORE1PROC_write (Processor_Handle handle,
-                        UInt32           procAddr,
-                        UInt32 *         numBytes,
-                        Ptr              buffer)
-{
-    Int                   status       = PROCESSOR_SUCCESS ;
-    UInt8  *              procPtr8     = NULL;
-    UInt8                 temp8_1;
-    UInt8                 temp8_2;
-    UInt8                 temp8_3;
-    UInt8                 temp8_4;
-    UInt32                temp;
-
-    GT_4trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_write",
-               handle, procAddr, numBytes, buffer);
-
-    GT_assert (curTrace, (handle   != NULL));
-    GT_assert (curTrace, (numBytes != NULL));
-    GT_assert (curTrace, (buffer   != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_write",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (numBytes == 0) {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_write",
-                                 status,
-                                 "Invalid numBytes specified");
-    }
-    else if (buffer == NULL) {
-            /*! @retval PROCESSOR_E_INVALIDARG Invalid argument */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason (curTrace,
-                                 GT_4CLASS,
-                                 "VAYUIPUCORE1PROC_write",
-                                 status,
-                                 "Invalid buffer specified");
-    }
-    else {
-#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(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-            if (procAddr == (UInt32) NULL) {
-                /*! @retval PROCESSOR_E_FAIL Failed in Memory_copy */
-                status = PROCESSOR_E_FAIL;
-                GT_setFailureReason (curTrace,
-                                     GT_4CLASS,
-                                     "VAYUIPUCORE1PROC_write",
-                                     status,
-                                     "Failed in Memory_copy");
-                *numBytes = 0;
-            }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-        }
-        else  {
-             /* For 4 bytes, directly write as a UInt32 */
-            temp8_1 = ((UInt8 *) buffer) [0];
-            temp8_2 = ((UInt8 *) buffer) [1];
-            temp8_3 = ((UInt8 *) buffer) [2];
-            temp8_4 = ((UInt8 *) buffer) [3];
-            temp = (UInt32) (    ((UInt32) temp8_4 << 24)
-                             |   ((UInt32) temp8_3 << 16)
-                             |   ((UInt32) temp8_2 << 8)
-                             |   ((UInt32) temp8_1));
-            *((UInt32*) procAddr) = temp;
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_write", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to perform device-dependent operations.
- *
- *              Performs device-dependent control operations as exposed by this
- *              implementation of the Processor module.
- *
- *  @param      handle     Handle to the Processor object
- *  @param      cmd        Device specific processor command
- *  @param      arg        Arguments specific to the type of command.
- *
- *  @sa
- */
-Int
-VAYUIPUCORE1PROC_control (Processor_Handle handle, Int32 cmd, Ptr arg)
-{
-    Int                   status       = PROCESSOR_SUCCESS ;
-
-    GT_3trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_control", handle, cmd, arg);
-
-    GT_assert (curTrace, (handle   != NULL));
-    /* cmd and arg can be 0/NULL, so cannot check for validity. */
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_control",
-                             status,
-                             "Invalid handle specified");
-    }
-    else {
-#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(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif /* #if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS) */
-    GT_1trace (curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_control",status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Translate slave virtual address to master physical address.
- *
- *  @param      handle     Handle to the Processor object
- *  @param      dstAddr    Returned: master physical address.
- *  @param      srcAddr    Slave virtual address.
- *
- *  @sa
- */
-Int
-VAYUIPUCORE1PROC_translate(
-        Processor_Handle    handle,
-        UInt32 *            dstAddr,
-        UInt32              srcAddr)
-{
-    Int                         status = PROCESSOR_SUCCESS;
-    Processor_Object *          procHandle= (Processor_Object *)handle;
-    VAYUIPUCORE1PROC_Object *   object = NULL;
-    UInt32                      i;
-    UInt32                      startAddr;
-    UInt32                      endAddr;
-    UInt32                      offset;
-    ProcMgr_AddrInfo *          ai;
-
-    GT_3trace(curTrace, GT_ENTER, "VAYUDSPPROC_translate",
-              handle, dstAddr, srcAddr);
-
-    GT_assert (curTrace, (handle  != NULL));
-    GT_assert (curTrace, (dstAddr != NULL));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_translate",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (dstAddr == NULL) {
-        /*! @retval PROCESSOR_E_INVALIDARG sglist provided as NULL */
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_translate",
-                             status,
-                             "dstAddr provided as NULL");
-    }
-    else {
-#endif
-        object = (VAYUIPUCORE1PROC_Object *)procHandle->object;
-        GT_assert(curTrace, (object != NULL));
-        *dstAddr = -1u;
-
-        /* search all entries AddrTable */
-        for (i = 0; i < AddrTable_count[PROCID_TO_IPU(procHandle->procId)];
-            i++) {
-            ai = &AddrTable[PROCID_TO_IPU(procHandle->procId)][i];
-            startAddr = ai->addr[ProcMgr_AddrType_SlaveVirt];
-            endAddr = startAddr + ai->size;
-
-            if ((startAddr <= srcAddr) && (srcAddr < endAddr)) {
-                offset = srcAddr - startAddr;
-                *dstAddr = ai->addr[ProcMgr_AddrType_MasterPhys] + offset;
-                GT_3trace(curTrace, GT_1CLASS, "VAYUIPUCORE1PROC_translate: "
-                    "translated [%d] srcAddr=0x%x --> dstAddr=0x%x",
-                    i, srcAddr, *dstAddr);
-                break;
-            }
-        }
-
-        if (*dstAddr == -1u) {
-            /* srcAddr not found in slave address space */
-            status = PROCESSOR_E_INVALIDARG;
-            GT_setFailureReason(curTrace, GT_4CLASS,
-                "VAYUIPUCORE1PROC_translate", status,
-                "srcAddr not found in slave address space");
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif
-    GT_1trace(curTrace, GT_LEAVE,
-        "VAYUIPUCORE1PROC_translate: status=0x%x", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Map the given address translation into the slave mmu
- *
- *  @param      handle      Handle to the Processor object
- *  @param      dstAddr     Base virtual address
- *  @param      nSegs       Number of given segments
- *  @param      sglist      Segment list
- */
-Int
-VAYUIPUCORE1PROC_map(
-        Processor_Handle    handle,
-        UInt32 *            dstAddr,
-        UInt32              nSegs,
-        Memory_SGList *     sglist)
-{
-    Int                         status = PROCESSOR_SUCCESS ;
-    Processor_Object *          procHandle = (Processor_Object *)handle;
-    VAYUIPUCORE1PROC_Object *   object = NULL;
-    Bool                        found = FALSE;
-    UInt32                      startAddr;
-    UInt32                      endAddr;
-    UInt32                      i;
-    UInt32                      j;
-    ProcMgr_AddrInfo *          ai = NULL;
-
-    GT_4trace(curTrace, GT_ENTER, "VAYUIPUCORE1PROC_map:",
-        handle, *dstAddr, nSegs, sglist);
-
-    GT_assert (curTrace, (handle != NULL));
-    GT_assert (curTrace, (sglist != NULL));
-    GT_assert (curTrace, (nSegs > 0));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_map",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (sglist == NULL) {
-        /*! @retval PROCESSOR_E_INVALIDARG sglist provided as NULL */
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_map",
-                             status,
-                             "sglist provided as NULL");
-    }
-    else if (nSegs == 0) {
-        /*! @retval PROCESSOR_E_INVALIDARG Number of segments provided is 0 */
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_map",
-                             status,
-                             "Number of segments provided is 0");
-    }
-    else {
-#endif
-        object = (VAYUIPUCORE1PROC_Object *)procHandle->object;
-        GT_assert (curTrace, (object != NULL));
-
-        for (i = 0; (i < nSegs) && (status >= 0); i++) {
-            /* Update the translation table with entries for which mapping
-             * is required. Add the entry only if the range does not exist
-             * in the translation table.
-             */
-            for (j = 0;
-                j < AddrTable_count[PROCID_TO_IPU(procHandle->procId)]; j++) {
-                ai = &AddrTable[PROCID_TO_IPU(procHandle->procId)][j];
-
-                if (ai->isMapped == TRUE) {
-                    startAddr = ai->addr[ProcMgr_AddrType_SlaveVirt];
-                    endAddr = startAddr + ai->size;
-
-                    if ((startAddr <= *dstAddr) && (*dstAddr < endAddr)
-                        && ((*dstAddr + sglist[i].size) <= endAddr)) {
-                        found = TRUE;
-                        ai->refCount++;
-                        break;
-                    }
-                }
-            }
-
-            /* If not found, add new entry to table. If mmu is disabled,
-             * the assumption is that the ammu will be used.
-             */
-            if (!found) {
-                if (AddrTable_count[PROCID_TO_IPU(procHandle->procId)] !=
-                    AddrTable_SIZE) {
-                    ai = &AddrTable[PROCID_TO_IPU(procHandle->procId)]
-                        [AddrTable_count[PROCID_TO_IPU
-                        (procHandle->procId)]];
-                    ai->addr[ProcMgr_AddrType_MasterKnlVirt] = -1u;
-                    ai->addr[ProcMgr_AddrType_MasterUsrVirt] = -1u;
-                    ai->addr[ProcMgr_AddrType_MasterPhys] = sglist[i].paddr;
-                    ai->addr[ProcMgr_AddrType_SlaveVirt] = *dstAddr;
-                    ai->addr[ProcMgr_AddrType_SlavePhys] = -1u;
-                    ai->size = sglist[i].size;
-                    ai->isCached = sglist[i].isCached;
-                    ai->refCount++;
-                    ai->isMapped = TRUE;
-
-                    AddrTable_count[PROCID_TO_IPU(procHandle->procId)]++;
-                }
-                else {
-                    status = PROCESSOR_E_FAIL;
-                    GT_setFailureReason(curTrace, GT_4CLASS,
-                        "VAYUIPUCORE1PROC_map", status,
-                        "AddrTable_SIZE reached!");
-                }
-            }
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif
-    GT_1trace(curTrace, GT_LEAVE, "VAYUIPUCORE1PROC_map", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-/*!
- *  @brief      Function to unmap slave address from host address space
- *
- *  @param      handle      Handle to the Processor object
- *  @param      dstAddr     Return parameter: Pointer to receive the mapped
- *                          address.
- *  @param      size        Size of the region to be mapped.
- *
- *  @sa
- */
-Int
-VAYUIPUCORE1PROC_unmap(
-        Processor_Handle    handle,
-        UInt32              addr,
-        UInt32              size)
-{
-    Int                         status = PROCESSOR_SUCCESS;
-    Processor_Object *          procHandle = (Processor_Object *)handle;
-    VAYUIPUCORE1PROC_Object *   object = NULL;
-    ProcMgr_AddrInfo *          ai;
-    Int                         i;
-    UInt32                      startAddr;
-    UInt32                      endAddr;
-    VAYUIPU_HalMmuCtrlArgs_DeleteEntry deleteEntryArgs;
-
-    GT_3trace (curTrace, GT_ENTER, "VAYUIPUCORE1PROC_unmap",
-               handle, addr, size);
-
-    GT_assert (curTrace, (handle != NULL));
-    GT_assert (curTrace, (size   != 0));
-
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    if (handle == NULL) {
-        /*! @retval PROCESSOR_E_HANDLE Invalid argument */
-        status = PROCESSOR_E_HANDLE;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_unmap",
-                             status,
-                             "Invalid handle specified");
-    }
-    else if (size == 0) {
-        /*! @retval  PROCESSOR_E_INVALIDARG Size provided is zero */
-        status = PROCESSOR_E_INVALIDARG;
-        GT_setFailureReason (curTrace,
-                             GT_4CLASS,
-                             "VAYUIPUCORE1PROC_unmap",
-                             status,
-                             "Size provided is zero");
-    }
-    else {
-#endif
-        object = (VAYUIPUCORE1PROC_Object *) procHandle->object;
-        GT_assert (curTrace, (object != NULL));
-
-        /* Delete entries from translation
-         * table only in last unmap called on that entry
-         */
-        for (i = 0;
-            i < AddrTable_count[PROCID_TO_IPU(procHandle->procId)]; i++) {
-            ai = &AddrTable[PROCID_TO_IPU(procHandle->procId)][i];
-
-            if (!ai->isMapped) {
-                continue;
-            }
-
-            startAddr = ai->addr[ProcMgr_AddrType_SlaveVirt];
-            endAddr = startAddr + ai->size;
-
-            if ((startAddr <= addr) && (addr < endAddr)) {
-                ai->refCount--;
-
-                if (ai->refCount == 0) {
-                    ai->addr[ProcMgr_AddrType_MasterKnlVirt] = -1u;
-                    ai->addr[ProcMgr_AddrType_MasterUsrVirt] = -1u;
-                    ai->addr[ProcMgr_AddrType_MasterPhys] = -1u;
-                    ai->addr[ProcMgr_AddrType_SlaveVirt] = -1u;
-                    ai->addr[ProcMgr_AddrType_SlavePhys] = -1u;
-                    ai->size = 0u;
-                    ai->isCached = FALSE;
-                    ai->mapMask = 0u;
-                    ai->isMapped = FALSE;
-
-                    /* Remove the entry from the IPUCORE1 MMU also */
-                    deleteEntryArgs.size          = size;
-                    deleteEntryArgs.slaveVirtAddr = addr;
-                    /* TBD: elementSize, endianism, mixedSized are
-                     * hard coded now, must be configurable later
-                     */
-                    deleteEntryArgs.elementSize   = ELEM_SIZE_16BIT;
-                    deleteEntryArgs.endianism     = LITTLE_ENDIAN;
-                    deleteEntryArgs.mixedSize     = MMU_TLBES;
-
-                    status = VAYUIPU_halMmuCtrl(object->halObject,
-                        Processor_MmuCtrlCmd_DeleteEntry, &deleteEntryArgs);
-#if !defined(IPC_BUILD_OPTIMIZE)
-                    if (status < 0) {
-                        GT_setFailureReason(curTrace, GT_4CLASS,
-                            "VAYUIPUCORE1PROC_unmap", status,
-                            "IPUCORE1 MMU configuration failed");
-                    }
-#endif
-                }
-            }
-        }
-#if !defined(IPC_BUILD_OPTIMIZE) && defined (IPC_BUILD_HLOS)
-    }
-#endif
-    GT_1trace(curTrace, GT_LEAVE,
-    "VAYUIPUCORE1PROC_unmap", status);
-
-    /*! @retval PROCESSOR_SUCCESS Operation successful */
-    return status;
-}
-
-
-#if defined (__cplusplus)
-}
-#endif /* defined (__cplusplus) */
index 3436ec1792fda91239594f82585294e83a3e6317..6c81521e4a239dba787eb1b47d38b9ef183fb3b4 100644 (file)
@@ -64,7 +64,6 @@
 #include <VAYUIpcInt.h>
 #include <VAYUDspPwr.h>
 #include <VAYUDspProc.h>
-#include <VAYUIpuCore1Proc.h>
 #include <VAYUIpuCore0Proc.h>
 #include <VAYUIpuPwr.h>
 
diff --git a/qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUIpuCore1HalReset.h b/qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUIpuCore1HalReset.h
deleted file mode 100644 (file)
index 426c825..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- *  @file   VAYUIpuCore1HalReset.h
- *
- *  @brief      Reset control module header file.
- *
- *              This module is responsible for handling reset-related hardware-
- *              specific operations.
- *              The implementation is specific to VAYUIPUCORE1.
- *
- *
- */
-/*
- *  ============================================================================
- *
- *  Copyright (c) 2013, Texas Instruments Incorporated
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions
- *  are met:
- *
- *  *  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- *
- *  *  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- *
- *  *  Neither the name of Texas Instruments Incorporated nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- *  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *  Contact information for paper mail:
- *  Texas Instruments
- *  Post Office Box 655303
- *  Dallas, Texas 75265
- *  Contact information:
- *  http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
- *  DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
- *  ============================================================================
- *
- */
-
-
-#ifndef VAYUIPUCORE1HALRESET_H_0xbbee
-#define VAYUIPUCORE1HALRESET_H_0xbbee
-
-
-/* Module level headers */
-#include <_ProcDefs.h>
-
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
-
-/* =============================================================================
- *  Macros and types
- *  See _ProcDefs.h
- * =============================================================================
- */
-#define INREG32(x) in32(x)
-#define OUTREG32(x, y) out32(x, y)
-#define SETBITREG32(x, y) OUTREG32(x, (INREG32(x) | (1 << y)))
-#define CLRBITREG32(x, y) OUTREG32(x, (INREG32(x) & ~(1 << y)))
-#define TESTBITREG32(x, y) (((INREG32(x) & (1 << y)) >> y) & 0x1)
-
-/* =============================================================================
- *  APIs
- * =============================================================================
- */
-/* Function to control reset operations for this slave device. */
-Int VAYUIPUCORE1_halResetCtrl (Ptr halObj, Processor_ResetCtrlCmd cmd);
-
-
-#if defined (__cplusplus)
-}
-#endif /* defined (__cplusplus) */
-
-#endif /* VAYUIpuCore1HalReset_H_0xbbec */
diff --git a/qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUIpuCore1Proc.h b/qnx/src/ipc3x_dev/ti/syslink/inc/knl/VAYUIpuCore1Proc.h
deleted file mode 100644 (file)
index 5e81740..0000000
+++ /dev/null
@@ -1,264 +0,0 @@
-/**
- *  @file   VAYUIpuCore1Proc.h
- *
- *  @brief      Processor interface for VAYUSLAVE.
- *
- *
- */
-/*
- *  ============================================================================
- *
- *  Copyright (c) 2013-2014, Texas Instruments Incorporated
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions
- *  are met:
- *
- *  *  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- *
- *  *  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- *
- *  *  Neither the name of Texas Instruments Incorporated nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- *  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *  Contact information for paper mail:
- *  Texas Instruments
- *  Post Office Box 655303
- *  Dallas, Texas 75265
- *  Contact information:
- *  http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
- *  DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
- *  ============================================================================
- *
- */
-
-
-
-#ifndef VAYUIPUCORE1PROC_H_0xbbed
-#define VAYUIPUCORE1PROC_H_0xbbed
-
-
-/* Module headers */
-#include <ti/syslink/ProcMgr.h>
-#include <ProcDefs.h>
-
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
-
-/*!
- *  @def    VAYUIPUCORE1PROC_MODULEID
- *  @brief  Module ID for VAYUSLAVE.
- */
-#define VAYUIPUCORE1PROC_MODULEID           (UInt16) 0xbbec
-
-/* =============================================================================
- *  All success and failure codes for the module
- * =============================================================================
- */
-/*!
- *  @def    VAYUIPUCORE1PROC_STATUSCODEBASE
- *  @brief  Error code base for ProcMgr.
- */
-#define VAYUIPUCORE1PROC_STATUSCODEBASE      (VAYUIPUCORE1PROC_MODULEID << 12u)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_MAKE_FAILURE
- *  @brief  Macro to make failure code.
- */
-#define VAYUIPUCORE1PROC_MAKE_FAILURE(x) ((Int)(  0x80000000                   \
-                                     | (VAYUIPUCORE1PROC_STATUSCODEBASE + (x))))
-
-/*!
- *  @def    VAYUIPUCORE1PROC_MAKE_SUCCESS
- *  @brief  Macro to make success code.
- */
-#define VAYUIPUCORE1PROC_MAKE_SUCCESS(x) (VAYUIPUCORE1PROC_STATUSCODEBASE + (x))
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_MMUENTRYEXISTS
- *  @brief  Specified MMU entry already exists.
- */
-#define VAYUIPUCORE1PROC_E_MMUENTRYEXISTS   VAYUIPUCORE1PROC_MAKE_FAILURE(1)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_ISR
- *  @brief  Error occurred during ISR operation.
- */
-#define VAYUIPUCORE1PROC_E_ISR              VAYUIPUCORE1PROC_MAKE_FAILURE(2)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_MMUCONFIG
- *  @brief  Error occurred during MMU configuration
- */
-#define VAYUIPUCORE1PROC_E_MMUCONFIG        VAYUIPUCORE1PROC_MAKE_FAILURE(3)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_OSFAILURE
- *  @brief  Failure in an OS-specific operation.
- */
-#define VAYUIPUCORE1PROC_E_OSFAILURE        VAYUIPUCORE1PROC_MAKE_FAILURE(4)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_INVALIDARG
- *  @brief  Argument passed to a function is invalid.
- */
-#define VAYUIPUCORE1PROC_E_INVALIDARG       VAYUIPUCORE1PROC_MAKE_FAILURE(5)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_MEMORY
- *  @brief  Memory allocation failed.
- */
-#define VAYUIPUCORE1PROC_E_MEMORY           VAYUIPUCORE1PROC_MAKE_FAILURE(6)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_HANDLE
- *  @brief  Invalid object handle specified
- */
-#define VAYUIPUCORE1PROC_E_HANDLE           VAYUIPUCORE1PROC_MAKE_FAILURE(7)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_ACCESSDENIED
- *  @brief  The operation is not permitted in this process.
- */
-#define VAYUIPUCORE1PROC_E_ACCESSDENIED     VAYUIPUCORE1PROC_MAKE_FAILURE(8)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_E_FAIL
- *  @brief  Generic failure.
- */
-#define VAYUIPUCORE1PROC_E_FAIL             VAYUIPUCORE1PROC_MAKE_FAILURE(9)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_SUCCESS
- *  @brief  Operation successful.
- */
-#define VAYUIPUCORE1PROC_SUCCESS           VAYUIPUCORE1PROC_MAKE_SUCCESS(0)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_S_ALREADYSETUP
- *  @brief  The VAYUIPUCORE1PROC module has already been setup in this process.
- */
-#define VAYUIPUCORE1PROC_S_ALREADYSETUP     VAYUIPUCORE1PROC_MAKE_SUCCESS(1)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_S_OPENHANDLE
- *  @brief  Other VAYUIPUCORE1PROC clients have still setup the
- *          VAYUIPUCORE1PROC module.
- */
-#define VAYUIPUCORE1PROC_S_SETUP            VAYUIPUCORE1PROC_MAKE_SUCCESS(2)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_S_OPENHANDLE
- *  @brief  Other VAYUIPUCORE1PROC handles are still open in this process.
- */
-#define VAYUIPUCORE1PROC_S_OPENHANDLE       VAYUIPUCORE1PROC_MAKE_SUCCESS(3)
-
-/*!
- *  @def    VAYUIPUCORE1PROC_S_ALREADYEXISTS
- *  @brief  The VAYUIPUCORE1PROC instance has already been created/opened in
- *          this process
- */
-#define VAYUIPUCORE1PROC_S_ALREADYEXISTS    VAYUIPUCORE1PROC_MAKE_SUCCESS(4)
-
-
-/* =============================================================================
- *  Macros and types
- * =============================================================================
- */
-/*!
- *  @brief  Module configuration structure.
- */
-typedef struct VAYUIPUCORE1PROC_Config {
-    UInt32 reserved; /*!< Reserved field (not currently required) */
-} VAYUIPUCORE1PROC_Config;
-
-/*!
- *  @brief  Configuration parameters specific to this processor.
- */
-typedef struct VAYUIPUCORE1PROC_Params_tag {
-    UInt32              numMemEntries;
-    /*!< Number of memory regions to be configured. */
-    ProcMgr_AddrInfo    memEntries[ProcMgr_MAX_MEMORY_REGIONS];
-    /*!< Array of information structures for memory regions to be configured. */
-} VAYUIPUCORE1PROC_Params;
-
-/*!
- *  @brief  VAYUIPUCORE1PROC instance object.
- */
-struct VAYUIPUCORE1PROC_Object_tag {
-    VAYUIPUCORE1PROC_Params  params;
-    /*!< Instance parameters (configuration values) */
-    Ptr                      halObject;
-    /*!< Pointer to the Hardware Abstraction Layer object. */
-    ProcMgr_Handle           pmHandle;
-    /*!< Handle to proc manager */
-    Processor_Handle         procHandle;
-    /*!< Handle to processor */
-};
-
-/*!
- *  @brief  Defines the VAYUIPUCORE1PROC object type
- */
-typedef struct VAYUIPUCORE1PROC_Object_tag VAYUIPUCORE1PROC_Object;
-
-/*!
- *  @brief  Defines VAYUIPUCORE1PROC object handle
- */
-typedef struct VAYUIPUCORE1PROC_Object * VAYUIPUCORE1PROC_Handle;
-
-
-/* =============================================================================
- *  APIs
- * =============================================================================
- */
-
-/* Function to get the default configuration for the VAYUIPUCORE1PROC module. */
-Void VAYUIPUCORE1PROC_getConfig (VAYUIPUCORE1PROC_Config * cfg);
-
-/* Function to setup the VAYUIPUCORE1PROC module. */
-Int VAYUIPUCORE1PROC_setup (VAYUIPUCORE1PROC_Config * cfg);
-
-/* Function to destroy the VAYUIPUCORE1PROC module. */
-Int VAYUIPUCORE1PROC_destroy (Void);
-
-/* Function to initialize the parameters for this processor instance. */
-Void VAYUIPUCORE1PROC_Params_init (VAYUIPUCORE1PROC_Handle    handle,
-                            VAYUIPUCORE1PROC_Params *  params);
-
-/* Function to create an instance of this processor. */
-VAYUIPUCORE1PROC_Handle VAYUIPUCORE1PROC_create (      UInt16           procId,
-                                        const VAYUIPUCORE1PROC_Params * params);
-
-/* Function to delete an instance of this processor. */
-Int VAYUIPUCORE1PROC_delete (VAYUIPUCORE1PROC_Handle * handlePtr);
-
-/* Function to open an instance of this processor. */
-Int VAYUIPUCORE1PROC_open (VAYUIPUCORE1PROC_Handle * handlePtr, UInt16 procId);
-
-/* Function to close an instance of this processor. */
-Int VAYUIPUCORE1PROC_close (VAYUIPUCORE1PROC_Handle * handlePtr);
-
-
-#if defined (__cplusplus)
-}
-#endif /* defined (__cplusplus) */
-
-#endif /* VAYUIPUCORE1PROC_H_0xbbec */
diff --git a/qnx/src/ipc3x_dev/ti/syslink/inc/knl/_VAYUIpuCore1Proc.h b/qnx/src/ipc3x_dev/ti/syslink/inc/knl/_VAYUIpuCore1Proc.h
deleted file mode 100644 (file)
index 982ebe5..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- *  @file   _VAYUIpuCore1Proc.h
- *
- *  @brief      Internal header for Processor interface for VAYUIpuCore1.
- *
- *
- */
-/*
- *  ============================================================================
- *
- *  Copyright (c) 2013, Texas Instruments Incorporated
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions
- *  are met:
- *
- *  *  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- *
- *  *  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- *
- *  *  Neither the name of Texas Instruments Incorporated nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- *  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- *  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- *  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- *  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *  Contact information for paper mail:
- *  Texas Instruments
- *  Post Office Box 655303
- *  Dallas, Texas 75265
- *  Contact information:
- *  http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
- *  DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
- *  ============================================================================
- *
- */
-
-
-
-#ifndef _VAYUIPUCORE1PROC_H_0xbbee
-#define _VAYUIPUCORE1PROC_H_0xbbee
-
-
-/* Module level headers */
-#include <ProcDefs.h>
-#include <ti/syslink/ProcMgr.h>
-
-
-#if defined (__cplusplus)
-extern "C" {
-#endif
-
-
-/* =============================================================================
- *  Macros and types
- *  See ProcDefs.h and VAYUIpuCore1Proc.h
- * =============================================================================
- */
-
-
-/* =============================================================================
- *  Internal functions accessed through function table
- * =============================================================================
- */
-/* Function to initialize the slave processor */
-Int VAYUIPUCORE1PROC_attach (Processor_Handle         handle,
-                             Processor_AttachParams * params);
-
-/* Function to finalize the slave processor */
-Int VAYUIPUCORE1PROC_detach (Processor_Handle handle);
-
-/* Function to start the slave processor */
-Int VAYUIPUCORE1PROC_start (Processor_Handle        handle,
-                            UInt32                  entryPt,
-                            Processor_StartParams * params);
-
-/* Function to start the stop processor */
-Int VAYUIPUCORE1PROC_stop (Processor_Handle handle);
-
-/* Function to read from the slave processor's memory. */
-Int VAYUIPUCORE1PROC_read (Processor_Handle handle,
-                           UInt32           procAddr,
-                           UInt32 *         numBytes,
-                           Ptr              buffer);
-
-/* Function to write into the slave processor's memory. */
-Int VAYUIPUCORE1PROC_write (Processor_Handle handle,
-                            UInt32           procAddr,
-                            UInt32 *         numBytes,
-                            Ptr              buffer);
-
-/* Function to perform device-dependent operations. */
-Int VAYUIPUCORE1PROC_control (Processor_Handle handle, Int32 cmd, Ptr arg);
-
-/* Function to translate a slave physical address to master physical address */
-Int VAYUIPUCORE1PROC_translate (Processor_Handle handle,
-                                UInt32 *         dstAddr,
-                                UInt32           srcAddr);
-
-/* Function to map slave address to host address space */
-Int VAYUIPUCORE1PROC_map (Processor_Handle handle,
-                          UInt32 *         dstAddr,
-                          UInt32           nSegs,
-                          Memory_SGList *  sglist);
-
-/* Function to unmap slave address to host address space */
-Int VAYUIPUCORE1PROC_unmap (Processor_Handle handle,
-                            UInt32           slaveVirtAddr,
-                            UInt32           size);
-
-
-
-#if defined (__cplusplus)
-}
-#endif /* defined (__cplusplus) */
-
-#endif /* _VAYUIPUCORE1PROC_H_0xbbec */