BSD 4_4 release
[unix-history] / usr / src / sys / news3400 / iop / kbreg.h
index d2112a4..dd70969 100644 (file)
@@ -1,29 +1,50 @@
 /*
 /*
- * Copyright (c) 1992 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1992, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by
  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
  *
  *
  * This code is derived from software contributed to Berkeley by
  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
  *
- * %sccs.include.redist.c%
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
  *
  * from: $Hdr: kbreg.h,v 4.300 91/06/09 06:42:47 root Rel41 $ SONY
  *
  *
  * from: $Hdr: kbreg.h,v 4.300 91/06/09 06:42:47 root Rel41 $ SONY
  *
- *     @(#)kbreg.h     7.1 (Berkeley) %G%
+ *     @(#)kbreg.h     8.1 (Berkeley) 6/11/93
  */
 
 #ifndef __KEYBOARD__
 #define __KEYBOARD__ 1
 
  */
 
 #ifndef __KEYBOARD__
 #define __KEYBOARD__ 1
 
-#include "machine/fix_machine_type.h"
-
 #define        key_any(x)      ((x) != -1)
 #define        key_down(x)     (((x) & 0x80) == 0)
 #define        key_up(x)       ((x) & 0x80)
 
 #define        key_any(x)      ((x) != -1)
 #define        key_down(x)     (((x) & 0x80) == 0)
 #define        key_up(x)       ((x) & 0x80)
 
-/*
- *
- */
 typedef        struct key_string {
        int     key_length;
        char    *key_string;
 typedef        struct key_string {
        int     key_length;
        char    *key_string;
@@ -43,10 +64,6 @@ typedef      struct pfk_string {
 
 #define        KBDPRI          28
 
 
 #define        KBDPRI          28
 
-#ifdef news800
-#define        KB_TEST         0
-#endif news800
-
 #define        KIOCSETS        0               /* set pfk string       */
 #define        KIOCBELL        1               /* ring bell            */
 #define        KIOCBACK        2               /* push back string     */
 #define        KIOCSETS        0               /* set pfk string       */
 #define        KIOCBELL        1               /* ring bell            */
 #define        KIOCBACK        2               /* push back string     */
@@ -67,13 +84,7 @@ typedef      struct pfk_string {
 #define        KIOCGETSTAT     17              /* get keyboard status  */
 #define        KIOCSETSTAT     18              /* set keyboard status  */
 
 #define        KIOCGETSTAT     17              /* get keyboard status  */
 #define        KIOCSETSTAT     18              /* set keyboard status  */
 
-/*
- *
- */
 #define        OFF             0x80
 #define        OFF             0x80
-#ifndef SS2
-#define        SS2             0x8e
-#endif
 
 extern int N_Pfk;
 #define        N_PFK           N_Pfk
 
 extern int N_Pfk;
 #define        N_PFK           N_Pfk
@@ -81,7 +92,7 @@ extern int N_Pfk;
 #define        N_KEY           93
 
 /*
 #define        N_KEY           93
 
 /*
- *     Programmable function key
+ * Programmable function key
  */
 #define        F1              1
 #define        F2              2
  */
 #define        F1              1
 #define        F2              2
@@ -132,5 +143,4 @@ extern int N_Pfk;
 #define        RIGHT           43
 #define        LEFT            44
 
 #define        RIGHT           43
 #define        LEFT            44
 
-
 #endif /* !__KEYBOARD__ */
 #endif /* !__KEYBOARD__ */