xref: /OK3568_Linux_fs/kernel/include/uapi/linux/usb/cdc-wdm.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * USB CDC Device Management userspace API definitions
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or
6*4882a593Smuzhiyun  * modify it under the terms of the GNU General Public License
7*4882a593Smuzhiyun  * version 2 as published by the Free Software Foundation.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #ifndef _UAPI__LINUX_USB_CDC_WDM_H
11*4882a593Smuzhiyun #define _UAPI__LINUX_USB_CDC_WDM_H
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <linux/types.h>
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun /*
16*4882a593Smuzhiyun  * This IOCTL is used to retrieve the wMaxCommand for the device,
17*4882a593Smuzhiyun  * defining the message limit for both reading and writing.
18*4882a593Smuzhiyun  *
19*4882a593Smuzhiyun  * For CDC WDM functions this will be the wMaxCommand field of the
20*4882a593Smuzhiyun  * Device Management Functional Descriptor.
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun #define IOCTL_WDM_MAX_COMMAND _IOR('H', 0xA0, __u16)
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif /* _UAPI__LINUX_USB_CDC_WDM_H */
25