Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Modules | |
Named MMIO region macros | |
Single MMIO region macros | |
Top-level MMIO region macros | |
Macros | |
#define | DEVICE_MMIO_IS_IN_RAM |
Functions | |
static __boot_func void | device_map (mm_reg_t *virt_addr, uintptr_t phys_addr, size_t size, uint32_t flags) |
#define DEVICE_MMIO_IS_IN_RAM |
#include <include/sys/device_mmio.h>
|
inlinestatic |
#include <include/sys/device_mmio.h>
Set linear address for device MMIO access
This function sets the virt_addr
parameter to the correct linear address for the MMIO region.
If the MMU is enabled, mappings may be created in the page tables.
Normally, only a caching mode needs to be set for the 'flags' parameter. The mapped linear address will have read-write access to supervisor mode.
virt_addr | [out] Output linear address storage location, most users will want some DEVICE_MMIO_RAM_PTR() value |
phys_addr | Physical address base of the MMIO region |
size | Size of the MMIO region |
flags | Caching mode and access flags, see K_MEM_CACHE_* and K_MEM_PERM_* macros |