pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
pspsysmem_kernel.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - http://www.pspdev.org
3
* -----------------------------------------------------------------------
4
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5
*
6
* pspsysmem_kernel.h - Interface to the system memory manager (kernel).
7
*
8
* Copyright (c) 2005 James F.
9
*
10
* $Id: pspsysmem.h 1095 2005-09-27 21:02:16Z jim $
11
*/
12
13
/* Note: Some of the structures, types, and definitions in this file were
14
extrapolated from symbolic debugging information found in the Japanese
15
version of Puzzle Bobble. */
16
17
#ifndef PSPSYSMEMKERNEL_H
18
#define PSPSYSMEMKERNEL_H
19
20
#include <
pspkerneltypes.h
>
21
#include <
pspsysmem.h
>
22
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
typedef
struct
_PspSysmemPartitionInfo
35
{
36
SceSize
size
;
37
unsigned
int
startaddr
;
38
unsigned
int
memsize
;
39
unsigned
int
attr
;
40
}
PspSysmemPartitionInfo
;
41
50
int
sceKernelQueryMemoryPartitionInfo
(
int
pid,
PspSysmemPartitionInfo
*info);
51
59
SceSize
sceKernelPartitionTotalFreeMemSize
(
int
pid);
60
68
SceSize
sceKernelPartitionMaxFreeMemSize
(
int
pid);
69
73
void
sceKernelSysMemDump
(
void
);
74
78
void
sceKernelSysMemDumpBlock
(
void
);
79
83
void
sceKernelSysMemDumpTail
(
void
);
84
94
int
sceKernelSetDdrMemoryProtection
(
void
*addr,
int
size
,
int
prot);
95
106
SceUID
sceKernelCreateHeap
(
SceUID
partitionid,
SceSize
size
,
int
unk
,
const
char
*
name
);
107
116
void
*
sceKernelAllocHeapMemory
(
SceUID
heapid,
SceSize
size
);
117
126
int
sceKernelFreeHeapMemory
(
SceUID
heapid,
void
*block);
127
135
int
sceKernelDeleteHeap
(
SceUID
heapid);
136
144
SceSize
sceKernelHeapTotalFreeSize
(
SceUID
heapid);
145
147
struct
_uidControlBlock
{
148
struct
_uidControlBlock
*
parent
;
149
struct
_uidControlBlock
*
nextChild
;
150
struct
_uidControlBlock
*
type
;
//(0x8)
151
u32
UID
;
//(0xC)
152
char
*
name
;
//(0x10)
153
unsigned
char
unk
;
154
unsigned
char
size
;
// Size in words
155
short
attribute
;
156
struct
_uidControlBlock
*
nextEntry
;
157
}
__attribute__
((packed));
158
typedef
struct
_uidControlBlock
uidControlBlock
;
159
168
int
sceKernelGetUIDcontrolBlock
(
SceUID
uid,
uidControlBlock
** block);
169
179
int
sceKernelGetUIDcontrolBlockWithType
(
SceUID
uid,
uidControlBlock
*
type
,
uidControlBlock
** block);
180
186
uidControlBlock
*
SysMemForKernel_536AD5E1
(
void
);
187
195
int
sceKernelDeleteUID
(
SceUID
uid);
196
202
int
sceKernelGetModel
(
void
);
203
204
#ifdef __cplusplus
205
}
206
#endif
207
210
#endif
/* PSPSYSMEMKERNEL_H */
src
kernel
pspsysmem_kernel.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2