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