Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb If UKBD_LAYOUT isn't defined, but PCKBD_LAYOUT i...



details:   https://anonhg.NetBSD.org/src/rev/7a2e3da6b740
branches:  trunk
changeset: 580569:7a2e3da6b740
user:      augustss <augustss%NetBSD.org@localhost>
date:      Fri Apr 29 17:02:06 2005 +0000

description:
If UKBD_LAYOUT isn't defined, but PCKBD_LAYOUT is, use the latter as the
default layout.  Fixes half of kern/28668.

diffstat:

 sys/dev/usb/ukbd.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r a9ebc31ec69e -r 7a2e3da6b740 sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Fri Apr 29 16:58:39 2005 +0000
+++ b/sys/dev/usb/ukbd.c        Fri Apr 29 17:02:06 2005 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $        */
+/*      $NetBSD: ukbd.c,v 1.86 2005/04/29 17:02:06 augustss Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.86 2005/04/29 17:02:06 augustss Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -261,8 +261,10 @@
 
 const struct wskbd_mapdata ukbd_keymapdata = {
        ukbd_keydesctab,
-#ifdef UKBD_LAYOUT
+#if defined(UKBD_LAYOUT)
        UKBD_LAYOUT,
+#elif defined(PCKBD_LAYOUT)
+       PCKBD_LAYOUT,
 #else
        KB_US,
 #endif



Home | Main Index | Thread Index | Old Index