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:
Xiang Xiao
2022-04-28 09:40:05 +02:00
committed by Arnaud Pouliquen
parent 45bf79aeab
commit 923641d28c
2 changed files with 12 additions and 12 deletions
+10 -10
View File
@@ -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 {
+2 -2
View File
@@ -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: