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