From 95bafc8f5ad947ec29c2dfbabadd20c3f67a1e5a Mon Sep 17 00:00:00 2001 From: Kazutaka YOKOTA Date: Wed, 23 Sep 1998 09:59:00 +0000 Subject: Fix and update for VESA BIOS support in syscons. - Handle pixel (raster text) mode properly. - Clear screen and paint border right. - Paint text attribute (colors). - Fix off-by-one errors. - Add some sanity checks. - Fix some function prototypes. - Add some comment lines. - Define generic text mode numbers so that the user can just give "80x25", "80x60", "132x25"..., rather than "VGA_xxx", to `vidcontrol' to change the current video mode. `vidoio.c' and `vesa.c' will map these numbers to real video mode numbers appropriate and available with the given video hardware. I believe this will be useful to make syscons more portable across archtectures. --- sys/dev/syscons/syscons.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/syscons/syscons.h') diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index 315946b57305e..dd4ec8ca92c96 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: syscons.h,v 1.40 1998/09/15 18:16:38 sos Exp $ */ #ifndef _I386_ISA_SYSCONS_H_ @@ -210,9 +210,9 @@ int set_mode(scr_stat *scp); scr_stat *sc_get_scr_stat(dev_t dev); void copy_font(scr_stat *scp, int operation, int font_size, u_char *font_image); +void set_border(scr_stat *scp, int color); #define save_palette(scp, pal) (*biosvidsw.save_palette)((scp)->adp, pal) #define load_palette(scp, pal) (*biosvidsw.load_palette)((scp)->adp, pal) -#define set_border(scp, col) (*biosvidsw.set_border)((scp)->adp, col) #define get_adapter(scp) (*biosvidsw.adapter)((scp)->adp) int add_scrn_saver(void (*this)(int)); -- cgit v1.3