2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CARAMMANAGER
|
|
|
|
#define _CARAMMANAGER
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
class CARAMManager {
|
|
|
|
public:
|
|
|
|
static void Shutdown();
|
|
|
|
static void CollectGarbage();
|
2022-09-18 06:05:46 +00:00
|
|
|
static void PreInitializeAlloc(uint size) { mPreInitializeAlloc += size; }
|
2022-09-13 04:26:54 +00:00
|
|
|
static void Initialize(uint);
|
2022-11-17 10:12:03 +00:00
|
|
|
static void WaitForAllDMAsToComplete();
|
2022-12-03 21:31:54 +00:00
|
|
|
static void* GetInvalidAlloc() { return kInvalidAlloc; }
|
|
|
|
static uint GetInvalidDMAHandle() { return kInvalidHandle; }
|
|
|
|
static bool CancelDMA(uint);
|
|
|
|
static void WaitForDMACompletion(uint);
|
|
|
|
static void Free(const void* ptr);
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
private:
|
2022-10-09 05:37:23 +00:00
|
|
|
static uint mPreInitializeAlloc;
|
2022-12-03 21:31:54 +00:00
|
|
|
static void* kInvalidAlloc;
|
|
|
|
static int kInvalidHandle;
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CARAMMANAGER
|