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
|
|
|
|
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
|
2021-02-14 00:49:40 +00:00
|
|
|
/* 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-09-19 01:45:39 +00:00
|
|
|
|
2020-03-23 01:24:00 +00:00
|
|
|
#endif
|