1*3446Smrj /* 2*3446Smrj * CDDL HEADER START 3*3446Smrj * 4*3446Smrj * The contents of this file are subject to the terms of the 5*3446Smrj * Common Development and Distribution License (the "License"). 6*3446Smrj * You may not use this file except in compliance with the License. 7*3446Smrj * 8*3446Smrj * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*3446Smrj * or http://www.opensolaris.org/os/licensing. 10*3446Smrj * See the License for the specific language governing permissions 11*3446Smrj * and limitations under the License. 12*3446Smrj * 13*3446Smrj * When distributing Covered Code, include this CDDL HEADER in each 14*3446Smrj * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*3446Smrj * If applicable, add the following below this CDDL HEADER, with the 16*3446Smrj * fields enclosed by brackets "[]" replaced with your own identifying 17*3446Smrj * information: Portions Copyright [yyyy] [name of copyright owner] 18*3446Smrj * 19*3446Smrj * CDDL HEADER END 20*3446Smrj */ 21*3446Smrj /* 22*3446Smrj * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*3446Smrj * Use is subject to license terms. 24*3446Smrj */ 25*3446Smrj 26*3446Smrj #ifndef _BOOT_KEYBOARD_TABLE_H 27*3446Smrj #define _BOOT_KEYBOARD_TABLE_H 28*3446Smrj 29*3446Smrj #pragma ident "%Z%%M% %I% %E% SMI" 30*3446Smrj 31*3446Smrj /* 32*3446Smrj * Structure of the keyboard table for the bootstrap simple 33*3446Smrj * keyboard driver. 34*3446Smrj */ 35*3446Smrj 36*3446Smrj #ifdef __cplusplus 37*3446Smrj extern "C" { 38*3446Smrj #endif 39*3446Smrj 40*3446Smrj #define KBTYPE_NORMAL 0x000 /* Normal keys, process mindlessly. */ 41*3446Smrj #define KBTYPE_ALPHA 0x100 /* Alpha. If CapsLock is set, swap */ 42*3446Smrj /* shifted and unshifted meanings. */ 43*3446Smrj /* Set this on the unshifted character */ 44*3446Smrj #define KBTYPE_NUMPAD 0x200 /* Numeric/Arrow Pad. If NumLock is set, */ 45*3446Smrj /* swap shifted and unshifted meanings. */ 46*3446Smrj /* Set this on the unshifted character. */ 47*3446Smrj #define KBTYPE_FUNC 0x300 /* Extended Function. Send this code, */ 48*3446Smrj /* prefixed with zero. */ 49*3446Smrj #define KBTYPE_SPEC 0x400 /* One-of-a-kind codes. Self-explanatory. */ 50*3446Smrj #define KBTYPE_SPEC_NOP (KBTYPE_SPEC | 0x00) 51*3446Smrj #define KBTYPE_SPEC_UNDEF (KBTYPE_SPEC | 0x01) 52*3446Smrj #define KBTYPE_SPEC_LSHIFT (KBTYPE_SPEC | 0x02) 53*3446Smrj #define KBTYPE_SPEC_RSHIFT (KBTYPE_SPEC | 0x03) 54*3446Smrj #define KBTYPE_SPEC_CTRL (KBTYPE_SPEC | 0x04) 55*3446Smrj #define KBTYPE_SPEC_ALT (KBTYPE_SPEC | 0x05) 56*3446Smrj #define KBTYPE_SPEC_CAPS_LOCK (KBTYPE_SPEC | 0x06) 57*3446Smrj #define KBTYPE_SPEC_NUM_LOCK (KBTYPE_SPEC | 0x07) 58*3446Smrj #define KBTYPE_SPEC_SCROLL_LOCK (KBTYPE_SPEC | 0x08) 59*3446Smrj #define KBTYPE_SPEC_MAYBE_REBOOT (KBTYPE_SPEC | 0x09) 60*3446Smrj 61*3446Smrj struct keyboard_translate { 62*3446Smrj unsigned short normal; 63*3446Smrj unsigned short shifted; 64*3446Smrj unsigned short ctrled; 65*3446Smrj unsigned short alted; 66*3446Smrj }; 67*3446Smrj 68*3446Smrj extern struct keyboard_translate keyboard_translate[128]; 69*3446Smrj 70*3446Smrj #ifdef __cplusplus 71*3446Smrj } 72*3446Smrj #endif 73*3446Smrj 74*3446Smrj #endif /* _BOOT_KEYBOARD_TABLE_H */ 75