donut-decomp/include/os.h

48 lines
802 B
C
Raw Normal View History

2021-10-14 15:50:30 +00:00
#pragma once
2022-01-03 09:43:38 +00:00
#include <dvd.h>
2021-10-14 19:10:04 +00:00
#include <types.h>
2021-10-14 15:50:30 +00:00
#ifdef __cplusplus
extern "C" {
#endif
void OSReport(const char *fmt, ...);
2021-10-14 19:10:04 +00:00
BOOL OSDisableInterrupts(void);
BOOL OSResetInterrupts(BOOL enabled);
2021-10-21 14:47:14 +00:00
void *OSGetMEM1ArenaHi();
void *OSGetMEM1ArenaLo();
void *OSGetMEM2ArenaHi();
void *OSGetMEM2ArenaLo();
void *OSAllocFromMEM1ArenaLo(u32 size, u32 align);
void *OSAllocFromMEM2ArenaLo(u32 size, u32 align);
2022-01-03 08:59:10 +00:00
typedef struct OSIOSRev {
u8 unk;
u8 branch;
u8 major;
u8 minor;
/* please, broad-on, it's year-month-day */
u8 month;
u8 day;
u16 year;
} OSIOSRev;
2022-01-03 09:43:38 +00:00
typedef struct OSBootInfo {
DVDDiskID diskId;
u32 bootCode;
u32 version;
u32 physicalMemorySize;
u32 boardModel;
u32 arenaLo;
u32 arenaHi;
u32 startOfFST;
u32 fstSize;
} OSBootInfo;
2021-10-14 15:50:30 +00:00
#ifdef __cplusplus
}
#endif