00001 #ifndef FUPERMOD_MEMORY_H_ 00002 #define FUPERMOD_MEMORY_H_ 00003 00004 #include <stddef.h> 00005 #include "config.h" 00006 #include "fupermod/fupermod_conf.h" 00007 00014 #ifdef __cplusplus 00015 extern "C" { 00016 #endif 00017 00022 typedef enum fupermod_mem_mode { 00024 FUPERMOD_MEM_DEFAULT = -0x01, 00026 FUPERMOD_MEM_PAGELOCKED = 0x00, 00028 FUPERMOD_MEM_PORTABLE = 0x01, 00030 FUPERMOD_MEM_MAPPED = 0x02, 00032 FUPERMOD_MEM_WRITECOMBINED = 0x04 00033 00034 } fupermod_mem_mode; 00035 00042 void* fupermod_malloc(size_t size, fupermod_process_conf* conf); 00043 00049 void fupermod_free(void* ptr, fupermod_process_conf* conf); 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 00058 #endif /* FUPERMOD_MEMORY_H_ */