pspsdk-1.0+beta2
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 
35 {
37  unsigned int startaddr;
38  unsigned int memsize;
39  unsigned int attr;
41 
51 
60 
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 
117 
126 int sceKernelFreeHeapMemory(SceUID heapid, void *block);
127 
135 int sceKernelDeleteHeap(SceUID heapid);
136 
145 
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;
157 } __attribute__((packed));
169 
180 
187 
195 int sceKernelDeleteUID(SceUID uid);
196 
202 int sceKernelGetModel(void);
203 
204 #ifdef __cplusplus
205 }
206 #endif
207 
210 #endif /* PSPSYSMEMKERNEL_H */