summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/SDK/DVD/dvd.h33
-rw-r--r--include/SDK/DVD/dvdFatal.h14
-rw-r--r--include/SDK/DVD/dvdfs.h35
-rw-r--r--include/SDK/NAND/NANDCore.h14
-rw-r--r--include/SDK/OS/OSCache.h1
-rw-r--r--include/SDK/OS/OSInterrupt.h15
-rw-r--r--include/SDK/OS/OSSemaphore.h21
-rw-r--r--include/SDK/dvd.h16
-rw-r--r--include/SDK/nand.h14
-rw-r--r--include/SDK/os.h2
-rw-r--r--include/code_801DBE90.h40
-rw-r--r--include/code_801DCE6C.h31
-rw-r--r--include/code_80223C54.h15
-rw-r--r--include/code_80224104.h17
-rw-r--r--include/code_80249BC8.h14
15 files changed, 282 insertions, 0 deletions
diff --git a/include/SDK/DVD/dvd.h b/include/SDK/DVD/dvd.h
new file mode 100644
index 0000000..e9517dc
--- /dev/null
+++ b/include/SDK/DVD/dvd.h
@@ -0,0 +1,33 @@
+#ifndef POKEREVO_DVD_DVD_H
+#define POKEREVO_DVD_DVD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct DVDDiskID
+{
+ char gameCode[4];
+ char makerCode[2];
+ u8 unk6;
+ u8 unk7;
+} DVDDiskID;
+
+typedef struct DVDCommandBlock
+{
+ u8 unk0[0x30];
+} DVDCommandBlock;
+
+typedef void (*DVDCBCallback)(s32 result, DVDCommandBlock* block);
+
+DVDDiskID* DVDGetCurrentDiskID(void);
+void DVDInit(void);
+s32 DVDGetDriveStatus(void);
+BOOL DVDCheckDiskAsync(DVDCommandBlock* block, DVDCBCallback callback);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_DVD_DVD_H
diff --git a/include/SDK/DVD/dvdFatal.h b/include/SDK/DVD/dvdFatal.h
new file mode 100644
index 0000000..3533e71
--- /dev/null
+++ b/include/SDK/DVD/dvdFatal.h
@@ -0,0 +1,14 @@
+#ifndef POKEREVO_DVDFATAL_H
+#define POKEREVO_DVDFATAL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BOOL DVDSetAutoFatalMessaging(BOOL enable);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_DVDFATAL_H
diff --git a/include/SDK/DVD/dvdfs.h b/include/SDK/DVD/dvdfs.h
new file mode 100644
index 0000000..a5283eb
--- /dev/null
+++ b/include/SDK/DVD/dvdfs.h
@@ -0,0 +1,35 @@
+#ifndef POKEREVO_DVDFS_H
+#define POKEREVO_DVDFS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct DVDFileInfo DVDFileInfo;
+
+typedef void (*DVDCallback)(s32 result, DVDFileInfo* fileInfo);
+
+struct DVDFileInfo
+{
+ u8 unk0[0x34];
+ size_t unk34;
+ u8 unk38[0x8];
+ void (*unk40)(s32, void*);
+ void* unk44;
+ u32 unk48;
+};
+
+BOOL DVDOpen(const char*, DVDFileInfo*);
+BOOL DVDClose(DVDFileInfo*);
+s32 DVDConvertPathToEntrynum(const char* fileName);
+s32 DVDReadPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, s32 prio);
+s32 DVDReadAsyncPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, DVDCallback callback, s32 prio);
+s32 DVDSeekAsyncPrio(DVDFileInfo* fileInfo, s32 offset, DVDCallback callback, s32 prio);
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_DVDFS_H
diff --git a/include/SDK/NAND/NANDCore.h b/include/SDK/NAND/NANDCore.h
new file mode 100644
index 0000000..0f2811f
--- /dev/null
+++ b/include/SDK/NAND/NANDCore.h
@@ -0,0 +1,14 @@
+#ifndef POKEREVO_NANDCORE_H
+#define POKEREVO_NANDCORE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+s32 NANDInit(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_NANDCORE_H
diff --git a/include/SDK/OS/OSCache.h b/include/SDK/OS/OSCache.h
index a6fb490..75dd2ca 100644
--- a/include/SDK/OS/OSCache.h
+++ b/include/SDK/OS/OSCache.h
@@ -5,6 +5,7 @@
extern "C" {
#endif
+void DCInvalidateRange(void* startAddr, u32 nBytes);
void LCEnable(void);
#define LC_BASE (0xE000 << 16)
#define LCGetBase() ((void*)LC_BASE)
diff --git a/include/SDK/OS/OSInterrupt.h b/include/SDK/OS/OSInterrupt.h
new file mode 100644
index 0000000..700faf6
--- /dev/null
+++ b/include/SDK/OS/OSInterrupt.h
@@ -0,0 +1,15 @@
+#ifndef POKEREVO_OSINTERRUPT_H
+#define POKEREVO_OSINTERRUPT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BOOL OSDisableInterrupts(void);
+void OSRestoreInterrupts(BOOL enable);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_OSINTERRUPT_H
diff --git a/include/SDK/OS/OSSemaphore.h b/include/SDK/OS/OSSemaphore.h
new file mode 100644
index 0000000..46e7e03
--- /dev/null
+++ b/include/SDK/OS/OSSemaphore.h
@@ -0,0 +1,21 @@
+#ifndef POKEREVO_OSSEMAPHORE_H
+#define POKEREVO_OSSEMAPHORE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct OSSemaphore
+{
+ u8 unk0[0x10];
+} OSSemaphore;
+
+s32 OSSignalSemaphore(OSSemaphore* sem);
+void OSInitSemaphore(OSSemaphore* sem, s32 count);
+s32 OSWaitSemaphore(OSSemaphore* sem);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_OSSEMAPHORE_H
diff --git a/include/SDK/dvd.h b/include/SDK/dvd.h
new file mode 100644
index 0000000..d2cc09e
--- /dev/null
+++ b/include/SDK/dvd.h
@@ -0,0 +1,16 @@
+#ifndef POKEREVO_DVD_H
+#define POKEREVO_DVD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "SDK/DVD/dvd.h"
+#include "SDK/DVD/dvdFatal.h"
+#include "SDK/DVD/dvdfs.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_DVD_H
diff --git a/include/SDK/nand.h b/include/SDK/nand.h
new file mode 100644
index 0000000..c20ee68
--- /dev/null
+++ b/include/SDK/nand.h
@@ -0,0 +1,14 @@
+#ifndef POKEREVO_NAND_H
+#define POKEREVO_NAND_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "SDK/NAND/NANDCore.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_NAND_H
diff --git a/include/SDK/os.h b/include/SDK/os.h
index 10d4153..d2272f0 100644
--- a/include/SDK/os.h
+++ b/include/SDK/os.h
@@ -7,6 +7,8 @@ extern "C" {
#include "SDK/OS/OSAlloc.h"
#include "SDK/OS/OSCache.h"
+#include "SDK/OS/OSInterrupt.h"
+#include "SDK/OS/OSSemaphore.h"
#ifdef __cplusplus
}
diff --git a/include/code_801DBE90.h b/include/code_801DBE90.h
new file mode 100644
index 0000000..49889e7
--- /dev/null
+++ b/include/code_801DBE90.h
@@ -0,0 +1,40 @@
+#ifndef POKEREVO_CODE_801DBE90_H
+#define POKEREVO_CODE_801DBE90_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "SDK/dvd.h"
+#include "SDK/mem.h"
+
+struct gUnkClass5
+{
+ u8 unk0;
+ u8 unk1;
+ u8 unk2[0x2];
+ DVDFileInfo unk4;
+};
+
+BOOL func_801DC0C8(size_t p1, u32 p2);
+gUnkClass5* func_801DC2D0(const char* fileName);
+BOOL func_801DC380(const char* fileName);
+s32 func_801DC3FC(gUnkClass5* p1, void* addr, s32 length, s32 offset);
+BOOL func_801DC4F0(gUnkClass5* p1, void* p2, u32 p3, s32 p4, void (*p5)(s32, void*));
+s32 func_801DC5FC(gUnkClass5* p1, void* addr, s32 length, s32 offset, s32 prio);
+BOOL func_801DC6C4(gUnkClass5* p1);
+size_t func_801DC760(gUnkClass5* p1);
+BOOL func_801DC7F8(gUnkClass5* p1, s32 offset, void (*p3)(s32, void*));
+u8* func_801DCBC0(const char* fileName, u32* fileSz);
+void* func_801DCCAC(const char* fileName, MEMHeapHandle heap, u32* fileSz);
+BOOL func_801DCD94(const char* fileName);
+void func_801DCDB8(void (*p1)(u32), void (*p2)(void));
+u32 func_801DCDC4(void);
+void func_801DCE38(void);
+u8 func_801DCE44(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_CODE_801DBE90_H
diff --git a/include/code_801DCE6C.h b/include/code_801DCE6C.h
new file mode 100644
index 0000000..f06b185
--- /dev/null
+++ b/include/code_801DCE6C.h
@@ -0,0 +1,31 @@
+#ifndef POKEREVO_CODE_801DCE6C_H
+#define POKEREVO_CODE_801DCE6C_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "code_801DBE90.h"
+
+struct gUnkClass4
+{
+ u8 unk0[0x2];
+ char unk2[0x5];
+ char unk7[0xC79];
+
+ gUnkClass4(void);
+};
+
+u32 func_801DCF74(gUnkClass4*, const char*, gUnkClass5*);
+u32 func_801DCF48(gUnkClass4*, const char*);
+s32 func_801DD084(gUnkClass4* p1, gUnkClass5* p2, void* addr, s32 length, s32 offset);
+void* func_801DD220(gUnkClass4*, gUnkClass5*, void*, u32, s32);
+u32 func_801DCFE4(gUnkClass4*, gUnkClass5*);
+u32 func_801DD03C(gUnkClass4*, gUnkClass5*, u32*);
+BOOL func_801DD294(gUnkClass4*, const char*, s32);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_CODE_801DCE6C_H
diff --git a/include/code_80223C54.h b/include/code_80223C54.h
new file mode 100644
index 0000000..e679378
--- /dev/null
+++ b/include/code_80223C54.h
@@ -0,0 +1,15 @@
+#ifndef POKEREVO_CODE_80223C54_H
+#define POKEREVO_CODE_80223C54_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+u32 func_80223FD0(u32, u32, u32, void (*)(u32, u32));
+void func_8022408C(u32, const char*);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_CODE_80223C54_H
diff --git a/include/code_80224104.h b/include/code_80224104.h
new file mode 100644
index 0000000..5ac5dc2
--- /dev/null
+++ b/include/code_80224104.h
@@ -0,0 +1,17 @@
+#ifndef POKEREVO_CODE_80224104_H
+#define POKEREVO_CODE_80224104_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+u32 func_802245C4(void*);
+void func_80224588(void*);
+
+extern void* lbl_8063F600;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_CODE_80224104_H
diff --git a/include/code_80249BC8.h b/include/code_80249BC8.h
new file mode 100644
index 0000000..7cc4458
--- /dev/null
+++ b/include/code_80249BC8.h
@@ -0,0 +1,14 @@
+#ifndef POKEREVO_CODE_80249BC8_H
+#define POKEREVO_CODE_80249BC8_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+s32 func_80249BC8(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_CODE_80249BC8_H