1. 28 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Add monochrome text support (mda_text, aka `hercules' in grub-legacy). · c35fc5bd
      Vladimir 'phcoder' Serbinenko authored
      	* 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.
      c35fc5bd
  2. 26 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Init video early on yeeloong to avoid being rebooted by watchdog. · c50c867d
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/Makefile.am (gensm712): New target.
      	(sm712_start.S): Likewise.
      	(boot/mips/loongson/fwstart.S): Depend on sm712_start.S
      	* grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
      	* grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
      	description.
      	* include/grub/vga.h: Move registry definitions to...
      	* include/grub/vgaregs.h: ... here.
      c50c867d
  3. 06 Jul, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      VGA text support in qemu-mips · 93c06ff9
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
      	term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
      	* grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
      	text.
      	* grub-core/kern/i386/qemu/init.c: Renamed to ...
      	* grub-core/kern/vga_init.c: ... this.
      	* grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
      	(grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
      	* grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
      	Adjust.
      	* include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
      	GRUB_MACHINE_PCI_IO_BASE.
      93c06ff9
  4. 16 May, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fuloong video init support. · 736e0ade
      Vladimir 'phcoder' Serbinenko authored
      	* include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
      	well.
      	(grub_vga_read_arx): New function.
      	* grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
      	definition.
      	(framebuffer): New members io, mmioptr and mmiobase.
      	(read_sis_cmd): New function.
      	(write_sis_cmd): Likewise.
      	(grub_video_sis315pro_setup): Do the initialisation. Use 640x480
      	rather than 640x400.
      	* grub-core/video/sis315_init.c: New file.
      736e0ade
  5. 17 Aug, 2010 1 commit