diff options
author | twinaphex | 2012-11-29 01:40:24 +0100 |
---|---|---|
committer | twinaphex | 2012-11-29 01:40:24 +0100 |
commit | 01f0020f8c4d96ce7ff425c0cab66ad93bf2159c (patch) | |
tree | 35d5f9f27fd33d95e1e005754a41102d3bd56f6b /libpcsxcore/psxmem_map.h | |
parent | b194a2ecd43debbb3724e332b660b993725acd52 (diff) | |
parent | c02c3b656781a406fc4f586ac0923529de186916 (diff) | |
download | pcsx_rearmed-01f0020f8c4d96ce7ff425c0cab66ad93bf2159c.tar.gz pcsx_rearmed-01f0020f8c4d96ce7ff425c0cab66ad93bf2159c.tar.bz2 pcsx_rearmed-01f0020f8c4d96ce7ff425c0cab66ad93bf2159c.zip |
Merge git://github.com/notaz/pcsx_rearmed
Diffstat (limited to 'libpcsxcore/psxmem_map.h')
-rw-r--r-- | libpcsxcore/psxmem_map.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 |