1
0
mirror of https://github.com/blawar/ooot.git synced 2024-07-04 18:13:37 +00:00
ooot/include/z64dma.h

25 lines
750 B
C
Raw Normal View History

#ifndef Z64_DMA_H
#define Z64_DMA_H
2020-03-23 01:24:00 +00:00
#include "ultra64.h"
2020-03-23 01:24:00 +00:00
2022-02-12 19:50:06 +00:00
struct DmaRequest {
2021-12-27 19:23:03 +00:00
/* 0x00 */ void* vromAddr; // VROM address (source)
2020-03-23 01:24:00 +00:00
/* 0x04 */ void* dramAddr; // DRAM address (destination)
2021-12-27 19:23:03 +00:00
/* 0x08 */ uintptr_t size; // File Transfer size
/* 0x0C */ const char* filename; // Filename for debugging
2020-03-23 01:24:00 +00:00
/* 0x10 */ s32 line; // Line for debugging
/* 0x14 */ s32 unk_14;
/* 0x18 */ OSMesgQueue* notifyQueue; // Message queue for the notification message
/* 0x1C */ OSMesg notifyMsg; // Completion notification message
2022-02-12 19:50:06 +00:00
}; // size = 0x20
2020-03-23 01:24:00 +00:00
2022-02-12 19:50:06 +00:00
struct DmaEntry {
2021-12-27 19:23:03 +00:00
/* 0x00 */ void* vromStart;
/* 0x04 */ void* vromEnd;
/* 0x08 */ void* romStart;
/* 0x0C */ void* romEnd;
2022-02-12 19:50:06 +00:00
};
2020-03-23 01:24:00 +00:00
#endif