OpenAMP Library
Data Fields
resource_table Struct Reference

#include <remoteproc.h>

Data Fields

uint32_t ver
 
uint32_t num
 
uint32_t reserved [2]
 
uint32_t offset [0]
 

Detailed Description

struct resource_table - firmware resource table header @ver: version number @num: number of resource entries @reserved: reserved (must be zero) @offset: array of offsets pointing at the various resource entries

A resource table is essentially a list of system resources required by the remote remoteproc. It may also include configuration entries. If needed, the remote remoteproc firmware should contain this table as a dedicated ".resource_table" ELF section.

Some resources entries are mere announcements, where the host is informed of specific remoteproc configuration. Other entries require the host to do something (e.g. allocate a system resource). Sometimes a negotiation is expected, where the firmware requests a resource, and once allocated, the host should provide back its details (e.g. address of an allocated memory region).

The header of the resource table, as expressed by this structure, contains a version number (should we need to change this format in the future), the number of available resource entries, and their offsets in the table.

Immediately following this header are the resource entries themselves, each of which begins with a resource entry header (as described below).

Field Documentation

◆ num

uint32_t resource_table::num

◆ offset

uint32_t resource_table::offset[0]

◆ reserved

uint32_t resource_table::reserved[2]

◆ ver

uint32_t resource_table::ver

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