Lines Matching +full:vga +full:- +full:format
2 * linux/drivers/video/mdacon.c -- Low level MDA based console driver
6 * including portions (c) 1995-1998 Patrick Caulfield.
10 * This file is based on the VGA console driver (vgacon.c):
16 * and on the old console.c, vga.c and vesa_blank.c drivers:
45 #include <asm/vga.h>
64 static int mda_cursor_loc=-1;
65 static int mda_cursor_size_from=-1;
66 static int mda_cursor_size_to=-1;
105 * MDA could easily be classified as "pre-dinosaur hardware".
179 /* command line format: mdacon=<first>,<last> */ in mdacon_setup()
346 /* cursor looks ugly during boot-up, so turn it off */ in mdacon_startup()
347 mda_set_cursor(mda_vram_len - 1); in mdacon_startup()
352 return "MDA-2"; in mdacon_startup()
357 c->vc_complement_mask = 0x0800; /* reverse video */ in mdacon_init()
358 c->vc_display_fg = &mda_display_fg; in mdacon_init()
361 c->vc_cols = mda_num_columns; in mdacon_init()
362 c->vc_rows = mda_num_lines; in mdacon_init()
374 /* con_set_default_unimap(c->vc_num); */ in mdacon_deinit()
384 /* Underline and reverse-video are mutually exclusive on MDA. in mda_convert_attr()
385 * Since reverse-video is used for cursors and selected areas, in mda_convert_attr()
419 for (; count > 0; count--) { in mdacon_invert_region()
435 for (; count > 0; count--) { in mdacon_putcs()
444 u16 eattr = mda_convert_attr(c->vc_video_erase_char); in mdacon_clear()
460 mda_convert_attr(c->vc_video_erase_char), in mdacon_blank()
461 c->vc_screenbuf_size); in mdacon_blank()
477 mda_set_cursor(mda_vram_len - 1); in mdacon_cursor()
481 mda_set_cursor(c->state.y * mda_num_columns * 2 + c->state.x * 2); in mdacon_cursor()
483 switch (CUR_SIZE(c->vc_cursor_type)) { in mdacon_cursor()
497 u16 eattr = mda_convert_attr(c->vc_video_erase_char); in mdacon_scroll()
502 if (lines > c->vc_rows) /* maximum realistic size */ in mdacon_scroll()
503 lines = c->vc_rows; in mdacon_scroll()
509 (b-t-lines)*mda_num_columns*2); in mdacon_scroll()
510 scr_memsetw(mda_addr(0, b - lines), eattr, in mdacon_scroll()
516 (b-t-lines)*mda_num_columns*2); in mdacon_scroll()
551 err = do_take_over_console(&mda_con, mda_first_vc-1, mda_last_vc-1, 0); in mda_console_init()