summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 322e445)
raw | patch | inline | side by side (parent: 322e445)
author | Wendy Liang <jliang@xilinx.com> | |
Wed, 29 Jun 2016 21:14:31 +0000 (14:14 -0700) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Thu, 13 Oct 2016 05:01:44 +0000 (22:01 -0700) |
As the remoteproc init API has changed, update how to call the API
in the demo applications.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
in the demo applications.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
index 9aa42e9ae53b5617350ca6ebc189823177b09d30..b371f44ebc79195010887170d1b555279bb22301 100644 (file)
static struct remote_proc *proc = NULL;
static struct rsc_table_info rsc_info;
extern const struct remote_resource_table resources;
+extern struct hil_proc proc_table[];
/* External functions */
extern void init_system();
/* Initialize RPMSG framework */
status =
- remoteproc_resource_init(&rsc_info, rpmsg_channel_created,
+ remoteproc_resource_init(&rsc_info, &proc_table[0],
+ rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_cb,
&proc);
diff --git a/apps/echo_test/echo_testd_remoteproc_master.c b/apps/echo_test/echo_testd_remoteproc_master.c
index e81450e14c662dbec4c21952edf3590beab2031d..3eacb86377da8ce5cecaef54c19884b4b94c92e5 100644 (file)
/* External functions */
extern void init_system();
+/* External variables */
+extern struct hil_proc proc_table[];
+
/* Application entry point */
int main()
{
init_system();
status =
- remoteproc_init((void *)fw_name, rpmsg_channel_created,
+ remoteproc_init((void *)fw_name, &proc_table[0], rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_cb, &proc);
if (!status) {
index a996883dd00ee674c0c072c663db33093995258c..1da6213096a8412165d637bdd92f3cbf60d4aecc 100644 (file)
static char r_buffer[512];
static struct rsc_table_info rsc_info;
extern const struct remote_resource_table resources;
+extern struct hil_proc proc_table[];
/* External functions */
extern void init_system();
/* This API creates the virtio devices for this remote node and initializes
other relevant resources defined in the resource table */
- remoteproc_resource_init(&rsc_info, rpmsg_channel_created,
+ remoteproc_resource_init(&rsc_info, &proc_table[0],
+ rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_default_cb,
&proc);
diff --git a/apps/func_test_suite/func_test_suite_remoteproc_master.c b/apps/func_test_suite/func_test_suite_remoteproc_master.c
index 821565f2abb14dadb7d75f8e3d532cb142f393a2..33eb1b7a5071b81b47646cfb2cf28cb742e8707a 100644 (file)
/* External functions */
extern void init_system();
+/* External variables */
+extern struct hil_proc proc_table[];
+
void sleep()
{
int i;
int i;
status =
- remoteproc_init((void *)firmware_name, rpmsg_channel_created,
+ remoteproc_init((void *)firmware_name, &proc_table[0], rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_default_cb,
&proc);
index fa083aa6786d59d06dad4ac2d902b37a87db6a6d..471e381541ad0f99b0b96347106ee9208a74cc1c 100644 (file)
static struct remote_proc *proc = NULL;
static struct rsc_table_info rsc_info;
extern const struct remote_resource_table resources;
+extern struct hil_proc proc_table[];
/* External functions */
extern void init_system();
/* Initialize RPMSG framework */
status =
- remoteproc_resource_init(&rsc_info, rpmsg_channel_created,
+ remoteproc_resource_init(&rsc_info, &proc_table[0],
+ rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_cb,
&proc);
if (status < 0) {
diff --git a/apps/matrix_multiply/matrix_multiplyd_remoteproc_master.c b/apps/matrix_multiply/matrix_multiplyd_remoteproc_master.c
index b94848a8b7364a24d7decedbd77a91efaf0e65c7..8561f050d3f9c578fddee8868d9572aab4f08e7a 100644 (file)
/* External functions */
extern void init_system();
+/* External variables */
+extern struct hil_proc proc_table[];
+
static void Matrix_Multiply(const matrix * m, const matrix * n, matrix * r)
{
int i, j, k;
init_system();
status =
- remoteproc_init((void *)fw_name, rpmsg_channel_created,
+ remoteproc_init((void *)fw_name, &proc_table[0], rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_cb, &proc);
if (!status) {
index 17caccf89643cd4506474b0a380b15693f72b8be..0ba32a4ec6710b36490c60d85429c0a665d8fb89 100755 (executable)
--- a/apps/rpc_demo/rpc_demo.c
+++ b/apps/rpc_demo/rpc_demo.c
static struct remote_proc *proc = NULL;
static struct rsc_table_info rsc_info;
extern const struct remote_resource_table resources;
+extern struct hil_proc proc_table[];
/* External functions */
extern void init_system();
rsc_info.size = sizeof(resources);
/* Initialize RPMSG framework */
- status = remoteproc_resource_init(&rsc_info, rpmsg_channel_created,
+ status = remoteproc_resource_init(&rsc_info, &proc_table[0],
+ rpmsg_channel_created,
rpmsg_channel_deleted, rpmsg_read_cb,
&proc);
if (status < 0) {