8 short xsz, ysz, bpp, pitch;
9 short rbits, gbits, bbits;
10 short rshift, gshift, bshift;
11 uint32_t rmask, gmask, bmask;
14 short win_gran, win_gran_shift, win_64k_step;
22 void cleanup_video(void);
24 struct video_mode *video_modes(void);
25 int num_video_modes(void);
27 #define VMODE_CURRENT (-1)
28 struct video_mode *get_video_mode(int idx);
30 int match_video_mode(int xsz, int ysz, int bpp);
31 int find_video_mode(int mode);
33 /* argument is the mode list index [0, nmodes-1] */
34 void *set_video_mode(int idx, int nbuf);
35 int set_text_mode(void);
37 void set_palette(int idx, int r, int g, int b);
43 /* page flip and return pointer to the start of the display area (front buffer) */
44 void *page_flip(int vsync);
45 extern void (*blit_frame)(void *pixels, int vsync);
48 void wait_vsync(void);
49 #pragma aux wait_vsync = \
63 #define wait_vsync() asm volatile ( \
64 "mov $0x3da, %%dx\n\t" \