xref: /freebsd/sys/dev/hid/hconf.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
110fbbdfbSVladimir Kondratyev /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
310fbbdfbSVladimir Kondratyev  *
410fbbdfbSVladimir Kondratyev  * Copyright (c) 2019 Vladimir Kondratyev <wulf@FreeBSD.org>
510fbbdfbSVladimir Kondratyev  *
610fbbdfbSVladimir Kondratyev  * Redistribution and use in source and binary forms, with or without
710fbbdfbSVladimir Kondratyev  * modification, are permitted provided that the following conditions
810fbbdfbSVladimir Kondratyev  * are met:
910fbbdfbSVladimir Kondratyev  * 1. Redistributions of source code must retain the above copyright
1010fbbdfbSVladimir Kondratyev  *    notice, this list of conditions and the following disclaimer.
1110fbbdfbSVladimir Kondratyev  * 2. Redistributions in binary form must reproduce the above copyright
1210fbbdfbSVladimir Kondratyev  *    notice, this list of conditions and the following disclaimer in the
1310fbbdfbSVladimir Kondratyev  *    documentation and/or other materials provided with the distribution.
1410fbbdfbSVladimir Kondratyev  *
1510fbbdfbSVladimir Kondratyev  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1610fbbdfbSVladimir Kondratyev  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1710fbbdfbSVladimir Kondratyev  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1810fbbdfbSVladimir Kondratyev  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1910fbbdfbSVladimir Kondratyev  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2010fbbdfbSVladimir Kondratyev  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2110fbbdfbSVladimir Kondratyev  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2210fbbdfbSVladimir Kondratyev  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2310fbbdfbSVladimir Kondratyev  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2410fbbdfbSVladimir Kondratyev  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2510fbbdfbSVladimir Kondratyev  * SUCH DAMAGE.
2610fbbdfbSVladimir Kondratyev  */
2710fbbdfbSVladimir Kondratyev 
2810fbbdfbSVladimir Kondratyev #ifndef _HCONF_H_
2910fbbdfbSVladimir Kondratyev #define _HCONF_H_
3010fbbdfbSVladimir Kondratyev 
3110fbbdfbSVladimir Kondratyev enum hconf_input_mode {
3210fbbdfbSVladimir Kondratyev 	HCONF_INPUT_MODE_MOUSE		= 0x0,
3310fbbdfbSVladimir Kondratyev 	HCONF_INPUT_MODE_MT_TOUCHSCREEN	= 0x2,
3410fbbdfbSVladimir Kondratyev 	HCONF_INPUT_MODE_MT_TOUCHPAD	= 0x3,
3510fbbdfbSVladimir Kondratyev };
3610fbbdfbSVladimir Kondratyev 
3710fbbdfbSVladimir Kondratyev int	hconf_set_input_mode(device_t, enum hconf_input_mode);
3810fbbdfbSVladimir Kondratyev 
3910fbbdfbSVladimir Kondratyev #endif	/* _HCONF_H_ */
40