katam/include/multi_boot_util.h

50 lines
1.1 KiB
C
Raw Normal View History

2020-05-26 01:13:54 +00:00
#ifndef GUARD_MULTI_BOOT_UTIL_H
#define GUARD_MULTI_BOOT_UTIL_H
#include "global.h"
#include "multi_boot.h"
struct MultiBootDataRecv {
vu16 data[1 + MULTIBOOT_NCHILD];
};
2020-06-03 15:28:38 +00:00
struct MultiBootStruct { // TODO: needs a better name
vu8 unk00;
vu8 unk01;
vu8 unk02;
vu8 unk03;
vu8 unk04;
vu16 unk06;
vu16 unk08;
vu16 unk0A;
vu16 unk0C;
vu16 unk0E;
const u8 *volatile srcp;
const u8 *volatile endp;
vs32 length;
u16 filler1C;
vu16 unk1E[MULTIBOOT_NCHILD];
vu8 unk24;
vu8 unk25;
vu8 unk26;
vu16 unk28;
vu8 unk2A;
vu8 unk2B;
};
extern IntrFunc gTimer3IntrBkp;
extern struct MultiBootDataRecv gMultiBootDataRecv;
extern u32 gUnk_03000480; // always zero. debug variable?
extern IntrFunc gMultiSioIntrBkp;
extern struct MultiBootStruct gMultiBootStruct;
extern struct MultiBootParam gMultiBootParam;
extern vs32 gUnk_0300050C;
2020-05-26 01:13:54 +00:00
void sub_0803024C(void);
2020-05-26 04:09:06 +00:00
void sub_08030B38(void);
2020-05-30 04:00:43 +00:00
void MultiBootInitWithParams(const void *start, const void *end);
2020-05-26 04:09:06 +00:00
void sub_08030C1C(void);
void sub_08030C40(u16);
2020-05-26 01:13:54 +00:00
#endif // GUARD_MULTI_BOOT_UTIL_H