Hardware Abstraction Layer for FreeRTOS
|
#include <remoteproc.h>
Data Fields | |
u32 | type |
u32 | da |
u32 | pa |
u32 | len |
u32 | flags |
u32 | reserved |
u8 | name [32] |
struct fw_rsc_devmem - iommu mapping request
This resource entry requests the host to iommu map a physically contiguous memory region. This is needed in case the remote processor requires access to certain memory-based peripherals; never use it to access regular memory.
This is obviously only needed if the remote processor is accessing memory via an iommu.
Note: at this point we just "trust" those devmem entries to contain valid physical addresses, but this isn't safe and will be changed: eventually we want remoteproc implementations to provide us ranges of physical addresses the firmware is allowed to request, and not allow firmwares to request access to physical addresses that are outside those ranges.
u32 fw_rsc_devmem::da |
device address
should specify the required device address,
u32 fw_rsc_devmem::flags |
iommu protection flags
is the IOMMU protection flags. As always,
u32 fw_rsc_devmem::len |
length (in bytes) should specify the size of the mapping and
u8 fw_rsc_devmem::name[32] |
human-readable name of the requested region to be mapped
may (optionally) contain a human readable name of this mapping (mainly for debugging purposes).
u32 fw_rsc_devmem::pa |
physical address
should specify the physical address we want to map.
u32 fw_rsc_devmem::reserved |
reserved (must be zero)
u32 fw_rsc_devmem::type |
resource type