/open-amp-3.5.0/open-amp/lib/remoteproc/ |
D | remoteproc.c | 34 remoteproc_get_mem(struct remoteproc *rproc, const char *name, in remoteproc_get_mem() argument 48 metal_list_for_each(&rproc->mems, node) { in remoteproc_get_mem() 77 if (!rproc->ops->get_mem) in remoteproc_get_mem() 80 return rproc->ops->get_mem(rproc, name, pa, da, va, size, buf); in remoteproc_get_mem() 101 static void *remoteproc_get_rsc_table(struct remoteproc *rproc, in remoteproc_get_rsc_table() argument 128 ret = handle_rsc_table(rproc, rsc_table, len, NULL); in remoteproc_get_rsc_table() 139 static int remoteproc_parse_rsc_table(struct remoteproc *rproc, in remoteproc_parse_rsc_table() argument 148 io = remoteproc_get_io_with_va(rproc, rsc_table); in remoteproc_parse_rsc_table() 149 return handle_rsc_table(rproc, rsc_table, rsc_size, io); in remoteproc_parse_rsc_table() 152 int remoteproc_set_rsc_table(struct remoteproc *rproc, in remoteproc_set_rsc_table() argument [all …]
|
D | rsc_table_parser.c | 13 static int handle_dummy_rsc(struct remoteproc *rproc, void *rsc); 23 int handle_rsc_table(struct remoteproc *rproc, in handle_rsc_table() argument 64 status = rsc_handler_table[rsc_type](rproc, hdr); in handle_rsc_table() 67 status = handle_vendor_rsc(rproc, hdr); in handle_rsc_table() 79 int handle_carve_out_rsc(struct remoteproc *rproc, void *rsc) in handle_carve_out_rsc() argument 99 if (remoteproc_mmap(rproc, &pa, &da, size, attribute, NULL)) in handle_carve_out_rsc() 105 int handle_vendor_rsc(struct remoteproc *rproc, void *rsc) in handle_vendor_rsc() argument 107 if (rproc && rproc->ops->handle_rsc) { in handle_vendor_rsc() 111 return rproc->ops->handle_rsc(rproc, rsc, len); in handle_vendor_rsc() 116 int handle_vdev_rsc(struct remoteproc *rproc, void *rsc) in handle_vdev_rsc() argument [all …]
|
D | elf_loader.c | 534 int elf_load(struct remoteproc *rproc, in elf_load() argument 544 (void)rproc; in elf_load()
|
/open-amp-3.5.0/open-amp/lib/include/openamp/ |
D | remoteproc.h | 401 struct remoteproc *(*init)(struct remoteproc *rproc, 403 void (*remove)(struct remoteproc *rproc); 404 void *(*mmap)(struct remoteproc *rproc, 408 int (*handle_rsc)(struct remoteproc *rproc, void *rsc, size_t len); 409 int (*config)(struct remoteproc *rproc, void *data); 410 int (*start)(struct remoteproc *rproc); 411 int (*stop)(struct remoteproc *rproc); 412 int (*shutdown)(struct remoteproc *rproc); 413 int (*notify)(struct remoteproc *rproc, uint32_t id); 430 struct remoteproc_mem *(*get_mem)(struct remoteproc *rproc, [all …]
|
D | rsc_table_parser.h | 20 typedef int (*rsc_handler)(struct remoteproc *rproc, void *rsc); 36 int handle_rsc_table(struct remoteproc *rproc, 50 int handle_carve_out_rsc(struct remoteproc *rproc, void *rsc); 62 int handle_trace_rsc(struct remoteproc *rproc, void *rsc); 63 int handle_vdev_rsc(struct remoteproc *rproc, void *rsc); 64 int handle_vendor_rsc(struct remoteproc *rproc, void *rsc);
|
D | remoteproc_loader.h | 91 int (*load_data)(struct remoteproc *rproc,
|
D | elf_loader.h | 390 int elf_load(struct remoteproc *rproc, const void *img_data,
|
/open-amp-3.5.0/open-amp/doc/ |
D | remoteproc-design.md | 15 ![Rproc LCM States](img/rproc-lcm-state-machine.png) 20 …re the remote to make it able to load application;<br>`remoteproc_configure(&rproc, &config_data)`| 21 | Configured -> Ready | load firmware ;<br>`remoteproc_load(&rproc, &path, &image_store, &image_sto… 22 | Ready -> Running | start the processor; <br>`remoteproc_start(&rproc)` | 23 … -> Stopped | stop the processor; <br>`remoteproc_stop(&rproc)`; <br>`remoteproc_shutdown(&rproc)`… 24 … -> Stopped | stop the processor; <br>`remoteproc_stop(&rproc)`; <br>`remoteproc_shutdown(&rproc)`… 25 | Stopped -> Offline | shutdown the processor; <br>`remoteproc_shutdown(&rproc)` | 30 struct remoteproc *remoteproc_init(struct remoteproc *rproc, 35 int remoteproc_remove(struct remoteproc *rproc) 39 void remoteproc_add_mem(struct remoteproc *rproc, struct remoteproc_mem *mem) [all …]
|
/open-amp-3.5.0/open-amp/doc/img-src/ |
D | coprocessor-rpmsg-static-ep.gv | 15 m_remoteproc_init_comment [label="this is initialize rproc call"]; 24 m_remoteproc_init [label="rproc = remoteproc_init(&remoteproc_ops, &arg);"]; 26 m_remoteproc_boot [shape="box", label="ret=remoteproc_boot(&rproc)"]; 27 …m_remoteproc_get_vdev [label="vdev=remoteproc_create_virtio(rproc, rpmsg_vdev_id, VIRTIO_DEV_DRIVE… 45 s_remoteproc_init [label="rproc = remoteproc_init(&remoteproc_ops, &arg);"]; 47 s_remoteproc_parse_rsc [label="ret = remoteproc_set_rsc_table(rproc, &rsc_table, rsc_size)"]; 48 …s_remoteproc_get_vdev [label="vdev=remoteproc_create_virtio(rproc, rpmsg_vdev_id, VIRTIO_DEV_DEVIC…
|
D | coprocessor-rpmsg-ns.gv | 15 m_remoteproc_init_comment [label="this is initialize rproc call"]; 26 m_remoteproc_init [label="rproc = remoteproc_init(&remoteproc_ops, &arg);"] 28 m_remoteproc_boot [shape="box", label="ret=remoteproc_boot(&rproc)"]; 29 …m_remoteproc_get_vdev [label="vdev=remoteproc_create_virtio(rproc, rpmsg_vdev_id, VIRTIO_DEV_DRIVE… 48 s_remoteproc_init [label="rproc = remoteproc_init(&remoteproc_ops, &arg);"]; 50 s_remoteproc_parse_rsc [label="ret = remoteproc_set_rsc_table(rproc, &rsc_table, rsc_size)"]; 51 …s_remoteproc_get_vdev [label="vdev=remoteproc_create_virtio(rproc, rpmsg_vdev_id, VIRTIO_DEV_DEVIC…
|
D | coprocessor-rpmsg-ns-dynamic.gv | 15 m_remoteproc_init_comment [label="this is initialize rproc call"]; 26 m_remoteproc_init [label="rproc = remoteproc_init(&remoteproc_ops, &arg);"] 28 m_remoteproc_boot [shape="box", label="ret=remoteproc_boot(&rproc)"]; 29 …m_remoteproc_get_vdev [label="vdev=remoteproc_create_virtio(rproc, rpmsg_vdev_id, VIRTIO_DEV_DRIVE… 48 s_remoteproc_init [label="rproc = remoteproc_init(&remoteproc_ops, &arg);"]; 50 s_remoteproc_parse_rsc [label="ret = remoteproc_set_rsc_table(rproc, &rsc_table, rsc_size)"]; 51 …s_remoteproc_get_vdev [label="vdev=remoteproc_create_virtio(rproc, rpmsg_vdev_id, VIRTIO_DEV_DEVIC…
|