<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>2014.1_doc: xil_testcache.c File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.5 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <div class="nav"> <a class="el" href="dir_U_3A_2Fdoxygen_5Fpublish_2Fsources_2Fbsp_2Fstandalone_5Fv4_5F0_2Fsrc_2Fcommon_2F.html">common</a></div> <h1>xil_testcache.c File Reference</h1><code>#include "xil_cache.h"</code><br> <code>#include "<a class="el" href="xil__testcache_8h.html">xil_testcache.h</a>"</code><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xil__testcache_8c.html#d819247907f393f5e85b92d73a177fbf">Xil_TestDCacheRange</a> (void)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xil__testcache_8c.html#8979cd4e53fff9df6b5c69e8647fedeb">Xil_TestDCacheAll</a> (void)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xil__testcache_8c.html#b56387ab13d5dd4654df1e66532cd239">Xil_TestICacheRange</a> (void)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xil__testcache_8c.html#c79c07cffe9ea497526cc5d557f64971">Xil_TestICacheAll</a> (void)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Contains utility functions to test cache.<p> <pre> MODIFICATION HISTORY:</pre><p> <pre> Ver Who Date Changes ----- ---- -------- ------------------------------------------------------- 1.00a hbm 07/28/09 Initial release</pre><p> <pre> </pre><p> <dl compact><dt><b>Note:</b></dt><dd></dd></dl> This file contain functions that all operate on HAL. <hr><h2>Function Documentation</h2> <a class="anchor" name="8979cd4e53fff9df6b5c69e8647fedeb"></a><!-- doxytag: member="xil_testcache.c::Xil_TestDCacheAll" ref="8979cd4e53fff9df6b5c69e8647fedeb" args="(void)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int Xil_TestDCacheAll </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Perform DCache all related API test such as Xil_DCacheFlush and Xil_DCacheInvalidate. This test function writes a constant value to the Data array, flushes the DCache, writes a new value, then invalidates the DCache.<p> <dl compact><dt><b>Returns:</b></dt><dd><ul> <li>0 is returned for a pass</li><li>-1 is returned for a failure </li></ul> </dd></dl> </td> </tr> </table> <a class="anchor" name="d819247907f393f5e85b92d73a177fbf"></a><!-- doxytag: member="xil_testcache.c::Xil_TestDCacheRange" ref="d819247907f393f5e85b92d73a177fbf" args="(void)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int Xil_TestDCacheRange </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Perform DCache range related API test such as Xil_DCacheFlushRange and Xil_DCacheInvalidateRange. This test function writes a constant value to the Data array, flushes the range, writes a new value, then invalidates the corresponding range.<p> <dl compact><dt><b>Returns:</b></dt><dd></dd></dl> <ul> <li>0 is returned for a pass</li><li>-1 is returned for a failure </li></ul> </td> </tr> </table> <a class="anchor" name="c79c07cffe9ea497526cc5d557f64971"></a><!-- doxytag: member="xil_testcache.c::Xil_TestICacheAll" ref="c79c07cffe9ea497526cc5d557f64971" args="(void)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int Xil_TestICacheAll </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Perform Xil_ICacheInvalidate().<p> <dl compact><dt><b>Returns:</b></dt><dd></dd></dl> <ul> <li>0 is returned for a pass The function will hang if it fails. </li></ul> </td> </tr> </table> <a class="anchor" name="b56387ab13d5dd4654df1e66532cd239"></a><!-- doxytag: member="xil_testcache.c::Xil_TestICacheRange" ref="b56387ab13d5dd4654df1e66532cd239" args="(void)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int Xil_TestICacheRange </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Perform Xil_ICacheInvalidateRange() on a few function pointers.<p> <dl compact><dt><b>Returns:</b></dt><dd></dd></dl> <ul> <li>0 is returned for a pass The function will hang if it fails. </li></ul> </td> </tr> </table> <hr size="1"><address style="align: right;"><small>Generated on Thu Feb 13 14:48:12 2014 for 2014.1_doc by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address> </body> </html>