Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d6e0e1c5
Commit
d6e0e1c5
authored
Sep 06, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: add es1_ap_desc.c to describe the ES1 USB device descriptors
parent
f0e49eb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
drivers/staging/greybus/es1_ap_desc.c
drivers/staging/greybus/es1_ap_desc.c
+63
-0
No files found.
drivers/staging/greybus/es1_ap_desc.c
0 → 100644
View file @
d6e0e1c5
static
const
u8
es1_dev_descriptor
[]
=
{
0x12
,
/* __u8 bLength */
0x01
,
/* __u8 bDescriptorType; Device */
0x00
,
0x02
/* __le16 bcdUSB v2.0 */
0x00
,
/* __u8 bDeviceClass */
0x00
,
/* __u8 bDeviceClass */
0x00
,
/* __u8 bDeviceSubClass; */
0x00
,
/* __u8 bDeviceProtocol; */
0x40
,
/* __u8 bMaxPacketSize0; 2^64 = 512 Bytes */
0xff
,
0xff
,
/* __le16 idVendor; 0xffff made up for now */
0x01
,
0x00
,
/* __le16 idProduct; 0x0001 made up for now */
0x01
,
0x00
,
/* __le16 bcdDevice; ES1 */
0x03
,
/* __u8 iManufacturer; */
0x02
,
/* __u8 iProduct; */
0x01
,
/* __u8 iSerialNumber; */
0x01
/* __u8 bNumConfigurations; */
};
static
const
u8
es1_config_descriptor
[]
=
{
/* one configuration */
0x09
,
/* __u8 bLength; */
0x02
,
/* __u8 bDescriptorType; Configuration */
0x19
,
0x00
,
/* __le16 wTotalLength; */
0x01
,
/* __u8 bNumInterfaces; (1) */
0x01
,
/* __u8 bConfigurationValue; */
0x00
,
/* __u8 iConfiguration; */
0xc0
,
/* __u8 bmAttributes;
Bit 7: must be set,
6: Self-powered,
5: Remote wakeup,
4..0: resvd */
0x00
,
/* __u8 MaxPower; */
/* one interface */
0x09
,
/* __u8 if_bLength; */
0x04
,
/* __u8 if_bDescriptorType; Interface */
0x00
,
/* __u8 if_bInterfaceNumber; */
0x00
,
/* __u8 if_bAlternateSetting; */
0x02
,
/* __u8 if_bNumEndpoints; */
0xff
,
/* __u8 if_bInterfaceClass; Vendor-specific */
0xff
,
/* __u8 if_bInterfaceSubClass; Vendor-specific */
0xff
,
/* __u8 if_bInterfaceProtocol; Vendor-specific */
0x00
,
/* __u8 if_iInterface; */
/* two endpoints */
0x07
,
/* __u8 ep_bLength; */
0x05
,
/* __u8 ep_bDescriptorType; Endpoint */
0x81
,
/* __u8 ep_bEndpointAddress; IN Endpoint 1 */
0x02
,
/* __u8 ep_bmAttributes; Bulk */
0x40
,
0x00
,
/* __le16 ep_wMaxPacketSize; 64??? */
0x00
/* __u8 ep_bInterval; */
0x07
,
/* __u8 ep_bLength; */
0x05
,
/* __u8 ep_bDescriptorType; Endpoint */
0x02
,
/* __u8 ep_bEndpointAddress; Out Endpoint 2 */
0x02
,
/* __u8 ep_bmAttributes; Bulk */
0x40
,
0x00
,
/* __le16 ep_wMaxPacketSize; 64??? */
0x00
/* __u8 ep_bInterval; */
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment