xref: /OK3568_Linux_fs/kernel/include/linux/usb/g_hid.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0+
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * g_hid.h -- Header file for USB HID gadget driver
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2010 Fabien Chouteau <fabien.chouteau@barco.com>
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or modify
8*4882a593Smuzhiyun  * it under the terms of the GNU General Public License as published by
9*4882a593Smuzhiyun  * the Free Software Foundation; either version 2 of the License, or
10*4882a593Smuzhiyun  * (at your option) any later version.
11*4882a593Smuzhiyun  *
12*4882a593Smuzhiyun  * This program is distributed in the hope that it will be useful,
13*4882a593Smuzhiyun  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14*4882a593Smuzhiyun  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*4882a593Smuzhiyun  * GNU General Public License for more details.
16*4882a593Smuzhiyun  *
17*4882a593Smuzhiyun  * You should have received a copy of the GNU General Public License
18*4882a593Smuzhiyun  * along with this program; if not, write to the Free Software
19*4882a593Smuzhiyun  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20*4882a593Smuzhiyun  */
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #ifndef __LINUX_USB_G_HID_H
23*4882a593Smuzhiyun #define __LINUX_USB_G_HID_H
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun struct hidg_func_descriptor {
26*4882a593Smuzhiyun 	unsigned char		subclass;
27*4882a593Smuzhiyun 	unsigned char		protocol;
28*4882a593Smuzhiyun 	unsigned short		report_length;
29*4882a593Smuzhiyun 	unsigned short		report_desc_length;
30*4882a593Smuzhiyun 	unsigned char		report_desc[];
31*4882a593Smuzhiyun };
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif /* __LINUX_USB_G_HID_H */
34