]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - packages/ti/ipc/mm/MmRpc.h
Added offset pointer support to MmRcp.
[ipc/ipcdev.git] / packages / ti / ipc / mm / MmRpc.h
index d6f6c7c77723e07168587100d9af9e14a35a5e83..ed8f000e50c699e7853d677142d1ee5b9707fd48 100644 (file)
@@ -104,6 +104,7 @@ typedef struct MmRpc_Object *MmRpc_Handle;
 typedef enum {
     MmRpc_ParamType_Scalar = 1, /*!< pass by value */
     MmRpc_ParamType_Ptr,        /*!< data pointer */
+    MmRpc_ParamType_OffPtr,     /*!< buffer at offset in memory block */
     MmRpc_ParamType_Elem        /*!< array element */
 } MmRpc_ParamType;
 
@@ -125,6 +126,13 @@ typedef struct {
             size_t      handle; /*!< memory allocator handle */
         } ptr;
 
+        struct {
+            size_t      size;   /*!< size (bytes) of memory block */
+            size_t      base;   /*!< base address of memory block */
+            size_t      offset; /*!< offset (bytes) from base to data */
+            size_t      handle; /*!< memory allocator handle */
+        } offPtr;
+
 #if 0 /* TBD */
         struct {
             size_t      size;   /*!< size of the array element */
@@ -139,7 +147,6 @@ typedef struct {
 typedef struct {
     uint32_t    index;  /*!< parameter index to base pointer */
     ptrdiff_t   offset; /*!< offset from the base address to pointer */
-    size_t      base;   /*!< user virtual address */
     size_t      handle; /*!< memory allocator handle */
 } MmRpc_Xlt;