[SeaBIOS] [PATCH 2/4] add VGA_EDID staff
Hiroshi Miura
miurahr at linux.com
Thu Oct 25 01:58:17 CEST 2012
Signed-off-by: Hiroshi Miura <miurahr at linux.com>
---
vgasrc/Kconfig | 8 ++++++++
vgasrc/vbe.c | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/vgasrc/Kconfig b/vgasrc/Kconfig
index 6b22c39..42540e0 100644
--- a/vgasrc/Kconfig
+++ b/vgasrc/Kconfig
@@ -54,6 +54,14 @@ menu "VGA ROM"
help
Support VBE.
+ config VGA_EDID
+ depends on VGA_VBE
+ bool "VBE DDC EDID support"
+ default y
+ help
+ Support VBE Direct Display Connection(DDC) standard's.
+ Extended Display Information Descriptor(EDID).
+
config VGA_PCI
depends on BUILD_VGABIOS
bool "PCI ROM Headers"
diff --git a/vgasrc/vbe.c b/vgasrc/vbe.c
index ed7c6ee..423cbe1 100644
--- a/vgasrc/vbe.c
+++ b/vgasrc/vbe.c
@@ -392,6 +392,11 @@ vbe_104f15(struct bregs *regs)
u16 unit = regs->cx;
u16 block = regs->dx;
+ if (!CONFIG_VGA_EDID) {
+ regs->ax = 0x014f;
+ return;
+ }
+
switch (regs->bl) {
case 0x00: /* Report VBE/DDC Capabilities */
ret = vgahw_get_ddc_capabilities(unit);
--
1.7.9.5
More information about the SeaBIOS
mailing list