mirror of
https://github.com/TheOnlyZac/sly1.git
synced 2024-11-23 05:39:54 +00:00
45 lines
758 B
C++
45 lines
758 B
C++
/**
|
|
* @file dmas.h
|
|
*/
|
|
#ifndef DMAS_H
|
|
#define DMAS_H
|
|
|
|
#include "common.h"
|
|
#include <shd.h>
|
|
#include <sce/dma.h>
|
|
|
|
class DMAS
|
|
{
|
|
uchar* m_pbMax;
|
|
uchar* m_ab;
|
|
QW* m_pqwCnt;
|
|
uchar* m_pb;
|
|
int m_fPad;
|
|
int m_fEndPrim;
|
|
|
|
DMAS();
|
|
|
|
void Clear();
|
|
void Reset();
|
|
void AllocGlobal(int);
|
|
void AllocSw(int, int);
|
|
void AllocStack(int);
|
|
void AllocStatic(int, QW*);
|
|
void Detach(int*, QW**);
|
|
void DetachCopySw(int*, QW**, QW*, int);
|
|
void Send(sceDmaChan* chan);
|
|
void AddDmaCnt();
|
|
void AddDmaRefs(int, QW*);
|
|
void AddDmaCall(QW*);
|
|
void AddDmaRet();
|
|
void AddDmaBulk(int, QW*);
|
|
void AddDmaEnd();
|
|
void EndDmaCnt();
|
|
|
|
virtual void EndPrim();
|
|
};
|
|
|
|
static void StartupDma();
|
|
|
|
#endif // DMAS_H
|