mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-19 04:57:39 +01:00
25 lines
566 B
C
25 lines
566 B
C
#ifndef GUARD_DMA3_H
|
|
#define GUARD_DMA3_H
|
|
|
|
extern u8 gDma3ManagerLocked;
|
|
extern u8 gDma3RequestCursor;
|
|
|
|
struct DmaRequestsStruct
|
|
{
|
|
/* 0x00 */ const u8 *src;
|
|
/* 0x04 */ u8 *dest;
|
|
/* 0x08 */ u16 size;
|
|
/* 0x0A */ u16 mode;
|
|
/* 0x0C */ u32 value;
|
|
};
|
|
|
|
extern struct DmaRequestsStruct gDma3Requests[128];
|
|
|
|
void ClearDma3Requests(void);
|
|
void ProcessDma3Requests(void);
|
|
int RequestDma3Copy(const void *src, void *dest, u16 size, u8 mode);
|
|
int RequestDma3Fill(s32 value, void *dest, u16 size, u8 mode);
|
|
int CheckForSpaceForDma3Request(s16 index);
|
|
|
|
#endif // GUARD_DMA3_H
|