/[pcsx2_0.9.7]/trunk/fps2bios/kernel/iopload/include/ksysmem.h
ViewVC logotype

Contents of /trunk/fps2bios/kernel/iopload/include/ksysmem.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 10 months ago) by william
File MIME type: text/plain
File size: 783 byte(s)
exported r3113 from ./upstream/trunk
1 #ifndef __SYSMEM_H__
2 #define __SYSMEM_H__
3
4 #include <tamtypes.h>
5
6 #define SYSMEM_VER 0x101
7
8 //allocation strategies
9 #define ALLOC_FIRST 0
10 #define ALLOC_LAST 1
11 #define ALLOC_LATER 2
12
13 // see QueryBlockTopAddress, QueryBlockSize
14 #define USED 0x00000000
15 #define FREE 0x80000000
16
17 void *AllocSysMemory(int flags, int size, void *mem);//4 (11,26)
18 int FreeSysMemory(void *mem); //5 (26)
19 unsigned int QueryMemSize();
20 unsigned int QueryMaxFreeMemSize();
21 unsigned int QueryTotalFreeMemSize();
22 void *QueryBlockTopAddress(void *address);
23 int QueryBlockSize(void *address);
24 char *Kprintf(const char *format,...); //14(06,14,26)
25 void sysmem_call15_set_Kprintf(char* (*newKprintf)(unsigned int unk, const char*, ...), unsigned int newunk);
26
27 #endif //__SYSMEM_H__

  ViewVC Help
Powered by ViewVC 1.1.22