- Include opt_vesa.h in vesa.c so that the VESA_DEBUG option is actually

propagated from the kernel config file to the source.
- Add some more debug messages to list each mode that is rejected or found.
This commit is contained in:
John Baldwin 2000-10-06 01:43:59 +00:00
parent 511652767f
commit 3ed78c6696
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66710
2 changed files with 16 additions and 2 deletions

View File

@ -27,6 +27,7 @@
*/
#include "opt_vga.h"
#include "opt_vesa.h"
#ifndef VGA_NO_MODE_CHANGE
@ -678,8 +679,16 @@ vesa_bios_init(void)
continue;
#else
if ((vmode.v_modeattr & (V_MODEOPTINFO | V_MODENONVGA))
!= (V_MODEOPTINFO))
!= (V_MODEOPTINFO)) {
#if VESA_DEBUG > 1
printf(
"Rejecting VESA %s mode: %d x %d x %d bpp attr = %x\n",
vmode.v_modeattr & V_MODEGRAPHICS ? "graphics" : "text",
vmode.v_width, vmode.v_height, vmode.v_bpp,
vmode.v_modeattr);
#endif
continue;
}
#endif
/* expand the array if necessary */
@ -698,6 +707,11 @@ vesa_bios_init(void)
vesa_vmode = p;
}
#if VESA_DEBUG > 1
printf("Found VESA %s mode: %d x %d x %d bpp\n",
vmode.v_modeattr & V_MODEGRAPHICS ? "graphics" : "text",
vmode.v_width, vmode.v_height, vmode.v_bpp);
#endif
/* copy some fields */
bzero(&vesa_vmode[modes], sizeof(vesa_vmode[modes]));
vesa_vmode[modes].vi_mode = vesa_vmodetab[i];

View File

@ -2,7 +2,7 @@
.PATH: ${.CURDIR}/../../dev/syscons ${.CURDIR}/../../i386/isa
KMOD = vesa
SRCS = vesa.c scvesactl.c opt_vga.h
SRCS = vesa.c scvesactl.c opt_vga.h opt_vesa.h
NOMAN =
.include <bsd.kmod.mk>