]> git.ipfire.org Git - thirdparty/grub.git/commit
Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 28 Jun 2012 13:27:54 +0000 (15:27 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 28 Jun 2012 13:27:54 +0000 (15:27 +0200)
commitc35fc5bd15f97798d30c7c034fbcddf1c1794e7e
tree32d692021496af28d6172ca5c6c315afd2f6d2f6
parent5f91f70146ad47cc68d349dab308999d099db687
Add monochrome text support (mda_text, aka `hercules' in grub-legacy).

* grub-core/Makefile.core.def (mda_text): New module.
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
* grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
* grub-core/term/i386/pc/vga_text.c (cur_color): ... here
* grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
here.
* grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
* grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
* grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
here.
* grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
to ..
* grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
... here
* grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
here.
* grub-core/term/i386/vga_common.c: Removed.
* include/grub/i386/vga_common.h: Likewise.
* include/grub/vga.h (grub_vga_cr_bw_write): New function.
(grub_vga_cr_bw_read): Likewise.
* include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
(GRUB_VGA_IO_CR_BW_DATA): Likewise.
* grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
grub_vga_cr_read/grub_vga_cr_write.
(grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
ChangeLog
grub-core/Makefile.core.def
grub-core/lib/legacy_parse.c
grub-core/term/i386/pc/console.c
grub-core/term/i386/pc/vga_text.c
grub-core/term/i386/vga_common.c [deleted file]
include/grub/i386/pc/console.h
include/grub/i386/vga_common.h [deleted file]
include/grub/vga.h
include/grub/vgaregs.h