linux/drivers/mxc/security/sahara2/sah_memory_mapper.c File Reference

Re-creates SAHARA data structures in Kernel memory such that they are suitable for DMA. Provides support for kernel API. More...


Detailed Description

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

This file needs to be ported.

The memory mapper gets a call at sah_Init_Mem_Map() during driver initialization.

The routine sah_Copy_Descriptors() is used to bring descriptor chains from user memory down to kernel memory, relink using physical addresses, and make sure that all user data will be accessible by the Sahara DMA. sah_Destroy_Descriptors() does the inverse.

The sah_Alloc_Block(), sah_Free_Block(), and sah_Block_Add_Page() routines implement a cache of free blocks used when allocating descriptors and links within the kernel.

The memory mapper gets a call at sah_Stop_Mem_Map() during driver shutdown.

footer
©  Freescale Semiconductor, Inc., 2007.  All rights reserved.
Freescale Confidential Proprietary
NDA Required
doxygen