xref: /freebsd/lib/libusbhid/usbvar.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
19e2046dfSNick Hibma /*	$NetBSD: usbvar.h,v 1.2 1999/05/11 21:15:46 augustss Exp $	*/
29e2046dfSNick Hibma 
35e53a4f9SPedro F. Giffuni /*-
4*b61a5730SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
55e53a4f9SPedro F. Giffuni  *
69e2046dfSNick Hibma  * Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
79e2046dfSNick Hibma  * All rights reserved.
89e2046dfSNick Hibma  *
99e2046dfSNick Hibma  * Redistribution and use in source and binary forms, with or without
109e2046dfSNick Hibma  * modification, are permitted provided that the following conditions
119e2046dfSNick Hibma  * are met:
129e2046dfSNick Hibma  * 1. Redistributions of source code must retain the above copyright
139e2046dfSNick Hibma  *    notice, this list of conditions and the following disclaimer.
149e2046dfSNick Hibma  * 2. Redistributions in binary form must reproduce the above copyright
159e2046dfSNick Hibma  *    notice, this list of conditions and the following disclaimer in the
169e2046dfSNick Hibma  *    documentation and/or other materials provided with the distribution.
179e2046dfSNick Hibma  *
189e2046dfSNick Hibma  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
199e2046dfSNick Hibma  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
209e2046dfSNick Hibma  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
219e2046dfSNick Hibma  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
229e2046dfSNick Hibma  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
239e2046dfSNick Hibma  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
249e2046dfSNick Hibma  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
259e2046dfSNick Hibma  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
269e2046dfSNick Hibma  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
279e2046dfSNick Hibma  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
289e2046dfSNick Hibma  * SUCH DAMAGE.
299e2046dfSNick Hibma  *
309e2046dfSNick Hibma  */
319e2046dfSNick Hibma 
32951acbc0SHans Petter Selasky #ifndef _USBVAR_H_
33951acbc0SHans Petter Selasky #define	_USBVAR_H_
34951acbc0SHans Petter Selasky 
359e2046dfSNick Hibma struct report_desc {
36cde58781SKai Wang 	uint32_t size;
37cde58781SKai Wang 	uint8_t data[1];
389e2046dfSNick Hibma };
399e2046dfSNick Hibma 
407e474656SAlfred Perlstein /* internal backwards compatibility functions */
417e474656SAlfred Perlstein 
42bf41796cSAndrew Thompson #ifdef HID_COMPAT7
437e474656SAlfred Perlstein int	hid_set_immed_compat7(int fd, int enable);
447e474656SAlfred Perlstein int	hid_get_report_id_compat7(int fd);
457e474656SAlfred Perlstein report_desc_t	hid_get_report_desc_compat7(int fd);
46bf41796cSAndrew Thompson #endif
47951acbc0SHans Petter Selasky 
48951acbc0SHans Petter Selasky #endif		/* _USBVAR_H_ */
49