Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

pspsysmem.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspsysmem.h - Interface to the system memory manager.
00007  *
00008  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
00009  *
00010  * $Id: pspsysmem.h 1095 2005-09-27 21:02:16Z jim $
00011  */
00012 
00013 /* Note: Some of the structures, types, and definitions in this file were
00014    extrapolated from symbolic debugging information found in the Japanese
00015    version of Puzzle Bobble. */
00016 
00017 #ifndef PSPSYSMEM_H
00018 #define PSPSYSMEM_H
00019 
00020 #include <pspkerneltypes.h>
00021 
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00034 enum PspSysMemBlockTypes {
00036         PSP_SMEM_Low = 0,
00038         PSP_SMEM_High,
00040         PSP_SMEM_Addr
00041 };
00042 
00043 typedef int SceKernelSysMemAlloc_t;
00044 
00056 SceUID sceKernelAllocPartitionMemory(SceUID partitionid, const char *name, int type, SceSize size, void *addr);
00057 
00065 int sceKernelFreePartitionMemory(SceUID blockid);
00066 
00074 void * sceKernelGetBlockHeadAddr(SceUID blockid);
00075 
00081 SceSize sceKernelTotalFreeMemSize(void);
00082 
00088 SceSize sceKernelMaxFreeMemSize(void);
00089 
00097 int sceKernelDevkitVersion(void);
00098 
00099 #ifdef __cplusplus
00100 }
00101 #endif
00102 
00105 #endif /* PSPSYSMEM_H */

Generated on Wed Sep 28 07:52:09 2005 for pspsdk-1.0+beta by  doxygen 1.4.4