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 2166 2007-02-04 10:52:49Z tyranid $ 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 00104 int sceKernelDevkitVersion(void); 00105 00106 #if _PSP_FW_VERSION >= 150 00107 00114 void sceKernelPrintf(const char *format, ...) __attribute__((format(printf, 1, 2))); 00115 00116 #endif 00117 00118 #ifdef __cplusplus 00119 } 00120 #endif 00121 00124 #endif /* PSPSYSMEM_H */