1b425557eSmrg/*
2b425557eSmrg * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
3ee3138f1Smrg *
4ee3138f1Smrg * Permission is hereby granted, free of charge, to any person obtaining a
5b425557eSmrg * copy of this software and associated documentation files (the "Software"),
6b425557eSmrg * to deal in the Software without restriction, including without limitation
7b425557eSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8b425557eSmrg * and/or sell copies of the Software, and to permit persons to whom the
9b425557eSmrg * Software is furnished to do so, subject to the following conditions:
10b425557eSmrg *
11b425557eSmrg * The above copyright notice and this permission notice (including the next
12b425557eSmrg * paragraph) shall be included in all copies or substantial portions of the
13b425557eSmrg * Software.
14b425557eSmrg *
15b425557eSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16b425557eSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17b425557eSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18b425557eSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19b425557eSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20b425557eSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21b425557eSmrg * DEALINGS IN THE SOFTWARE.
22ee3138f1Smrg */
23ee3138f1Smrg
24ee3138f1Smrg#ifndef _XORG_SUN_KBD_H_
25ee3138f1Smrg#define _XORG_SUN_KBD_H_
26ee3138f1Smrg
27ee3138f1Smrgtypedef struct {
28ee3138f1Smrg    int 		ktype;		/* Keyboard type from KIOCTYPE */
29ee3138f1Smrg    Bool		kbdActive;	/* Have we set kbd modes for X? */
30ee3138f1Smrg    int 		otranslation;	/* Original translation mode */
31ee3138f1Smrg    int 		odirect;	/* Original "direct" mode setting */
3279a8a9c6Smrg    int			oleds;		/* Original LED state */
33ee3138f1Smrg    const char *	strmod;		/* Streams module pushed on kbd device */
3434977a2fSmrg    OsTimerPtr		remove_timer;	/* Callback for removal on ENODEV */
35ee3138f1Smrg} sunKbdPrivRec, *sunKbdPrivPtr;
36ee3138f1Smrg
37ee3138f1Smrg/* sun_kbdMap.c */
38ee3138f1Smrgextern void KbdGetMapping 	(InputInfoPtr pInfo, KeySymsPtr pKeySyms,
39ee3138f1Smrg				 CARD8 *pModMap);
40ee3138f1Smrg#endif
41