summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mac68k/dev')
-rw-r--r--sys/arch/mac68k/dev/adbsys.c4
-rw-r--r--sys/arch/mac68k/dev/ite.c15
2 files changed, 16 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/adbsys.c b/sys/arch/mac68k/dev/adbsys.c
index 4b0869c21ef..efe5c271d92 100644
--- a/sys/arch/mac68k/dev/adbsys.c
+++ b/sys/arch/mac68k/dev/adbsys.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*-
@@ -176,10 +176,12 @@ adb_init()
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. */
diff --git a/sys/arch/mac68k/dev/ite.c b/sys/arch/mac68k/dev/ite.c
index 37613bab1f7..d39e177c292 100644
--- a/sys/arch/mac68k/dev/ite.c
+++ b/sys/arch/mac68k/dev/ite.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -114,6 +114,7 @@ static void ite_putchar __P((char));
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
@@ -877,6 +878,7 @@ iteattach(parent, self, aux)
void *aux;
{
printf(" (minimal console)\n");
+ (void) ite_init();
}
@@ -1161,6 +1163,15 @@ itecnprobe(struct consdev * cp)
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;
@@ -1193,7 +1204,7 @@ itecninit(struct consdev * cp)
vt100_reset();
- return iteon(cp->cn_dev, 0);
+ return iteon((dev_t) 0, 0);
}
int