X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=blobdiff_plain;f=vgasrc%2Fvgahw.h;fp=vgasrc%2Fvgahw.h;h=044cd32ca281184f834e0e5922c96e05bf98b665;hp=585ae3dada6ace516d4f03637f3163eb09f3c81d;hb=2469f89528a7da83eb608dfc86fda5fc780b8f92;hpb=9f857fc97c0cdfa6f18a43d1548cd91014766c26 diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index 585ae3d..044cd32 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -105,4 +105,28 @@ static inline int vgahw_set_dacformat(struct vgamode_s *vmode_g, int val) { return stdvga_set_dacformat(vmode_g, val); } +static inline int vgahw_size_state(int states) { + if (CONFIG_VGA_CIRRUS) + return clext_size_state(states); + if (CONFIG_VGA_BOCHS) + return bochsvga_size_state(states); + return stdvga_size_state(states); +} + +static inline int vgahw_save_state(u16 seg, void *data, int states) { + if (CONFIG_VGA_CIRRUS) + return clext_save_state(seg, data, states); + if (CONFIG_VGA_BOCHS) + return bochsvga_save_state(seg, data, states); + return stdvga_save_state(seg, data, states); +} + +static inline int vgahw_restore_state(u16 seg, void *data, int states) { + if (CONFIG_VGA_CIRRUS) + return clext_restore_state(seg, data, states); + if (CONFIG_VGA_BOCHS) + return bochsvga_restore_state(seg, data, states); + return stdvga_restore_state(seg, data, states); +} + #endif // vgahw.h