Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 If there is no pckbc, but there is a ukbd...



details:   https://anonhg.NetBSD.org/src/rev/26d8bf911d7d
branches:  trunk
changeset: 516544:26d8bf911d7d
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Oct 24 21:05:17 2001 +0000

description:
If there is no pckbc, but there is a ukbd, try using the latter as console.

diffstat:

 sys/arch/i386/i386/consinit.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 2c0ac60ac601 -r 26d8bf911d7d sys/arch/i386/i386/consinit.c
--- a/sys/arch/i386/i386/consinit.c     Wed Oct 24 21:04:04 2001 +0000
+++ b/sys/arch/i386/i386/consinit.c     Wed Oct 24 21:05:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consinit.c,v 1.6 2001/05/30 15:24:31 lukem Exp $       */
+/*     $NetBSD: consinit.c,v 1.7 2001/10/24 21:05:17 augustss Exp $    */
 
 /*
  * Copyright (c) 1998
@@ -72,6 +72,11 @@
 #include <dev/ic/comvar.h>
 #endif
 
+#include "ukbd.h"
+#if (NUKBD > 0)
+#include <dev/usb/ukbdvar.h>
+#endif
+
 #ifndef CONSDEVNAME
 #define CONSDEVNAME "pc"
 #endif
@@ -168,6 +173,9 @@
                pckbc_cnattach(I386_BUS_SPACE_IO, IO_KBD, KBCMDP,
                    PCKBC_KBD_SLOT);
 #endif
+#if NPCKBC == 0 && NUKBD > 0
+               ukbd_cnattach();
+#endif
                return;
        }
 #endif /* PC | VT | VGA | PCDISPLAY */



Home | Main Index | Thread Index | Old Index