From 8a011db3a5d0218e0445148b33c93c13d7f4cbde Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 31 Dec 2005 18:13:46 +0000 Subject: Rework (once again) the console code, in order to match the PROM's logic better. When not running on serial console, the PROM will pick the ``internal'' graphics device, and if it does not exist, the DIO device with the lowest select code, and will resort to SGC devices if no internal or DIO device was found. However, the current logic would search for a certain frame buffer type first, then for its best hardware location, following the order they are listed in conf.c. By replacing gazillions of almost-exactly-duplicated frame buffer code with one single instance, which is device type-agnostic, we can match the PROM (and the bootblocks) logic again. Plus this saves a few KB of code! --- sys/arch/hp300/include/autoconf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/hp300/include') diff --git a/sys/arch/hp300/include/autoconf.h b/sys/arch/hp300/include/autoconf.h index d9fa65f15bf..261066bfdf8 100644 --- a/sys/arch/hp300/include/autoconf.h +++ b/sys/arch/hp300/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.13 2005/12/30 18:14:12 miod Exp $ */ +/* $OpenBSD: autoconf.h,v 1.14 2005/12/31 18:13:45 miod Exp $ */ /* $NetBSD: autoconf.h,v 1.4 1997/04/01 03:03:56 scottr Exp $ */ /*- @@ -46,7 +46,7 @@ extern int convasize; /* size of mapping at conaddr */ extern int consolepass; /* console initialization pass */ void hp300_cninit(void); -void console_scan(int (*)(int, caddr_t, void *), void *, int); +void console_scan(int (*)(int, caddr_t, void *), void *); caddr_t iomap(caddr_t, int); void iounmap(caddr_t, int); #endif /* _KERNEL */ -- cgit v1.2.3