![]() |
![]() |
|
SysLink API Reference
2.21.03.11
|
Defines Cache API interface.
Go to the source code of this file.
Macros | |
| #define | Cache_S_ALREADYSETUP (1) |
| Cache module is already setup. | |
| #define | Cache_S_SUCCESS (0) |
| Operation is successful. | |
| #define | Cache_E_FAIL (-1) |
| Generic failure. | |
| #define | Cache_E_INVALIDARG (-2) |
| Argument passed to a function is invalid. | |
| #define | Cache_E_OSFAILURE (-3) |
| Failure in OS call. | |
Enumerations | |
| enum | Cache_Type { Cache_Type_L1P = 0x1, Cache_Type_L1D = 0x2, Cache_Type_L1 = 0x3, Cache_Type_L2P = 0x4, Cache_Type_L2D = 0x8, Cache_Type_L2 = 0xC, Cache_Type_ALL = 0xffff } |
| enum | Cache_Mode { Cache_Mode_FREEZE, Cache_Mode_BYPASS, Cache_Mode_NORMAL } |
Functions | |
| Void | Cache_inv (Ptr blockPtr, UInt32 byteCnt, Bits16 type, Bool wait) |
| Invalidate the Cache module. | |
| Void | Cache_wb (Ptr blockPtr, UInt32 byteCnt, Bits16 type, Bool wait) |
| Writeback the Cache module. | |
| Void | Cache_wbInv (Ptr blockPtr, UInt32 byteCnt, Bits16 type, Bool wait) |
| Write Back and Invalidate the Cache module. | |
| Void | Cache_wait (Void) |
| Wait for cache operation to complete. | |
| enum Cache_Mode | Cache_setMode (Bits16 type, enum Cache_Mode mode) |
| Set the mode of Cache module. | |
| #define Cache_S_ALREADYSETUP (1) |
Cache module is already setup.
| #define Cache_S_SUCCESS (0) |
Operation is successful.
| #define Cache_E_FAIL (-1) |
Generic failure.
| #define Cache_E_INVALIDARG (-2) |
Argument passed to a function is invalid.
| #define Cache_E_OSFAILURE (-3) |
Failure in OS call.
| enum Cache_Type |
| enum Cache_Mode |
Invalidate the Cache module.
Writeback the Cache module.
Write Back and Invalidate the Cache module.
Wait for cache operation to complete.
| enum Cache_Mode Cache_setMode | ( | Bits16 | type, |
| enum Cache_Mode | mode | ||
| ) |
Set the mode of Cache module.