Functions
KEYSTONE MMAP Functions
KEYSTONE MMAP

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.

Function Documentation

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.

Parameters:
[in]hHandle 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.

Parameters:
[in]init_configInitialization structure that contains device specific information.
Return values:
mmaphandle. Value will be NULL on error.

Copyright 2014, Texas Instruments Incorporated