Resource table IOMMU mapping request entry. More...
#include <remoteproc.h>
Data Fields | |
| uint32_t | type |
| IOMMU mapping request has type 1. More... | |
| uint32_t | da |
| Device address. More... | |
| uint32_t | pa |
| Physical address to map. More... | |
| uint32_t | len |
| Length of the mapping in bytes. More... | |
| uint32_t | flags |
| IOMMU protection flags. More... | |
| uint32_t | reserved |
| Reserved (must be zero) More... | |
| uint8_t | name [RPROC_MAX_NAME_LEN] |
| Optional human-readable name of the requested memory region used for debugging. More... | |
Resource table IOMMU mapping request entry.
This resource entry requests the host to IOMMU map a physically contiguous memory region. This is needed in case the remote remoteproc requires access to certain memory-based peripherals; never use it to access regular memory.
This is obviously only needed if the remote remoteproc 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.
| uint32_t fw_rsc_devmem::da |
Device address.
| uint32_t fw_rsc_devmem::flags |
IOMMU protection flags.
| uint32_t fw_rsc_devmem::len |
Length of the mapping in bytes.
| uint8_t fw_rsc_devmem::name[RPROC_MAX_NAME_LEN] |
Optional human-readable name of the requested memory region used for debugging.
| uint32_t fw_rsc_devmem::pa |
Physical address to map.
| uint32_t fw_rsc_devmem::reserved |
Reserved (must be zero)
| uint32_t fw_rsc_devmem::type |
IOMMU mapping request has type 1.