2 Copyright © 2013, The AROS Development Team. All rights reserved.
6 #include <devices/usb_hub.h>
9 const struct UsbStdDevDesc OTGRootHubDevDesc
= {
10 sizeof(struct UsbStdDevDesc
),
28 struct UsbStdCfgDesc HubCfgDesc
;
29 struct UsbStdIfDesc HubIfDesc
;
30 struct UsbStdEPDesc HubEPDesc
;
31 } __attribute__((packed
));
33 const struct OTGHubCfg OTGRootHubCfg
=
36 sizeof(struct UsbStdCfgDesc
),
38 AROS_WORD2LE(sizeof(struct OTGHubCfg
)),
42 USCAF_ONE
|USCAF_SELF_POWERED
,
47 sizeof(struct UsbStdIfDesc
),
59 sizeof(struct UsbStdEPDesc
),
68 const struct UsbHubDesc OTGRootHubDesc
= {
69 9, // 0 Number of bytes in this descriptor, including this byte
70 UDT_HUB
, // 1 Descriptor Type, value: 29H for hub descriptor
71 1, // 2 Number of downstream facing ports that this hub supports
72 0, // 3 wHubCharacteristics
73 0, // 5 bPwrOn2PwrGood
74 0, // 6 bHubContrCurrent
75 1, // 7 DeviceRemovable (size is variable)
76 0xFF // x PortPwrCtrlMask (size is variable)
79 static const CONST_STRPTR OTGRootHubStrings
[] =
82 "BCM2708 OTG2USB Root Hub",