me.
- Provide option (enabled in GENERIC and GENERICSBC) to disable ADB
configuration when serial console is enabled. Old behavior allows
booting even if ADB probe hangs (Apple had several ways to access
ADB).
- Configure ite0 differently--don't assume that it's only extant if it
is the console.
-# $OpenBSD: GENERIC,v 1.17 1997/03/12 15:59:01 briggs Exp $
+# $OpenBSD: GENERIC,v 1.18 1997/04/03 03:53:25 briggs Exp $
# $NetBSD: GENERIC,v 1.52 1997/01/13 23:34:07 scottr Exp $
#
# GENERIC
options COMPAT_SUNOS
options ZS_CONSOLE_ABORT
options DISABLE_EXT_CACHE # Don't use IIci external cache
+options DISABLE_ADB_WITH_SERIAL_CONSOLE
options HWDIRECT
config bsd swap generic
-# $OpenBSD: GENERICSBC,v 1.3 1997/03/12 15:59:01 briggs Exp $
+# $OpenBSD: GENERICSBC,v 1.4 1997/04/03 03:53:26 briggs Exp $
# $NetBSD: GENERIC,v 1.52 1997/01/13 23:34:07 scottr Exp $
#
# GENERIC
options COMPAT_SUNOS
options ZS_CONSOLE_ABORT
options DISABLE_EXT_CACHE # Don't use IIci external cache
+options DISABLE_ADB_WITH_SERIAL_CONSOLE
options HWDIRECT
config bsd swap generic
-/* $OpenBSD: adbsys.c,v 1.7 1997/02/23 06:04:54 briggs Exp $ */
+/* $OpenBSD: adbsys.c,v 1.8 1997/04/03 03:53:27 briggs Exp $ */
/* $NetBSD: adbsys.c,v 1.24 1997/01/13 07:01:23 scottr Exp $ */
/*-
int error;
char buffer[9];
+#ifdef DISABLE_ADB_WHEN_SERIAL_CONSOLE
if ((mac68k_machine.serial_console & 0x03)) {
printf("adb: using serial console\n");
return;
}
+#endif
#ifndef HWDIRECT /* We don't care about ADB ROM driver if we are
* using the HWDIRECT method for ADB/PRAM/RTC. */
-/* $OpenBSD: ite.c,v 1.11 1997/03/12 13:26:38 briggs Exp $ */
+/* $OpenBSD: ite.c,v 1.12 1997/04/03 03:53:27 briggs Exp $ */
/* $NetBSD: ite.c,v 1.32 1997/02/20 00:23:25 scottr Exp $ */
/*
static int ite_pollforchar __P((void));
static int itematch __P((struct device *, void *, void *));
static void iteattach __P((struct device *, struct device *, void *));
+static int ite_init __P((void));
#define dprintf if (0) printf
void *aux;
{
printf(" (minimal console)\n");
+ (void) ite_init();
}
int
itecninit(struct consdev * cp)
{
+ return ite_init();
+}
+
+int
+ite_init()
+{
+ if (ite_initted)
+ return 0;
+
ite_initted = 1;
width = videosize & 0xffff;
height = (videosize >> 16) & 0xffff;
vt100_reset();
- return iteon(cp->cn_dev, 0);
+ return iteon((dev_t) 0, 0);
}
int