0001
0002
0003
0004
0005
0006
0007 #ifndef __LINUX_USB_CDC_H
0008 #define __LINUX_USB_CDC_H
0009
0010 #include <uapi/linux/usb/cdc.h>
0011
0012
0013
0014
0015
0016 #define CDC_PHONET_MAGIC_NUMBER 0xAB
0017
0018
0019
0020
0021
0022 struct usb_cdc_parsed_header {
0023 struct usb_cdc_union_desc *usb_cdc_union_desc;
0024 struct usb_cdc_header_desc *usb_cdc_header_desc;
0025
0026 struct usb_cdc_call_mgmt_descriptor *usb_cdc_call_mgmt_descriptor;
0027 struct usb_cdc_acm_descriptor *usb_cdc_acm_descriptor;
0028 struct usb_cdc_country_functional_desc *usb_cdc_country_functional_desc;
0029 struct usb_cdc_network_terminal_desc *usb_cdc_network_terminal_desc;
0030 struct usb_cdc_ether_desc *usb_cdc_ether_desc;
0031 struct usb_cdc_dmm_desc *usb_cdc_dmm_desc;
0032 struct usb_cdc_mdlm_desc *usb_cdc_mdlm_desc;
0033 struct usb_cdc_mdlm_detail_desc *usb_cdc_mdlm_detail_desc;
0034 struct usb_cdc_obex_desc *usb_cdc_obex_desc;
0035 struct usb_cdc_ncm_desc *usb_cdc_ncm_desc;
0036 struct usb_cdc_mbim_desc *usb_cdc_mbim_desc;
0037 struct usb_cdc_mbim_extended_desc *usb_cdc_mbim_extended_desc;
0038
0039 bool phonet_magic_present;
0040 };
0041
0042 struct usb_interface;
0043 int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
0044 struct usb_interface *intf,
0045 u8 *buffer,
0046 int buflen);
0047
0048 #endif