vaseboot/include/grub/i386/pc
Colin Watson 8fc4fa45c5 Preferred resolution detection for VBE.
* grub-core/video/video.c (grub_video_edid_checksum): New function.
(grub_video_edid_preferred_mode): Likewise.  Try EDID followed by
the Flat Panel extension, in line with the X.org VESA driver.
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
New function.
(grub_vbe_bios_get_ddc_capabilities): Likewise.
(grub_vbe_bios_read_edid): Likewise.
(grub_vbe_get_preferred_mode): Likewise.
(grub_video_vbe_setup): When the mode is "auto", try to get the
preferred mode from VBE, and use the largest mode that is no larger
than the preferred mode (some BIOSes expose a preferred mode that is
not in their mode list!).  If this fails, fall back to 640x480 as a
safe conservative choice.
(grub_video_vbe_get_edid): New function.
(grub_video_vbe_adapter): Add get_edid.
* include/grub/video.h (struct grub_vbe_edid_info): New structure.
(struct grub_video_adapter): Add get_edid.
(grub_video_edid_checksum): Add prototype.
(grub_video_edid_preferred_mode): Likewise.
* include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
structure.

* grub-core/commands/videoinfo.c (print_edid): New function.
(grub_cmd_videoinfo): Print EDID if available.

* util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto".  This
is more appropriate on a wider range of platforms than 640x480.
* docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
documentation.
2011-07-21 19:46:44 +01:00
..
apm.h Implement APM 2010-09-15 11:42:18 +02:00
biosdisk.h Remove useless prototypes 2010-08-30 16:26:05 +02:00
biosnum.h 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com> 2009-06-11 16:13:39 +00:00
boot.h Fix various issues created by previous commits 2010-04-26 10:56:12 +02:00
chainloader.h BPB patching support (untested) 2011-04-05 14:40:15 +02:00
console.h Remove checkkey on term level 2010-08-23 12:07:49 +02:00
int.h Coreboot video support. 2011-06-27 08:54:55 +02:00
kernel.h Fix broken blksize negotiation, fix broken seek and change a way net device is filled n i386-pc 2011-07-02 17:58:23 +02:00
loader.h Remove i386/loader.h 2010-01-12 22:22:36 +01:00
memory.h Reorganise memory map handling 2010-09-04 17:10:10 +02:00
pxe.h Reintroduce open/close of net cards. Clean up ofnet. 2011-07-05 16:37:14 +02:00
time.h 2007-10-22 Robert Millan <rmh@aybabtu.com> 2007-10-22 19:59:33 +00:00
vbe.h Make new grub_vbe_bios_* functions static. 2011-01-15 14:18:16 -06:00
vesa_modes_table.h Implement APM 2010-09-15 11:42:18 +02:00