aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin_lib.c
diff options
context:
space:
mode:
authornotaz2012-08-19 22:39:49 +0300
committernotaz2012-10-12 00:05:08 +0300
commit9ee0fd5b333039b1140d90f935aa9299825f1e42 (patch)
tree5fa0d39647613e0e5b4ea3d582b91ecbc3e1ae91 /frontend/plugin_lib.c
parent50f9355a2338111d940ed408f52fe1defe4df23e (diff)
downloadpcsx_rearmed-9ee0fd5b333039b1140d90f935aa9299825f1e42.tar.gz
pcsx_rearmed-9ee0fd5b333039b1140d90f935aa9299825f1e42.tar.bz2
pcsx_rearmed-9ee0fd5b333039b1140d90f935aa9299825f1e42.zip
start mmap'ing vram, with hugetlb if possible
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r--frontend/plugin_lib.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c
index 4dbb9a7..c2e2ab4 100644
--- a/frontend/plugin_lib.c
+++ b/frontend/plugin_lib.c
@@ -21,6 +21,7 @@
#include "linux/fbdev.h"
#include "common/fonts.h"
#include "common/input.h"
+#include "common/plat.h"
#include "menu.h"
#include "main.h"
#include "plat.h"
@@ -484,12 +485,24 @@ static void pl_get_layer_pos(int *x, int *y, int *w, int *h)
*h = g_layer_h;
}
+static void *pl_mmap(unsigned int size)
+{
+ return plat_mmap(0, size, 0);
+}
+
+static void pl_munmap(void *ptr, unsigned int size)
+{
+ plat_munmap(ptr, size);
+}
+
struct rearmed_cbs pl_rearmed_cbs = {
pl_get_layer_pos,
pl_vout_open,
pl_vout_set_mode,
pl_vout_flip,
pl_vout_close,
+ pl_mmap,
+ pl_munmap,
};
/* watchdog */