1 #include <linux/usb/ch9.h>
2 #include <linux/usb/functionfs.h>
4 #define TRACE_TAG TRACE_USB
6 #define MAX_PACKET_SIZE_FS 64
7 #define MAX_PACKET_SIZE_HS 512
9 #define cpu_to_le16(x) htole16(x)
10 #define cpu_to_le32(x) htole32(x)
12 extern struct sdb_usb_descs {
13 struct usb_functionfs_descs_head header;
15 struct usb_interface_descriptor intf;
16 struct usb_endpoint_descriptor_no_audio source;
17 struct usb_endpoint_descriptor_no_audio sink;
18 } __attribute__((packed)) fs_descs, hs_descs;
19 } __attribute__((packed)) descriptors;
21 #define STR_INTERFACE "SDB Interface"
23 extern struct sdb_usb_strings {
24 struct usb_functionfs_strings_head header;
27 const char str1[sizeof(STR_INTERFACE)];
28 } __attribute__((packed)) lang0;
29 } __attribute__((packed)) strings;