Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

sah_memory_mapper.h File Reference


Detailed Description

Re-creates SAHARA data structures in Kernel memory such that they are suitable for DMA.

Definition in file sah_memory_mapper.h.

#include <sah_driver_common.h>
#include <sah_queue_manager.h>

Go to the source code of this file.

Functions

os_error_code map_user_memory (struct vm_area_struct *vma, uint32_t physical_addr, uint32_t size)
sah_Descsah_Alloc_Descriptor (void)
 Allocate descriptor.
sah_Head_Descsah_Alloc_Head_Descriptor (void)
 Allocate Head descriptor.
sah_Linksah_Alloc_Link (void)
 Allocate link.
int sah_Block_Add_Page (int big)
 Add page of blocks to block free pool.
sah_Head_Descsah_Copy_Descriptors (fsl_shw_uco_t *user_ctx, sah_Head_Desc *desc)
 Kernel Descriptor Chain Copier.
sah_Linksah_Copy_Links (fsl_shw_uco_t *user_ctx, sah_Link *ptr)
 Kernel Link Chain Copier.
sah_Head_Descsah_DePhysicalise_Descriptors (sah_Head_Desc *desc)
sah_Linksah_DePhysicalise_Links (sah_Link *ptr)
 Convert physical Link chain.
void sah_Destroy_Descriptors (sah_Head_Desc *desc)
 Kernel Descriptor Chain Destructor.
void sah_Destroy_Links (sah_Link *link)
 Kernel Link Chain Destructor.
void sah_Free_Chained_Descriptors (sah_Head_Desc *desc)
 Kernel Descriptor Chain Destructor.
void sah_Free_Chained_Links (sah_Link *link)
 Kernel Link Chain Destructor.
void sah_Free_Descriptor (sah_Desc *desc)
 Free descriptor.
void sah_Free_Head_Descriptor (sah_Head_Desc *desc)
 Free Head descriptor.
void sah_Free_Link (sah_Link *link)
 Free link.
int sah_Init_Mem_Map (void)
 Initialize memory manager/mapper.
sah_Linksah_Make_Links (fsl_shw_uco_t *user_ctx, sah_Link *ptr, sah_Link **tail)
 Kernel Link Chain Constructor.
sah_Head_Descsah_Physicalise_Descriptors (sah_Head_Desc *desc)
sah_Linksah_Physicalise_Links (sah_Link *ptr)
 Convert kernel Link chain.
void sah_Stop_Mem_Map (void)
 Clean up memory manager/mapper.
os_error_code unmap_user_memory (uint32_t user_addr, uint32_t size)
void unwire_user_memory (void **page_ctx)
void * wire_user_memory (void *address, uint32_t length, void **page_ctx)


Generated by  Doxygen 1.6.0   Back to index