xref: /netbsd-src/sys/arch/hp300/stand/common/kbdconf.c (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: kbdconf.c,v 1.3 2008/04/28 20:23:19 martin Exp $	*/
2f9cbf4e4Sthorpej 
3f9cbf4e4Sthorpej /*-
4f9cbf4e4Sthorpej  * Copyright (c) 1997 The NetBSD Foundation, Inc.
5f9cbf4e4Sthorpej  * All rights reserved.
6f9cbf4e4Sthorpej  *
7f9cbf4e4Sthorpej  * This code is derived from software contributed to The NetBSD Foundation
8f9cbf4e4Sthorpej  * by Jason R. Thorpe.
9f9cbf4e4Sthorpej  *
10f9cbf4e4Sthorpej  * Redistribution and use in source and binary forms, with or without
11f9cbf4e4Sthorpej  * modification, are permitted provided that the following conditions
12f9cbf4e4Sthorpej  * are met:
13f9cbf4e4Sthorpej  * 1. Redistributions of source code must retain the above copyright
14f9cbf4e4Sthorpej  *    notice, this list of conditions and the following disclaimer.
15f9cbf4e4Sthorpej  * 2. Redistributions in binary form must reproduce the above copyright
16f9cbf4e4Sthorpej  *    notice, this list of conditions and the following disclaimer in the
17f9cbf4e4Sthorpej  *    documentation and/or other materials provided with the distribution.
18f9cbf4e4Sthorpej  *
19f9cbf4e4Sthorpej  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20f9cbf4e4Sthorpej  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21f9cbf4e4Sthorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221bcecdd6Sjtc  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231bcecdd6Sjtc  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24f9cbf4e4Sthorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25f9cbf4e4Sthorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26f9cbf4e4Sthorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27f9cbf4e4Sthorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28f9cbf4e4Sthorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29f9cbf4e4Sthorpej  * POSSIBILITY OF SUCH DAMAGE.
30f9cbf4e4Sthorpej  */
31f9cbf4e4Sthorpej 
32f9cbf4e4Sthorpej /*
33f9cbf4e4Sthorpej  * Keyboard support configuration.
34f9cbf4e4Sthorpej  */
35f9cbf4e4Sthorpej 
36f9cbf4e4Sthorpej #ifdef ITECONSOLE
37f9cbf4e4Sthorpej 
38f9cbf4e4Sthorpej #include <sys/param.h>
39f9cbf4e4Sthorpej 
40f9cbf4e4Sthorpej #include <hp300/stand/common/samachdep.h>
41f9cbf4e4Sthorpej #include <hp300/stand/common/kbdvar.h>
42f9cbf4e4Sthorpej 
43f9cbf4e4Sthorpej #ifndef SMALL
44f9cbf4e4Sthorpej 
45f9cbf4e4Sthorpej /*
46f9cbf4e4Sthorpej  * Note, these are arranged in order of preference.  The first `init'
47f9cbf4e4Sthorpej  * routine to report success gets to play.
48f9cbf4e4Sthorpej  */
49f9cbf4e4Sthorpej struct kbdsw kbdsw[] = {
50f9cbf4e4Sthorpej #ifdef HIL_KEYBOARD
51f9cbf4e4Sthorpej 	{ hilkbd_getc, hilkbd_nmi, hilkbd_init },
52f9cbf4e4Sthorpej #endif
53f9cbf4e4Sthorpej #ifdef DOMAIN_KEYBOARD
54f9cbf4e4Sthorpej 	{ dnkbd_getc, dnkbd_nmi, dnkbd_init },
55f9cbf4e4Sthorpej #endif
56f9cbf4e4Sthorpej 	{ NULL, NULL, NULL },
57f9cbf4e4Sthorpej };
58f9cbf4e4Sthorpej 
59f9cbf4e4Sthorpej #endif /* SMALL */
60f9cbf4e4Sthorpej 
61f9cbf4e4Sthorpej #endif /* ITECONSOLE */
62