pcsx2/fps2bios/kernel/iopload/include/ksysmem.h
Jake.Stine 6ebfae8ef1 Re-Added eol-style:native properties to the repository. The settings got lost when we merged from Playground to Official.
Added interface.cpp (plugin/pcsx2 interface) and savestate.cpp to SPU2ghz, to help clean up SPU2.cpp.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@463 96395faa-99c1-11dd-bbfe-3dabce05a288
2009-02-09 21:15:56 +00:00

27 lines
756 B
C

#ifndef __SYSMEM_H__
#define __SYSMEM_H__
#include <tamtypes.h>
#define SYSMEM_VER 0x101
//allocation strategies
#define ALLOC_FIRST 0
#define ALLOC_LAST 1
#define ALLOC_LATER 2
// see QueryBlockTopAddress, QueryBlockSize
#define USED 0x00000000
#define FREE 0x80000000
void *AllocSysMemory(int flags, int size, void *mem);//4 (11,26)
int FreeSysMemory(void *mem); //5 (26)
unsigned int QueryMemSize();
unsigned int QueryMaxFreeMemSize();
unsigned int QueryTotalFreeMemSize();
void *QueryBlockTopAddress(void *address);
int QueryBlockSize(void *address);
char *Kprintf(const char *format,...); //14(06,14,26)
void sysmem_call15_set_Kprintf(char* (*newKprintf)(unsigned int unk, const char*, ...), unsigned int newunk);
#endif //__SYSMEM_H__