comparison src/video/ps3/SDL_ps3video.h @ 3145:7828eed2f31a gsoc2009_ps3

Initialise 720p and 1080p display modes in VideoInit(). Added setting display mode.
author Martin Lowinski <martin@goldtopf.org>
date Sat, 13 Jun 2009 05:20:57 +0000
parents 0d8d1f870964
children 9e902f423497
comparison
equal deleted inserted replaced
3144:0d8d1f870964 3145:7828eed2f31a
24 #ifndef _SDL_ps3video_h 24 #ifndef _SDL_ps3video_h
25 #define _SDL_ps3video_h 25 #define _SDL_ps3video_h
26 26
27 #include "../SDL_sysvideo.h" 27 #include "../SDL_sysvideo.h"
28 #include "SDL_ps3spe_c.h" 28 #include "SDL_ps3spe_c.h"
29
30 #include <linux/fb.h>
31 #include <asm/ps3fb.h>
29 32
30 /* Debugging 33 /* Debugging
31 * 0: No debug messages 34 * 0: No debug messages
32 * 1: Video debug messages 35 * 1: Video debug messages
33 * 2: SPE debug messages 36 * 2: SPE debug messages
63 spu_data_t * fb_thread_data; 66 spu_data_t * fb_thread_data;
64 /* Framebuffer transfer data */ 67 /* Framebuffer transfer data */
65 volatile struct fb_writer_parms_t * fb_parms __attribute__((aligned(128))); 68 volatile struct fb_writer_parms_t * fb_parms __attribute__((aligned(128)));
66 } SDL_VideoData; 69 } SDL_VideoData;
67 70
71 typedef struct
72 {
73 unsigned long mode;
74 struct ps3fb_ioctl_res res;
75 } SDL_DisplayData;
76
68 #endif /* _SDL_ps3video_h */ 77 #endif /* _SDL_ps3video_h */
69 78
70 /* vi: set ts=4 sw=4 expandtab: */ 79 /* vi: set ts=4 sw=4 expandtab: */