sun_kbd.h revision 34977a2f
1ee3138f1Smrg/* Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2ee3138f1Smrg * 3ee3138f1Smrg * Permission is hereby granted, free of charge, to any person obtaining a 4ee3138f1Smrg * copy of this software and associated documentation files (the 5ee3138f1Smrg * "Software"), to deal in the Software without restriction, including 6ee3138f1Smrg * without limitation the rights to use, copy, modify, merge, publish, 7ee3138f1Smrg * distribute, and/or sell copies of the Software, and to permit persons 8ee3138f1Smrg * to whom the Software is furnished to do so, provided that the above 9ee3138f1Smrg * copyright notice(s) and this permission notice appear in all copies of 10ee3138f1Smrg * the Software and that both the above copyright notice(s) and this 11ee3138f1Smrg * permission notice appear in supporting documentation. 12ee3138f1Smrg * 13ee3138f1Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 14ee3138f1Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15ee3138f1Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 16ee3138f1Smrg * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 17ee3138f1Smrg * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 18ee3138f1Smrg * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 19ee3138f1Smrg * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 20ee3138f1Smrg * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 21ee3138f1Smrg * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 22ee3138f1Smrg * 23ee3138f1Smrg * Except as contained in this notice, the name of a copyright holder 24ee3138f1Smrg * shall not be used in advertising or otherwise to promote the sale, use 25ee3138f1Smrg * or other dealings in this Software without prior written authorization 26ee3138f1Smrg * of the copyright holder. 27ee3138f1Smrg */ 28ee3138f1Smrg 29ee3138f1Smrg#ifndef _XORG_SUN_KBD_H_ 30ee3138f1Smrg#define _XORG_SUN_KBD_H_ 31ee3138f1Smrg 32ee3138f1Smrgtypedef struct { 33ee3138f1Smrg int ktype; /* Keyboard type from KIOCTYPE */ 34ee3138f1Smrg Bool kbdActive; /* Have we set kbd modes for X? */ 35ee3138f1Smrg int otranslation; /* Original translation mode */ 36ee3138f1Smrg int odirect; /* Original "direct" mode setting */ 3779a8a9c6Smrg int oleds; /* Original LED state */ 38ee3138f1Smrg const char * strmod; /* Streams module pushed on kbd device */ 3934977a2fSmrg OsTimerPtr remove_timer; /* Callback for removal on ENODEV */ 40ee3138f1Smrg} sunKbdPrivRec, *sunKbdPrivPtr; 41ee3138f1Smrg 42ee3138f1Smrg/* sun_kbdMap.c */ 43ee3138f1Smrgextern void KbdGetMapping (InputInfoPtr pInfo, KeySymsPtr pKeySyms, 44ee3138f1Smrg CARD8 *pModMap); 45ee3138f1Smrg#endif 46