X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=vgasrc%2Fvgahw.h;h=585ae3dada6ace516d4f03637f3163eb09f3c81d;hb=e737b178e1232c4bec4bd5da721806a9dc176e15;hp=494309b3d289b38fb308bc8b7e749592ad76b728;hpb=3876b531222c53124b0eb154fb331c0c662f5e09;p=seabios.git diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index 494309b..585ae3d 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -77,4 +77,32 @@ static inline int vgahw_set_linelength(struct vgamode_s *vmode_g, int val) { return stdvga_set_linelength(vmode_g, val); } +static inline int vgahw_get_displaystart(struct vgamode_s *vmode_g) { + if (CONFIG_VGA_CIRRUS) + return clext_get_displaystart(vmode_g); + if (CONFIG_VGA_BOCHS) + return bochsvga_get_displaystart(vmode_g); + return stdvga_get_displaystart(vmode_g); +} + +static inline int vgahw_set_displaystart(struct vgamode_s *vmode_g, int val) { + if (CONFIG_VGA_CIRRUS) + return clext_set_displaystart(vmode_g, val); + if (CONFIG_VGA_BOCHS) + return bochsvga_set_displaystart(vmode_g, val); + return stdvga_set_displaystart(vmode_g, val); +} + +static inline int vgahw_get_dacformat(struct vgamode_s *vmode_g) { + if (CONFIG_VGA_BOCHS) + return bochsvga_get_dacformat(vmode_g); + return stdvga_get_dacformat(vmode_g); +} + +static inline int vgahw_set_dacformat(struct vgamode_s *vmode_g, int val) { + if (CONFIG_VGA_BOCHS) + return bochsvga_set_dacformat(vmode_g, val); + return stdvga_set_dacformat(vmode_g, val); +} + #endif // vgahw.h