50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
#ifndef PRIVATE_OS_BOOT_INFO_2_H
|
|
#define PRIVATE_OS_BOOT_INFO_2_H
|
|
|
|
#include <revolution/os/OSMemMap.h>
|
|
#include <revolution/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OSBootInfo2 {
|
|
u32 dbMonitorSize; // 0x00
|
|
u32 simulatedMem1Size; // 0x04
|
|
u32 argsOffset; // 0x08
|
|
u32 debugFlag; // 0x0C
|
|
u32 trackLocation; // 0x10
|
|
u32 trackSize; // 0x14
|
|
u32 countryCode; // 0x18
|
|
u32 unk_0x1C;
|
|
u32 unk_0x20;
|
|
u32 padSpec; // 0x24
|
|
u32 codeLimit; // 0x28
|
|
u32 simulatedMem2Size; // 0x2C
|
|
u8 padding[0x2000 - 0x30];
|
|
} OSBootInfo2;
|
|
|
|
#define BI2_SIZE 0x2000
|
|
|
|
#define BI2_ADDR OS_ADDR_BOOT_INFO_2
|
|
|
|
#define BI2_OFFSET_DBMONITORSIZE 0x0000
|
|
#define BI2_OFFSET_SIMULATEDMEM1SIZE 0x0004
|
|
#define BI2_OFFSET_ARGOFFSET 0x0008
|
|
#define BI2_OFFSET_DEBUGFLAG 0x000C
|
|
#define BI2_OFFSET_TRACKLOCATION 0x0010
|
|
#define BI2_OFFSET_TRACKSIZE 0x0014
|
|
#define BI2_OFFSET_COUNTRYCODE 0x0018
|
|
#define BI2_OFFSET_PADSPEC 0x0024
|
|
#define BI2_OFFSET_CODELIMIT 0x0028
|
|
#define BI2_OFFSET_SIMULATEDMEM2SIZE 0x002C
|
|
#define BI2_OFFSET_NANDBOOT 0x0FE0
|
|
|
|
#define BI2_OFFSET_ARGS BI2_SIZE
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // PRIVATE_OS_BOOT_INFO_2_H
|