# CACHE Enumerated Data Types
[CACHE]

## Enumerations
enum | CACHE_Wait { CACHE_NOWAIT = 0, CACHE_WAIT = 1, CACHE_FENCE_WAIT = 2 }
| Enumeration for Cache wait flags. More...
enum | CACHE_L1Size { CACHE_L1_0KCACHE = 0, CACHE_L1_4KCACHE = 1, CACHE_L1_8KCACHE = 2, CACHE_L1_16KCACHE = 3, CACHE_L1_32KCACHE = 4, CACHE_L1_MAXIM1 = 5, CACHE_L1_MAXIM2 = 6, CACHE_L1_MAXIM3 = 7 }
| Enumeration for L1 (P or D) Sizes. More...
enum | CACHE_L2Size { CACHE_0KCACHE = 0, CACHE_32KCACHE = 1, CACHE_64KCACHE = 2, CACHE_128KCACHE = 3, CACHE_256KCACHE = 4, CACHE_512KCACHE = 5 }
| Enumeration for L2 Sizes. More...

## Enumeration Type Documentation

enum CACHE_L1Size

Enumeration for L1 (P or D) Sizes.

Enumerator:

  CACHE_L1_0KCACHE | No Cache
  CACHE_L1_4KCACHE | 4KB Cache
  CACHE_L1_8KCACHE | 8KB Cache
  CACHE_L1_16KCACHE | 16KB Cache
  CACHE_L1_32KCACHE | 32KB Cache
  CACHE_L1_MAXIM1 | MAX Cache Size
  CACHE_L1_MAXIM2 | MAX Cache Size
  CACHE_L1_MAXIM3 | MAX Cache Size

enum CACHE_L2Size

Enumeration for L2 Sizes.

For devices that have maximum caches less than the defined values, setting a higher value will map to maximum cache

Enumerator:

  CACHE_0KCACHE | No Cache
  CACHE_32KCACHE | 32KB Cache
  CACHE_64KCACHE | 64KB Cache
  CACHE_128KCACHE | 128KB Cache
  CACHE_256KCACHE | 256KB Cache
  CACHE_512KCACHE | 512KB Cache

enum CACHE_Wait

Enumeration for Cache wait flags.

This is used for specifying whether the cache operations should block till the desired operation is complete.

Enumerator:

  CACHE_NOWAIT | No blocking, the call exits after programmation of the control registers
  CACHE_WAIT | Blocking Call, the call exits after the relevant cache status registers indicate completion. For block coherence this waits on the Word count register to be come 0.
  CACHE_FENCE_WAIT | Blocking Call, For block coherence this uses the MFENCE to wait for completion

Copyright 2012, Texas Instruments Incorporated