Annotation of kernel/bsd/dev/ppc/PPCKeyboardPriv.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: #ifdef DRIVER_PRIVATE
        !            26: 
        !            27: /* ADB Keyboard Status - ADB Register 2 */
        !            28: 
        !            29: #define ADBKS_LED_NUMLOCK       0x0001
        !            30: #define ADBKS_LED_CAPSLOCK      0x0002
        !            31: #define ADBKS_LED_SCROLLLOCK        0x0004
        !            32: #define ADBKS_SCROLL_LOCK       0x0040
        !            33: #define ADBKS_NUMLOCK           0x0080
        !            34: /* Bits 3 to 5 are reserved */
        !            35: #define ADBKS_APPLE_CMD         0x0100
        !            36: #define ADBKS_OPTION            0x0200
        !            37: #define ADBKS_SHIFT         0x0400
        !            38: #define ADBKS_CONTROL           0x0800
        !            39: #define ADBKS_CAPSLOCK          0x2000
        !            40: #define ADBKS_CAPSLOCK_short    0x20
        !            41: #define ADBKS_RESET         0x1000
        !            42: #define ADBKS_DELETE            0x4000
        !            43: /* bit 16 is reserved */
        !            44: 
        !            45: /* 
        !            46:  * Special key values
        !            47:  */
        !            48: 
        !            49: #define ADBK_LEFT   0x3B
        !            50: #define ADBK_RIGHT  0x3C
        !            51: #define ADBK_UP     0x3E
        !            52: #define ADBK_DOWN   0x3D
        !            53: #define ADBK_PGUP   0x74
        !            54: #define ADBK_PGDN   0x79
        !            55: #define ADBK_HOME   0x73
        !            56: #define ADBK_END    0x77
        !            57: #define ADBK_CONTROL    0x36
        !            58: #define ADBK_CONTROL_R  0x7D
        !            59: #define ADBK_FLOWER 0x37
        !            60: #define ADBK_SHIFT  0x38
        !            61: #define ADBK_SHIFT_R    0x7B
        !            62: #define ADBK_CAPSLOCK   0x39
        !            63: #define ADBK_OPTION 0x3A
        !            64: #define ADBK_OPTION_R   0x7C
        !            65: #define ADBK_NUMLOCK    0x47
        !            66: #define ADBK_SPACE  0x31
        !            67: #define ADBK_F      0x03
        !            68: #define ADBK_O      0x1F
        !            69: #define ADBK_P      0x23
        !            70: #define ADBK_Q      0x0C
        !            71: #define ADBK_V      0x09
        !            72: #define ADBK_1      0x12
        !            73: #define ADBK_2      0x13
        !            74: #define ADBK_3      0x14
        !            75: #define ADBK_4      0x15
        !            76: #define ADBK_5      0x17
        !            77: #define ADBK_6      0x16
        !            78: #define ADBK_7      0x1A
        !            79: #define ADBK_8      0x1C
        !            80: #define ADBK_9      0x19
        !            81: #define ADBK_0      0x1D
        !            82: #define ADBK_POWER2 0x7E
        !            83: #define ADBK_POWER  0x7f    /* actual 0x7f 0x7f */
        !            84: 
        !            85: #define ADBK_KEYVAL(key)    ((key) & 0x7f)
        !            86: #define ADBK_PRESS(key)     (((key) & 0x80) == 0)
        !            87: #define ADBK_KEYDOWN(key)   (key)
        !            88: #define ADBK_KEYUP(key)     ((key) | 0x80)
        !            89: #define ADBK_MODIFIER(key)  ((((key) & 0x7f) == ADBK_SHIFT) || \
        !            90:                  (((key) & 0x7f) == ADBK_SHIFT_R) || \
        !            91:                  (((key) & 0x7f) == ADBK_CONTROL) || \
        !            92:                  (((key) & 0x7f) == ADBK_CONTROL_R) || \
        !            93:                  (((key) & 0x7f) == ADBK_FLOWER) || \
        !            94:                  (((key) & 0x7f) == ADBK_OPTION) || \
        !            95:                  (((key) & 0x7f) == ADBK_OPTION_R) || \
        !            96:                  (((key) & 0x7f) == ADBK_NUMLOCK) || \
        !            97:                  (((key) & 0x7f) == ADBK_CAPSLOCK))
        !            98: 
        !            99: 
        !           100: #endif /* DRIVER_PRIVATE */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.