PS2SDK
PS2 Homebrew Libraries
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
Variables
_
c
d
f
g
i
k
m
n
p
q
r
s
t
u
v
w
Typedefs
a
d
h
i
l
m
n
p
r
s
t
w
Enumerations
_
a
c
d
g
i
l
m
n
o
p
s
t
v
Enumerator
c
d
e
g
i
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
z
▼
PS2SDK
PS2SDK - PS2DEV Open Source Project
PS2SDK - KERNEL LIBRARY
remote
►
Topics
►
Data Structures
▼
Files
▼
File List
►
common
►
ee
▼
iop
►
arcade
►
cdvd
►
debug
►
deckard
►
dev9
►
dvrp
►
fs
►
hdd
►
iLink
►
kernel
►
memorycard
►
network
►
security
►
sio
►
sound
►
startup
▼
system
►
alloc
►
boardinf
►
dmacman
►
eeconf
►
eesync
►
excepman
►
heaplib
►
igreeting
►
intrman
►
ioman
►
iomanx
►
iopmgr
►
loadcore
►
loadfile
►
modload
►
mtapman
►
padman
►
reboot
►
rmman
►
sbusintr
►
sifcmd
►
sifinit
►
sifman
►
siftoo
►
sio2man
►
ssbusc
►
stdio
►
sysclib
▼
sysmem
▼
include
►
sysmem.h
►
xsysmem.h
►
src
►
threadman
►
timrman
►
udnl
►
vblank
►
tcpip
►
usb
►
tools
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
xsysmem.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __XSYSMEM_H__
17
#define __XSYSMEM_H__
18
19
#include <
sysmem.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#define xsysmem_IMPORTS_start DECLARE_IMPORT_TABLE(sysmem, 1, 2)
26
#define xsysmem_IMPORTS_end END_IMPORT_TABLE
27
28
typedef
struct
sysmem_meminfo_
29
{
30
int
allocation_count;
31
int
memsize;
32
sysmem_alloc_table_t
*memlist_last;
33
sysmem_alloc_table_t
*memlist_first;
34
}
sysmem_meminfo_t
;
28
typedef
struct
sysmem_meminfo_
{
…
};
35
36
typedef
struct
sysmem_blockinfo_
37
{
38
void
*block_address;
39
/* Low 8 bits are flags. The rest is the size of this block */
40
/* flags_memsize == 0: block not found in passed in list */
41
/* flags_memsize & 1: passed in list is empty */
42
/* flags_memsize & 2: block is allocated */
43
u32 flags_memsize;
44
void
*unused08;
45
sysmem_alloc_table_t
*table_info;
46
}
sysmem_blockinfo_t
;
36
typedef
struct
sysmem_blockinfo_
{
…
};
47
48
typedef
union
sysmem_info_
49
{
50
sysmem_blockinfo_t
blockinfo;
/* when flag of GetSysMemoryInfo is zero */
51
sysmem_meminfo_t
meminfo;
/* when flag of GetSysMemoryInfo is nonzero */
52
}
sysmem_info_t
;
48
typedef
union
sysmem_info_
{
…
};
53
54
extern
void
GetSysMemoryInfo(
int
flag,
sysmem_info_t
*
info
);
55
56
#define I_GetSysMemoryInfo DECLARE_IMPORT(11, GetSysMemoryInfo)
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
/* __XSYSMEM_H__ */
s_info
Definition
xprintf.c:78
sysmem.h
sysmem_alloc_table_
Definition
sysmem.h:43
sysmem_blockinfo_
Definition
xsysmem.h:37
sysmem_meminfo_
Definition
xsysmem.h:29
sysmem_info_
Definition
xsysmem.h:49
iop
system
sysmem
include
xsysmem.h
Generated on Sun Mar 30 2025 21:53:13 for PS2SDK by
1.12.0