mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-31 15:57:31 -04:00
Get boot_0x80080790 somewhat close to matching
This commit is contained in:
+15
-15
@@ -17,19 +17,19 @@ UNK_RET func_80080300(UNK_TYPE); // func_80080300
|
||||
UNK_RET func_8008038C(void); // func_8008038C
|
||||
void func_80080514(UNK_TYPE); // func_80080514
|
||||
UNK_RET func_800805E0(UNK_TYPE); // func_800805E0
|
||||
// UNK_RET func_80080748(UNK_ARGS);
|
||||
// UNK_RET func_80080790(UNK_ARGS);
|
||||
// UNK_RET func_800808D4(UNK_ARGS);
|
||||
// UNK_RET func_800808F4(UNK_ARGS);
|
||||
// UNK_RET func_80080950(UNK_ARGS);
|
||||
// UNK_RET func_800809BC(UNK_ARGS);
|
||||
// UNK_RET func_800809F4(UNK_ARGS);
|
||||
// UNK_RET func_80080A08(UNK_ARGS);
|
||||
// UNK_RET func_80080B84(UNK_ARGS);
|
||||
UNK_RET func_80080C04(UNK_PTR, UNK_FUN_ARG, UNK_PTR, UNK_TYPE, UNK_TYPE, UNK_PTR, UNK_TYPE); // func_80080C04
|
||||
// UNK_RET func_80080C90(UNK_ARGS);
|
||||
UNK_RET func_80080D0C(void); // func_80080D0C
|
||||
UNK_RET func_80080E00(void); // func_80080E00
|
||||
UNK_RET func_80080748(void); // func_80080748
|
||||
s32 func_80080790(void*, void*, s32); // func_80080790
|
||||
void func_800808D4(OSPiHandle* pihandle, OSIoMesg* mb, s32 direction); // func_800808D4
|
||||
DmadataEntry* func_800808F4(u32); // func_800808F4
|
||||
s32 func_80080950(u32); // func_80080950
|
||||
s32 func_800809BC(u32); // func_800809BC
|
||||
UNK_TYPE* func_800809F4(u32); // func_800809F4
|
||||
void func_80080A08(s80080A08*); // func_80080A08
|
||||
void func_80080B84(void*); // func_80080B84
|
||||
s32 func_80080C04(s80080A08*, UNK_FUN_ARG, UNK_PTR, UNK_TYPE, UNK_TYPE, OSMesgQueue*, UNK_TYPE); // func_80080C04
|
||||
s32 func_80080C90(UNK_TYPE, UNK_PTR, UNK_TYPE); // func_80080C90
|
||||
void func_80080D0C(void); // func_80080D0C
|
||||
void func_80080E00(void); // func_80080E00
|
||||
// UNK_RET func_80080E30(UNK_ARGS);
|
||||
// UNK_RET func_80080ED0(UNK_ARGS);
|
||||
// UNK_RET func_80080FF0(UNK_ARGS);
|
||||
@@ -98,7 +98,7 @@ UNK_RET func_80081CA4(UNK_PTR); // func_80081CA4
|
||||
// UNK_RET func_80083BC4(UNK_ARGS);
|
||||
// UNK_RET func_80083CF8(UNK_ARGS);
|
||||
// UNK_RET func_80083DF4(UNK_ARGS);
|
||||
// UNK_RET func_80083E4C(UNK_ARGS);
|
||||
UNK_RET func_80083E4C(UNK_TYPE*, UNK_TYPE); // func_80083E4C
|
||||
// UNK_RET func_80083EB0(UNK_ARGS);
|
||||
// UNK_RET func_80083EC4(UNK_ARGS);
|
||||
// UNK_RET func_80083FE4(UNK_ARGS);
|
||||
@@ -395,7 +395,7 @@ void osSetTime(OSTime ticks); // func_80092290
|
||||
// UNK_RET func_800925CC(UNK_ARGS);
|
||||
// UNK_RET func_80092680(UNK_ARGS);
|
||||
// UNK_RET func_80092730(UNK_ARGS);
|
||||
struct s80092920* func_80092920(void); // func_80092920
|
||||
OSPiHandle* func_80092920(void); // func_80092920
|
||||
// UNK_RET func_80092A80(UNK_ARGS);
|
||||
// UNK_RET func_80092C00(UNK_ARGS);
|
||||
s32 osContSetCh(u8 ch); // func_80092C80
|
||||
|
||||
@@ -103,6 +103,48 @@ typedef struct {
|
||||
} OSMesgQueue;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0 */ u32 errStatus;
|
||||
/* 4 */ void* dramAddr;
|
||||
/* 8 */ void* C2Addr;
|
||||
/* 12 */ u32 sectorSize;
|
||||
/* 16 */ u32 C1ErrNum;
|
||||
/* 20 */ u32 C1ErrSector[4];
|
||||
} __OSBlockInfo;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0 */ u32 cmdType;
|
||||
/* 4 */ u16 transferMode;
|
||||
/* 6 */ u16 blockNum;
|
||||
/* 8 */ s32 sectorNum;
|
||||
/* 12 */ u32 devAddr;
|
||||
/* 16 */ u32 bmCtlShadow;
|
||||
/* 20 */ u32 seqCtlShadow;
|
||||
/* 24 */ __OSBlockInfo block[2];
|
||||
} __OSTranxInfo;
|
||||
|
||||
|
||||
typedef struct OSPiHandle_s {
|
||||
/* 0 */ struct OSPiHandle_s* next;
|
||||
/* 4 */ u8 type;
|
||||
/* 5 */ u8 latency;
|
||||
/* 6 */ u8 pageSize;
|
||||
/* 7 */ u8 relDuration;
|
||||
/* 8 */ u8 pulse;
|
||||
/* 9 */ u8 domain;
|
||||
/* 12 */ u32 baseAddress;
|
||||
/* 16 */ u32 speed;
|
||||
/* 20 */ __OSTranxInfo transferInfo;
|
||||
} OSPiHandle;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0 */ u8 type;
|
||||
/* 4 */ u32 address;
|
||||
} OSPiInfo;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0 */ u16 type;
|
||||
/* 2 */ u8 pri;
|
||||
|
||||
+19
-14
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <PR/ultratypes.h>
|
||||
#include <unk.h>
|
||||
#include <os.h>
|
||||
|
||||
struct s80085320 {
|
||||
/* 00 */ struct s80085320* next;
|
||||
@@ -21,20 +22,6 @@ struct s8008A6FC {
|
||||
/* 12 */ UNK_TYPE unk12;
|
||||
};
|
||||
|
||||
struct s80092920 {
|
||||
/* 00 */ struct s80092920* unk0;
|
||||
/* 04 */ u8 unk4;
|
||||
/* 05 */ u8 unk5;
|
||||
/* 06 */ u8 unk6;
|
||||
/* 07 */ u8 unk7;
|
||||
/* 08 */ u8 unk8;
|
||||
/* 09 */ u8 unk9;
|
||||
/* 10 */ u8 unk10; // pad?
|
||||
/* 11 */ u8 unk11; // pad?
|
||||
/* 12 */ UNK_TYPE unk12;
|
||||
/* 16 */ UNK_TYPE unk16;
|
||||
};
|
||||
|
||||
struct s800A5AC0 {
|
||||
/* 000 */ u8 pad0[28];
|
||||
/* 028 */ s16 unk28;
|
||||
@@ -93,6 +80,24 @@ typedef struct s800E03A0_s {
|
||||
/* 000 */ u8 pad[32];
|
||||
} s800E03A0;
|
||||
|
||||
// Entries in dmadata
|
||||
typedef struct {
|
||||
/* 000 */ u32 vromStart;
|
||||
/* 004 */ u32 vromEnd;
|
||||
/* 008 */ u32 romStart;
|
||||
/* 012 */ u32 romEnd;
|
||||
} DmadataEntry;
|
||||
|
||||
typedef struct s80080A08_s {
|
||||
/* 000 */ UNK_PTR unk0;
|
||||
/* 004 */ UNK_FUN_PTR(unk4);
|
||||
/* 008 */ UNK_TYPE unk8;
|
||||
/* 012 */ u8 pad1[8];
|
||||
/* 020 */ UNK_TYPE unk20;
|
||||
/* 024 */ OSMesgQueue* unk24;
|
||||
/* 028 */ UNK_TYPE unk28;
|
||||
} s80080A08;
|
||||
|
||||
// This struct is huge! Global context?
|
||||
typedef struct s800F4F54_s {
|
||||
/* 00000 */ u8 pad[92152];
|
||||
|
||||
+20
-19
@@ -323,9 +323,9 @@
|
||||
//extern UNK_TYPE D_00018E60;
|
||||
//extern UNK_TYPE D_00018E64;
|
||||
//extern UNK_TYPE D_00018E68;
|
||||
//extern UNK_TYPE D_0001A500;
|
||||
extern u32 dmadataRomStart; // D_0001A500
|
||||
//extern UNK_TYPE D_00020308;
|
||||
//extern UNK_TYPE D_00020700;
|
||||
extern u32 dmadataRomEnd; // D_00020700
|
||||
//extern UNK_TYPE D_0002446A;
|
||||
//extern UNK_TYPE D_00046AF0;
|
||||
//extern UNK_TYPE D_00080028;
|
||||
@@ -1876,9 +1876,9 @@ extern u32 D_80096B28; // D_80096B28
|
||||
extern u32 D_80096B2C; // D_80096B2C
|
||||
extern f32 D_80096B30; // D_80096B30
|
||||
extern f32 D_80096B34; // D_80096B34
|
||||
extern struct s80092920* D_80096B40; // D_80096B40
|
||||
extern OSPiHandle* D_80096B40; // D_80096B40
|
||||
extern UNK_TYPE D_80096B50; // D_80096B50
|
||||
//extern UNK_TYPE D_80096B60;
|
||||
extern UNK_TYPE* D_80096B60; // D_80096B60
|
||||
//extern UNK_TYPE D_80096B68;
|
||||
//extern UNK_TYPE D_80096B70;
|
||||
//extern UNK_TYPE D_80096B78;
|
||||
@@ -1917,7 +1917,7 @@ extern UNK_TYPE D_80097E58; // D_80097E58
|
||||
extern UNK_TYPE __osShutdown; // D_80097E5C
|
||||
extern UNK_TYPE __OSGlobalIntMask; // D_80097E60
|
||||
extern UNK_TYPE __osPiDevMgr; // D_80097E70
|
||||
extern struct s80092920* D_80097E8C; // D_80097E8C
|
||||
extern OSPiHandle* D_80097E8C; // D_80097E8C
|
||||
//extern UNK_TYPE D_80097E90;
|
||||
extern UNK_TYPE __osPiAccessQueueEnabled; // D_80097EA0
|
||||
//extern UNK_TYPE D_80097F00;
|
||||
@@ -1947,12 +1947,12 @@ extern UNK_TYPE D_80098198; // D_80098198
|
||||
extern UNK_TYPE D_800981A0; // D_800981A0
|
||||
extern UNK_TYPE D_800981A8; // D_800981A8
|
||||
extern float D_800981B0; // D_800981B0
|
||||
//extern UNK_TYPE D_800981C0;
|
||||
//extern UNK_TYPE D_800981C4;
|
||||
//extern UNK_TYPE D_800981D4;
|
||||
//extern UNK_TYPE D_800981E4;
|
||||
//extern UNK_TYPE D_800981F4;
|
||||
//extern UNK_TYPE D_80098204;
|
||||
extern UNK_TYPE D_800981C0; // D_800981C0
|
||||
extern UNK_TYPE D_800981C4; // D_800981C4
|
||||
extern UNK_TYPE D_800981D4; // D_800981D4
|
||||
extern UNK_TYPE D_800981E4; // D_800981E4
|
||||
extern UNK_TYPE D_800981F4; // D_800981F4
|
||||
extern UNK_TYPE D_80098204; // D_80098204
|
||||
//extern UNK_TYPE D_80098210;
|
||||
//extern UNK_TYPE D_80098220;
|
||||
//extern UNK_TYPE D_8009823C;
|
||||
@@ -2109,12 +2109,13 @@ extern UNK_TYPE D_8009B160; // D_8009B160
|
||||
extern UNK_TYPE D_8009B228; // D_8009B228
|
||||
extern u32* D_8009B240; // D_8009B240
|
||||
extern u8 D_8009B290; // D_8009B290
|
||||
//extern UNK_TYPE D_8009B2BC;
|
||||
//extern UNK_TYPE D_8009B2C0;
|
||||
//extern UNK_TYPE D_8009B2D8;
|
||||
//extern UNK_TYPE D_8009B358;
|
||||
//extern UNK_TYPE D_8009B508;
|
||||
//extern UNK_TYPE D_8009BA08;
|
||||
extern struct s80085320 D_8009B2A0; // D_8009B2A0
|
||||
extern u16 D_8009B2BC; // D_8009B2BC
|
||||
extern OSMesgQueue D_8009B2C0; // D_8009B2C0
|
||||
extern UNK_TYPE D_8009B2D8; // D_8009B2D8
|
||||
extern OSThread D_8009B358; // D_8009B358
|
||||
extern UNK_TYPE D_8009B508; // D_8009B508
|
||||
extern UNK_TYPE D_8009BA08; // D_8009BA08
|
||||
//extern UNK_TYPE D_8009BA10;
|
||||
//extern UNK_TYPE D_8009BE10;
|
||||
//extern UNK_TYPE D_8009BE14;
|
||||
@@ -2178,7 +2179,7 @@ extern UNK_TYPE __osBaseCounter; // D_8009E5B8
|
||||
extern UNK_TYPE __osViIntrCount; // D_8009E5BC
|
||||
extern UNK_TYPE __osTimerCounter; // D_8009E5C0
|
||||
//extern UNK_TYPE D_8009E5D0;
|
||||
extern struct s80092920 D_8009E610; // D_8009E610
|
||||
extern OSPiHandle D_8009E610; // D_8009E610
|
||||
extern UNK_TYPE D_8009E624; // D_8009E624
|
||||
//extern UNK_TYPE D_8009E690;
|
||||
//extern UNK_TYPE D_8009F840;
|
||||
@@ -2186,7 +2187,7 @@ extern UNK_TYPE D_8009E624; // D_8009E624
|
||||
//extern UNK_TYPE D_8009F870;
|
||||
//extern UNK_TYPE D_8009F888;
|
||||
//extern UNK_TYPE D_8009F8A0;
|
||||
//extern UNK_TYPE D_8009F8B0;
|
||||
extern DmadataEntry dmadata[]; // D_8009F8B0
|
||||
//extern UNK_TYPE D_800A0004;
|
||||
//extern UNK_TYPE D_80186028;
|
||||
//extern UNK_TYPE D_801AAAB0;
|
||||
|
||||
Reference in New Issue
Block a user