mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-10-02 18:23:21 +08:00
doc: add const for remoteproc_ops and image_store_ops
follow up the change in lib Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
45bf79aeab
commit
923641d28c
+10
-10
@@ -34,16 +34,16 @@ Remoteproc data struct
|
||||
===========================
|
||||
```
|
||||
struct remoteproc {
|
||||
struct metal_device dev; /**< Each remoteproc has a device, each device knows its memories regions */
|
||||
metal_mutex_t lock; /**< mutex lock */
|
||||
void *rsc_table; /**< pointer to resource table */
|
||||
size_t rsc_len; /**< length of the resoruce table */
|
||||
struct remoteproc_ops *ops; /**< pointer to remoteproc operation */
|
||||
metal_phys_addr_t bootaddr; /**< boot address */
|
||||
struct loader_ops *loader_ops; /**< image loader operation */
|
||||
unsigned int state; /**< remoteproc state */
|
||||
struct metal_list vdevs; /**< list of vdevs (can we limited to one for code size but linux and resource table supports multiple */
|
||||
void *priv; /**< remoteproc private data */
|
||||
struct metal_device dev; /**< Each remoteproc has a device, each device knows its memories regions */
|
||||
metal_mutex_t lock; /**< mutex lock */
|
||||
void *rsc_table; /**< pointer to resource table */
|
||||
size_t rsc_len; /**< length of the resource table */
|
||||
const struct remoteproc_ops *ops; /**< pointer to remoteproc operation */
|
||||
metal_phys_addr_t bootaddr; /**< boot address */
|
||||
const struct loader_ops *loader_ops; /**< image loader operation */
|
||||
unsigned int state; /**< remoteproc state */
|
||||
struct metal_list vdevs; /**< list of vdevs (can we limited to one for code size but linux and resource table supports multiple */
|
||||
void *priv; /**< remoteproc private data */
|
||||
};
|
||||
|
||||
struct remoteproc_vdev {
|
||||
|
||||
@@ -28,7 +28,7 @@ It will extend to crash detection, suspend and resume.
|
||||
* Initialize remoteproc instance:
|
||||
```
|
||||
struct remoteproc *remoteproc_init(struct remoteproc *rproc,
|
||||
struct remoteproc_ops *ops, void *priv)
|
||||
const struct remoteproc_ops *ops, void *priv)
|
||||
```
|
||||
* Release remoteproc instance:
|
||||
```
|
||||
@@ -72,7 +72,7 @@ It will extend to crash detection, suspend and resume.
|
||||
it ready to run:
|
||||
```
|
||||
int remoteproc_load(struct remoteproc *rproc, const char *path,
|
||||
void *store, struct image_store_ops *store_ops,
|
||||
void *store, const struct image_store_ops *store_ops,
|
||||
void **img_info)
|
||||
```
|
||||
* Run application on the remote presented by the remoteproc instance:
|
||||
|
||||
Reference in New Issue
Block a user