VxWorks Reference Manual : Libraries

cacheCy604Lib

NAME

cacheCy604Lib - Cypress CY7C604/605 SPARC cache management library

ROUTINES

cacheCy604LibInit( ) - initialize the Cypress CY7C604 cache library
cacheCy604ClearLine( ) - clear a line from a CY7C604 cache
cacheCy604ClearPage( ) - clear a page from a CY7C604 cache
cacheCy604ClearSegment( ) - clear a segment from a CY7C604 cache
cacheCy604ClearRegion( ) - clear a region from a CY7C604 cache

DESCRIPTION

This library contains architecture-specific cache library functions for the Cypress CY7C604 architecture. There is a 64-Kbyte mixed instruction and data cache that operates in write-through or copyback mode. Each cache line contains 32 bytes. Cache tag operations are performed with "line," "page," "segment," or "region" granularity.

MMU (Memory Management Unit) support is needed to mark pages cacheable or non-cacheable. For more information, see the manual entry for vmLib.

For general information about caching, see the manual entry for cacheLib.

INCLUDE FILES

cacheLib.h

SEE ALSO

cacheCy604Lib, cacheLib, vmLib


Libraries : Routines

cacheCy604LibInit( )

NAME

cacheCy604LibInit( ) - initialize the Cypress CY7C604 cache library

SYNOPSIS

STATUS cacheCy604LibInit
    (
    CACHE_MODE instMode, /* instruction cache mode */
    CACHE_MODE dataMode  /* data cache mode */
    )

DESCRIPTION

This routine initializes the function pointers for the Cypress CY7C604 cache library. The board support package can select this cache library by assigning the function pointer sysCacheLibInit to cacheCy604LibInit( ).

The available cache modes are CACHE_WRITETHROUGH and CACHE_COPYBACK. Write-through uses "no-write allocate"; copyback uses "write allocate."

RETURNS

OK, or ERROR if cache control is not supported.

SEE ALSO

cacheCy604Lib


Libraries : Routines

cacheCy604ClearLine( )

NAME

cacheCy604ClearLine( ) - clear a line from a CY7C604 cache

SYNOPSIS

STATUS cacheCy604ClearLine
    (
    CACHE_TYPE cache,  /* cache to clear */
    void *     address /* virtual address */
    )

DESCRIPTION

This routine flushes and invalidates a specified line from the specified CY7C604 cache.

RETURNS

OK, or ERROR if the cache type is invalid or the cache control is not supported.

SEE ALSO

cacheCy604Lib


Libraries : Routines

cacheCy604ClearPage( )

NAME

cacheCy604ClearPage( ) - clear a page from a CY7C604 cache

SYNOPSIS

STATUS cacheCy604ClearPage
    (
    CACHE_TYPE cache,  /* cache to clear */
    void *     address /* virtual address */
    )

DESCRIPTION

This routine flushes and invalidates the specified page from the specified CY7C604 cache.

RETURNS

OK, or ERROR if the cache type is invalid or the cache control is not supported.

SEE ALSO

cacheCy604Lib


Libraries : Routines

cacheCy604ClearSegment( )

NAME

cacheCy604ClearSegment( ) - clear a segment from a CY7C604 cache

SYNOPSIS

STATUS cacheCy604ClearSegment
    (
    CACHE_TYPE cache,  /* cache to clear */
    void *     address /* virtual address */
    )

DESCRIPTION

This routine flushes and invalidates a specified segment from the specified CY7C604 cache.

RETURNS

OK, or ERROR if the cache type is invalid or the cache control is not supported.

SEE ALSO

cacheCy604Lib


Libraries : Routines

cacheCy604ClearRegion( )

NAME

cacheCy604ClearRegion( ) - clear a region from a CY7C604 cache

SYNOPSIS

STATUS cacheCy604ClearRegion
    (
    CACHE_TYPE cache,  /* cache to clear */
    void *     address /* virtual address */
    )

DESCRIPTION

This routine flushes and invalidates a specified region from the specified CY7C604 cache.

RETURNS

OK, or ERROR if the cache type is invalid or the cache control is not supported.

SEE ALSO

cacheCy604Lib