MEMUTILS

Functions

Void MEMUTILS_cacheInv (Ptr addr, Int sizeInBytes)
 Invalidate a range of cache.
Void MEMUTILS_cacheWb (Ptr addr, Int sizeInBytes)
 Write back cache.
Void MEMUTILS_cacheWbInv (Ptr addr, Int sizeInBytes)
 Write back and invalidate cache.
Void * MEMUTILS_getPhysicalAddr (Ptr addr)
 Obtain physical (hardware specific) address.

Detailed Description

MEMUTILS is a set of APIs that can be called by xDAIS algorithms to manage their Cache and also to obtain Physical addresses for algorithms that need to program accelarators (i.e., EDMA3, HDVICP etc)

Remarks:

Function Documentation

Void MEMUTILS_cacheInv ( Ptr  addr,
Int  sizeInBytes 
)

Invalidate a range of cache.

Parameters:
[in] addr Address of the beginning of the buffer to invalidate.
[in] sizeInBytes Size of the buffer to invalidate.
Remarks:
In addition to application usage, this is often called by a skeleton implementor after it has received a shared memory buffer from another processor, and before it invokes an algorithm's interface which will operate on that shared memory buffer.
See also:
MEMUTILS_cacheWb()
MEMUTILS_cacheWbInv()
Void MEMUTILS_cacheWb ( Ptr  addr,
Int  sizeInBytes 
)

Write back cache.

Parameters:
[in] addr Address of the beginning of the buffer to writeback.
[in] sizeInBytes Size of the buffer to writeback.
See also:
MEMUTILS_cacheInv()
MEMUTILS_cacheWbInv()
Void MEMUTILS_cacheWbInv ( Ptr  addr,
Int  sizeInBytes 
)

Write back and invalidate cache.

Parameters:
[in] addr Address of the beginning of the buffer to writeback and invalidate.
[in] sizeInBytes Size of the buffer to writeback invalidate.
See also:
MEMUTILS_cacheInv()
MEMUTILS_cacheWb()
Void* MEMUTILS_getPhysicalAddr ( Ptr  addr  ) 

Obtain physical (hardware specific) address.

Parameters:
[in] addr Address to convert to physical (hardware) address

Copyright 2009, Texas Instruments Incorporated