Skip to content

Commit b520d14

Browse files
add sysmem partition structs
1 parent 31f2574 commit b520d14

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/kernel/pspsysmem_kernel.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,27 @@ struct _uidControlBlock {
7070
struct _uidControlBlock *type; //(0x8)
7171
u32 UID; //(0xC)
7272
char *name; //(0x10)
73-
unsigned char unk;
74-
unsigned char size; // Size in words
73+
unsigned char unk;
74+
unsigned char size; // Size in words
7575
short attribute;
7676
struct _uidControlBlock *nextEntry;
7777
} __attribute__((packed));
7878
typedef struct _uidControlBlock SceUidControlBlock;
7979
typedef struct _uidControlBlock uidControlBlock; // for compat reasons
8080

81+
typedef struct PspPartitionData {
82+
u32 unk[5];
83+
u32 size;
84+
} PspPartitionData;
85+
86+
typedef struct PspSysMemPartition {
87+
struct PspSysMemPartition *next;
88+
u32 address;
89+
u32 size;
90+
u32 attributes;
91+
PspPartitionData *data;
92+
} PspSysMemPartition;
93+
8194
/**
8295
* Query the parition information
8396
*

0 commit comments

Comments
 (0)