Android: Fix compilation warnings Fix compilation warnings seen with Android build. Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
MmRpc: Fix Compilation Warnings Fix compilation warnings introduced with commit 6736bb2b9b060cf37d3e6728e21509b24ec12da8, "MmRpc: Add Input Paramter Checking to APIs". Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
MmRpc: Add Input Paramter Checking to APIs This patch adds input paramter checking to the MmRpc_* APIs, specifically checking for NULL pointers, in order to prevent a crash due to NULL-pointer de-reference in the case that the user sends a bad (NULL) pointer. Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
Remove references to SysLink in QNX code base This commit removes all references to "SysLink" in the QNX IPC code base, with the exception that it preserves the file and directory names. The decision was made to preserve the path names to avoid breaking any existing apps that may be including headers and/or libraries based on the existing directory structure, and to ease git history lookup going forward. Note that this does introduce a break in the naming of internal features such as SYSLINK_DEBUG and SYSLINK_DEBUG_TRACE_LEVEL. This helps address SDOCM00108142. Signed-off-by: VW <vwan@ti.com>
MmRpc: update rpmsg header path for Android on K3.14 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Use different #include path for 3.14 Linux Linux 3.14 has split header files into kernel and user ones, which means MmRpc.c needs to include rpmsg_rpc.h from user location.
Add MmServiceMgr_getId() to allow retrieval of service instance id This commit adds MmServiceMgr_getId() to allow skeleton functions and service deletion functions to retrieve the instance id it is acting upon. It also reverts previous support for MmRpc_getId() and MmServiceMgr_register2. Signed-off-by: VW <vwan@ti.com>
Support in QNX MmRpc/MmServiceMgr to identify deleted instance during cleanup This commit adds the MmRpc_getId API on host to return a unique id for each MmRpc instance of a service. This id is passed to the cleanup function registered in the newly introduced MmServiceMgr_register2() so that it can clean up after a given MmRpc instance. This commit addresses SDOCM00108138 Signed-off-by: VW <vwan@ti.com>
Removed unnecessary cast in parameter assignment.
MmRpc: updated to new Linux rpmsg_rpc.h API Two structures changed a field name from reserved to fd. Also aligned the QNX copy of this header to match.
Added MmRpc_use()/MmRpc_release() API functions. These functions call into the driver to make the buffers persistent from the remote processor view. This allows the remote processor to maintain persistent references to the buffers across multiple calls to MmRcp_call().
Add base field to MmRpc_Xlt structure. Fixed the offset calculation for embedded pointers by allowing the caller to specify encoded base value. Enhanced some comments. Code cleanup.
MmRpc: Added support for Android OS build Introduce an initial Android.mk build script, and slight code change to build the MmRpc library. Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Added offset pointer support to MmRcp. New parameter type to support data pointers into managed memory allocations such that the data pointer is offset from the base address.
MmRpc: Remove 'base' field from MmRpc_Xlt struct This field was confusing and redundant. Given that the address and offset to the embedded pointer are already available, the base value can be derived in the MmRpc API layer. Signed-off-by: Ramsey Harris <ramsey@ti.com>
Added meta-only modules to handle package dependencies.
Removed RPPC definitions which are now exported in rpmsg_rpc.h
Added pointer parameter and embedded pointers to mmrpc_test program. Using the shared memory allocator on QNX, we added pointers to the test program. Ran on QNX between HOST and IPU. Made ti/ipc/mm a package.
Add MmRpc and mmrpc_test to QNX build. Added QNX makefiles to build mmrpc library and mmrpc_test program. Added QNX generated files to .gitignore file. Added KERNEL_INSTALL_DIR to Linux makefiles.
Final merge of Suman and Angela's latest updates. Updates to MmRpc. The MmRpc module is now functional for remote function calls using atomic parameters. Updated mmrpc_test to invoke fxnTriple and fxnAdd remote functions.