mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
850fae1aa3
* m_Do_main / f_ap_game debug stuff * revolution sdk compatibility * f_op_actor debug work * rename fopAcM_SetupActor to fopAcM_ct * fix build * fix jp/pal splits
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#ifndef _REVOLUTION_OSCACHE_H_
|
|
#define _REVOLUTION_OSCACHE_H_
|
|
|
|
#include <revolution/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void DCInvalidateRange(void* addr, u32 nBytes);
|
|
void DCFlushRange(void* addr, u32 nBytes);
|
|
void DCStoreRange(void* addr, u32 nBytes);
|
|
void DCFlushRangeNoSync(void* addr, u32 nBytes);
|
|
void DCStoreRangeNoSync(void* addr, u32 nBytes);
|
|
void DCZeroRange(void* addr, u32 nBytes);
|
|
void DCTouchRange(void* addr, u32 nBytes);
|
|
void ICInvalidateRange(void* addr, u32 nBytes);
|
|
|
|
#define LC_BASE_PREFIX 0xE000
|
|
#define LC_BASE (LC_BASE_PREFIX << 16)
|
|
#define LCGetBase() ((void*)LC_BASE)
|
|
|
|
void LCEnable(void);
|
|
void LCDisable(void);
|
|
void LCLoadBlocks(void* destTag, void* srcAddr, u32 numBlocks);
|
|
void LCStoreBlocks(void* destAddr, void* srcTag, u32 numBlocks);
|
|
u32 LCLoadData(void* destAddr, void* srcAddr, u32 nBytes);
|
|
u32 LCStoreData(void* destAddr, void* srcAddr, u32 nBytes);
|
|
u32 LCQueueLength(void);
|
|
void LCQueueWait(u32 len);
|
|
void LCFlushQueue(void);
|
|
void __OSCacheInit(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|