X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=blobdiff_plain;f=vgasrc%2Fvgahw.h;h=494309b3d289b38fb308bc8b7e749592ad76b728;hp=ca8798cb8ec1b8a991ea52c63f928f5715659349;hb=3876b531222c53124b0eb154fb331c0c662f5e09;hpb=9961f9958cbc169c531dbdb7c3a8f71d4f79d0c1 diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index ca8798c..494309b 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -61,4 +61,20 @@ static inline int vgahw_set_window(struct vgamode_s *vmode_g, int window return stdvga_set_window(vmode_g, window, val); } +static inline int vgahw_get_linelength(struct vgamode_s *vmode_g) { + if (CONFIG_VGA_CIRRUS) + return clext_get_linelength(vmode_g); + if (CONFIG_VGA_BOCHS) + return bochsvga_get_linelength(vmode_g); + return stdvga_get_linelength(vmode_g); +} + +static inline int vgahw_set_linelength(struct vgamode_s *vmode_g, int val) { + if (CONFIG_VGA_CIRRUS) + return clext_set_linelength(vmode_g, val); + if (CONFIG_VGA_BOCHS) + return bochsvga_set_linelength(vmode_g, val); + return stdvga_set_linelength(vmode_g, val); +} + #endif // vgahw.h