]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/commitdiff
Add initialize() hil_proc API
authorWendy Liang <jliang@xilinx.com>
Mon, 27 Jun 2016 22:04:26 +0000 (15:04 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:43 +0000 (22:01 -0700)
Introduce initialize() hil_proc API to set platform data for
each remoteproc processor.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/include/openamp/hil.h

index c4fdf2c5b0202423950f5821e8dbde2a14f19c99..a8d8f44d1e6f51a20da04509a30c46b00c41579d 100644 (file)
@@ -467,6 +467,22 @@ struct hil_platform_ops {
      */
        void (*shutdown_cpu) (int cpu_id);
 
+    /**
+     * initialize
+     *
+     *  This function initialize remote processor with platform data.
+     *
+     * @param[in] pdata - platform data
+     * @param[in] proc - pointer to the remote processor
+     * @param[in] cpu_id - CPU id
+     *
+     * @return 0 on sucess, otherwise on failure
+     *
+     */
+       int (*initialize) (void *pdata,
+                                 struct hil_proc *proc,
+                                 int cpu_id);
+
 };
 
 /* Utility macros for register read/write */