From 87e5b45fe1aa734289cf57531c89988cfafff524 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 27 Nov 2012 17:08:39 +0200 Subject: clean up mmap hacks still messy but perhaps beter --- libpcsxcore/psxmem_map.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libpcsxcore/psxmem_map.h (limited to 'libpcsxcore/psxmem_map.h') diff --git a/libpcsxcore/psxmem_map.h b/libpcsxcore/psxmem_map.h new file mode 100644 index 0000000..df5fa51 --- /dev/null +++ b/libpcsxcore/psxmem_map.h @@ -0,0 +1,26 @@ +#ifndef __PSXMEM_MAP_H__ +#define __PSXMEM_MAP_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +enum psxMapTag { + MAP_TAG_OTHER = 0, + MAP_TAG_RAM, + MAP_TAG_VRAM, + MAP_TAG_LUTS, +}; + +extern void *(*psxMapHook)(unsigned long addr, size_t size, int is_fixed, + enum psxMapTag tag); +extern void (*psxUnmapHook)(void *ptr, size_t size, enum psxMapTag tag); + +void *psxMap(unsigned long addr, size_t size, int is_fixed, + enum psxMapTag tag); +void psxUnmap(void *ptr, size_t size, enum psxMapTag tag); + +#ifdef __cplusplus +} +#endif +#endif -- cgit v1.2.3