GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel6-32
#include <PBS/impl/CACHE.h.xx-xxx-xxx>
Defines | |
#define | CACHE_K_DATA_LINE_SIZE (1 << CACHE_K_DATA_LINE_SIZE_PWR2) |
Size, in bytes, of a data cache line. This is just a convenience symbol and is the equivalent of (1 << CACHE_K_DATA_LINE_SIZE_PWR2). | |
#define | CACHE_K_DATA_LINE_MASK (CACHE_K_DATA_LINE_SIZE - 1) |
Mask of the low bits of a data address cache line. | |
#define | CACHE_K_INSTRUCTION_LINE_SIZE (1 << CACHE_K_INSTRUCTION_LINE_SIZE_PWR2) |
Size, in bytes, of a instruction cache line. This is just a convenience symbol and is the equivalent of (1 << CACHE_K_DATA_LINE_SIZE_PWR2). | |
#define | CACHE_K_INSTRUCTION_LINE_MASK (CACHE_K_INSTRUCTION_LINE_SIZE - 1) |
Mask of the low bits of an instruction address cache line. | |
#define | _CACHE_K_INSTRUCTION 0 |
Internal use only symbol. | |
#define | _CACHE_K_DATA 1 |
Internal use only symbol. | |
#define | _CACHE_K_BRANCH 2 |
Internal use only symbol. | |
Typedefs | |
typedef enum _CACHE_type | CACHE_type |
Typedef for enum _CACHE_type. | |
Enumerations | |
enum | _CACHE_type { CACHE_K_INSTRUCTION = _CACHE_K_INSTRUCTION, CACHE_K_DATA = _CACHE_K_DATA, CACHE_K_BRANCH = _CACHE_K_BRANCH } |
The target cache type. More... | |
Functions | |
int | CACHE_disable (CACHE_type type) |
Disable the specified cache. | |
int | CACHE_enable (CACHE_type type) |
Enable the specified cache. | |
int | CACHE_clear (CACHE_type type, void *address, int nbytes) |
Clear all or some entries from a cache. | |
int | CACHE_flush (CACHE_type type, void *address, int nbytes) |
Flush all or some of a specified cache. | |
int | CACHE_invalidate (CACHE_type type, void *address, int nbytes) |
invalidate all or some of a specified cache | |
int | CACHE_lock (CACHE_type type, void *address, int nbytes) |
Lock all or part of a specified cache. | |
int | CACHE_unlock (CACHE_type type, void *address, int nbytes) |
Unlock all or part of a specified cache. | |
int | CACHE_pipeFlush (void) |
Flush the processor write buffers to memory. |
CVS $Id: CACHE.h,v 1.5 2011/03/24 23:05:41 apw Exp $
enum _CACHE_type |
int CACHE_clear | ( | CACHE_type | type, | |
void * | address, | |||
int | nbytes | |||
) |
Clear all or some entries from a cache.
type | The cache type, i.e. one of CACHE_K_BRANCH, CACHE_K_DATA or CACHE_K_INSTRUCTION. | |
address | The address to start clearing at | |
nbytes | The number of bytes to clear |
int CACHE_disable | ( | CACHE_type | type | ) |
Disable the specified cache.
type | The cache type, i.e. one of CACHE_K_DATA or CACHE_K_INSTRUCTION. |
int CACHE_enable | ( | CACHE_type | type | ) |
Enable the specified cache.
type | The cache type, i.e. one of CACHE_K_DATA or CACHE_K_INSTRUCTION. |
int CACHE_flush | ( | CACHE_type | type, | |
void * | address, | |||
int | nbytes | |||
) |
Flush all or some of a specified cache.
type | The cache type, i.e. one of CACHE_K_BRANCH, CACHE_K_DATA or CACHE_K_INSTRUCTION. | |
address | The address to start flushing at | |
nbytes | The number of bytes to flush |
int CACHE_invalidate | ( | CACHE_type | type, | |
void * | address, | |||
int | nbytes | |||
) |
invalidate all or some of a specified cache
type | The cache type, i.e. one of CACHE_K_BRANCH, a\ CACHE_K_DATA or CACHE_K_INSTRUCTION. | |
address | The address to start invalidating at | |
nbytes | The number of bytes to invalidate |
int CACHE_lock | ( | CACHE_type | type, | |
void * | address, | |||
int | nbytes | |||
) |
Lock all or part of a specified cache.
type | The cache type, i.e. one of CACHE_K_DATA or CACHE_K_INSTRUCTION. | |
address | The address to start locking at | |
nbytes | The number of bytes to lock |
int CACHE_pipeFlush | ( | void | ) |
Flush the processor write buffers to memory.
int CACHE_unlock | ( | CACHE_type | type, | |
void * | address, | |||
int | nbytes | |||
) |
Unlock all or part of a specified cache.
type | The cache type, i.e. one of CACHE_K_DATA or CACHE_K_INSTRUCTION. | |
address | The address to start locking at | |
nbytes | The number of bytes to lock |