OpenAMP Library  353
loader_ops Struct Reference

Loader operations. More...

#include <remoteproc_loader.h>

Data Fields

int(* load_header )(const void *img_data, size_t offset, size_t len, void **img_info, int last_state, size_t *noffset, size_t *nlen)
 Define how to get the executable headers. More...
 
int(* load_data )(struct remoteproc *rproc, const void *img_data, size_t offset, size_t len, void **img_info, int last_load_state, metal_phys_addr_t *da, size_t *noffset, size_t *nlen, unsigned char *padding, size_t *nmemsize)
 Define how to load the target data. More...
 
int(* locate_rsc_table )(void *img_info, metal_phys_addr_t *da, size_t *offset, size_t *size)
 Define how to get the resource table target address, offset to the ELF image file and size of the resource table. More...
 
void(* release )(void *img_info)
 Define how to release the loader. More...
 
metal_phys_addr_t(* get_entry )(void *img_info)
 Get entry address. More...
 
int(* get_load_state )(void *img_info)
 Get load state from the image information. More...
 

Detailed Description

Loader operations.

Field Documentation

◆ get_entry

metal_phys_addr_t(* loader_ops::get_entry) (void *img_info)

Get entry address.

◆ get_load_state

int(* loader_ops::get_load_state) (void *img_info)

Get load state from the image information.

◆ load_data

int(* loader_ops::load_data) (struct remoteproc *rproc, const void *img_data, size_t offset, size_t len, void **img_info, int last_load_state, metal_phys_addr_t *da, size_t *noffset, size_t *nlen, unsigned char *padding, size_t *nmemsize)

Define how to load the target data.

◆ load_header

int(* loader_ops::load_header) (const void *img_data, size_t offset, size_t len, void **img_info, int last_state, size_t *noffset, size_t *nlen)

Define how to get the executable headers.

◆ locate_rsc_table

int(* loader_ops::locate_rsc_table) (void *img_info, metal_phys_addr_t *da, size_t *offset, size_t *size)

Define how to get the resource table target address, offset to the ELF image file and size of the resource table.

◆ release

void(* loader_ops::release) (void *img_info)

Define how to release the loader.


The documentation for this struct was generated from the following file: