📄 cachecy604lib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/cacheCy604Lib.html - generated by refgen from ../sparc/cacheCy604Lib.c --> <title> cacheCy604Lib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>cacheCy604Lib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>cacheCy604Lib</strong> - Cypress CY7C604/605 SPARC cache management library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./cacheCy604Lib.html#cacheCy604LibInit">cacheCy604LibInit</a></i>( )</b> - initialize the Cypress CY7C604 cache library<br><b><i><a href="./cacheCy604Lib.html#cacheCy604ClearLine">cacheCy604ClearLine</a></i>( )</b> - clear a line from a CY7C604 cache<br><b><i><a href="./cacheCy604Lib.html#cacheCy604ClearPage">cacheCy604ClearPage</a></i>( )</b> - clear a page from a CY7C604 cache<br><b><i><a href="./cacheCy604Lib.html#cacheCy604ClearSegment">cacheCy604ClearSegment</a></i>( )</b> - clear a segment from a CY7C604 cache<br><b><i><a href="./cacheCy604Lib.html#cacheCy604ClearRegion">cacheCy604ClearRegion</a></i>( )</b> - clear a region from a CY7C604 cache<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains architecture-specific cache library functions forthe Cypress CY7C604 architecture. There is a 64-Kbyte mixed instructionand data cache that operates in write-through or copyback mode. Eachcache line contains 32 bytes. Cache tag operations are performed with"line," "page," "segment," or "region" granularity.<p>MMU (Memory Management Unit) support is needed to mark pages cacheableor non-cacheable. For more information, see the manual entry for vmLib.<p>For general information about caching, see the manual entry for cacheLib.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>cacheLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheCy604Lib.html#top">cacheCy604Lib</a></b>, <b><a href="./cacheLib.html#top">cacheLib</a></b>, <b><a href="./vmLib.html#top">vmLib</a></b><hr><a name="cacheCy604LibInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheCy604LibInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheCy604LibInit</i>( )</strong> - initialize the Cypress CY7C604 cache library</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheCy604LibInit ( CACHE_MODE instMode, /* instruction cache mode */ CACHE_MODE dataMode /* data cache mode */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the function pointers for the Cypress CY7C604cache library. The board support package can select this cache library byassigning the function pointer <b>sysCacheLibInit</b> to <b><i><a href="./cacheCy604Lib.html#cacheCy604LibInit">cacheCy604LibInit</a></i>( )</b>.<p>The available cache modes are <b>CACHE_WRITETHROUGH</b> and <b>CACHE_COPYBACK</b>.Write-through uses "no-write allocate"; copyback uses "write allocate." <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if cache control is not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheCy604Lib.html#top">cacheCy604Lib</a></b><hr><a name="cacheCy604ClearLine"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheCy604ClearLine</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheCy604ClearLine</i>( )</strong> - clear a line from a CY7C604 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheCy604ClearLine ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified line from the specified CY7C604 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheCy604Lib.html#top">cacheCy604Lib</a></b><hr><a name="cacheCy604ClearPage"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheCy604ClearPage</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheCy604ClearPage</i>( )</strong> - clear a page from a CY7C604 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheCy604ClearPage ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates the specified page from the specified CY7C604 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheCy604Lib.html#top">cacheCy604Lib</a></b><hr><a name="cacheCy604ClearSegment"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheCy604ClearSegment</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheCy604ClearSegment</i>( )</strong> - clear a segment from a CY7C604 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheCy604ClearSegment ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified segment from the specified CY7C604 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheCy604Lib.html#top">cacheCy604Lib</a></b><hr><a name="cacheCy604ClearRegion"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>cacheCy604ClearRegion</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>cacheCy604ClearRegion</i>( )</strong> - clear a region from a CY7C604 cache</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS cacheCy604ClearRegion ( CACHE_TYPE cache, /* cache to clear */ void * address /* virtual address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine flushes and invalidates a specified region from the specified CY7C604 cache.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the cache type is invalid or the cache controlis not supported.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./cacheCy604Lib.html#top">cacheCy604Lib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -