![]() |
![]() |
Functions | |
| keystone_mmap_handle_t | keystone_mmap_init (keystone_mmap_init_config_t *init_config) |
| void | keystone_mmap_free (keystone_mmap_handle_t *h) |
| void * | keystone_mmap (keystone_mmap_handle_t h, uint64_t phys_addr, size_t length, uint32_t prot, uint32_t flags) |
| Map physical memroy to logical address. | |
| int32_t | keystone_munmap (keystone_mmap_handle_t h, void *ptr, size_t length) |
| Unmap physical memory which was mapped to logical address. | |
| void keystone_mmap_free | ( | keystone_mmap_handle_t * | h | ) |
Description
This function reset the mappings controlled by the keystone_mmap_handle_t h and frees dynamic memory allocated for the handle.
| [in] | h | Handle to an instance of MMAP |
| keystone_mmap_handle_t keystone_mmap_init | ( | keystone_mmap_init_config_t * | init_config | ) |
Description
This function initializes an instance of Keystone MMAP. The resources an instance has available are provided within the keystone_mmap_init_config_t structure.
| [in] | init_config | Initialization structure that contains device specific information. |
| mmap | handle. Value will be NULL on error. |