6 #include <sys/mman.h>
\r
7 #include <sys/types.h>
\r
8 #include <sys/stat.h>
\r
9 #include <linux/fb.h>
\r
13 #include "../linux/sndout_oss.h"
\r
14 #include "../common/arm_linux.h"
\r
15 #include "../common/emu.h"
\r
16 #include "pandora.h"
\r
18 static int fbdev = -1;
\r
20 #define SCREEN_MAP_SIZE (800*480*2)
\r
21 static void *screen = MAP_FAILED;
\r
26 printf("entering init()\n"); fflush(stdout);
\r
28 fbdev = open("/dev/fb0", O_RDWR);
\r
31 perror("open(\"/dev/fb0\")");
\r
35 screen = mmap(0, SCREEN_MAP_SIZE, PROT_WRITE|PROT_READ, MAP_SHARED, fbdev, 0);
\r
36 if (screen == MAP_FAILED)
\r
38 perror("mmap(fbptr)");
\r
41 printf("fbptr %p\n", screen);
\r
42 g_screen_ptr = screen;
\r
47 printf("exitting init()\n"); fflush(stdout);
\r
52 if (screen != MAP_FAILED)
\r
53 munmap(screen, SCREEN_MAP_SIZE);
\r
63 void lprintf(const char *fmt, ...)
\r
75 void set_gamma(int g100, int A_SNs_curve) {}
\r
76 void set_FCLK(unsigned MHZ) {}
\r
77 void set_LCD_custom_rate(int rate) {}
\r
78 void unset_LCD_custom_rate(void) {}
\r
79 void Pause940(int yes) {}
\r
80 void Reset940(int yes, int bank) {}
\r