X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=vidsys.h;h=f019cac04e2ae51c517bc19215b59753a0ac2231;hb=6018e36555e1a02bc85e6b4212a0e70dec79a264;hp=f2e308c3d377c2d4840782133b7dcfaca731269b;hpb=ee6be1955413171a03391c6b171d50bb3f2a5001;p=vidsys diff --git a/vidsys.h b/vidsys.h index f2e308c..f019cac 100644 --- a/vidsys.h +++ b/vidsys.h @@ -40,13 +40,15 @@ struct vid_driver { struct vid_modeinfo { int modeno; - int width, height, bpp, ncolors; + int width, height, bpp, pitch; + int ncolors; uint32_t rmask, gmask, bmask; int rshift, gshift, bshift; int pages; - int win_size, win_gran; + int win_size, win_gran, win_step; uint32_t vmem_addr; size_t vmem_size; + int lfb; struct vid_driver *drv; struct vid_gfxops ops; @@ -60,10 +62,16 @@ void *vid_setmode(int mode); int vid_findmode(int xsz, int ysz, int bpp); struct vid_modeinfo *vid_modeinfo(int mode); -void vid_vsync(void); +void vid_vsync(void); /* defined in drv_vga.c */ +int vid_setwin(int win, int pos); /* defined in drv_vbe.c */ /* current mode functions */ +int vid_islinear(void); +int vid_isbanked(void); + void vid_setpal(int idx, int count, const struct vid_color *col); void vid_getpal(int idx, int count, struct vid_color *col); +void vid_blitfb(void *fb, int pitch); + #endif /* VIDSYS_VIDEO_H_ */