diff --git a/docs/data-structure.md b/docs/data-structure.md index 305d045..2a493bb 100644 --- a/docs/data-structure.md +++ b/docs/data-structure.md @@ -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 { diff --git a/docs/remoteproc-design.md b/docs/remoteproc-design.md index 653deb9..ce99cd0 100644 --- a/docs/remoteproc-design.md +++ b/docs/remoteproc-design.md @@ -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: