small corrections and version bump
[AROS.git] / arch / arm-raspi / usb / usb2otg / usb2otg_hub.h
blob20658def4740d74666caf3989355d7dbe31b0db7
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <devices/usb_hub.h>
8 /* Root hub data */
9 const struct UsbStdDevDesc OTGRootHubDevDesc = {
10 sizeof(struct UsbStdDevDesc),
11 UDT_DEVICE,
12 AROS_WORD2LE(0x0200),
13 HUB_CLASSCODE,
16 64,
17 AROS_WORD2LE(0x0000),
18 AROS_WORD2LE(0x0000),
19 AROS_WORD2LE(0x0100),
26 struct OTGHubCfg
28 struct UsbStdCfgDesc HubCfgDesc;
29 struct UsbStdIfDesc HubIfDesc;
30 struct UsbStdEPDesc HubEPDesc;
31 } __attribute__((packed));
33 const struct OTGHubCfg OTGRootHubCfg =
35 .HubCfgDesc = {
36 sizeof(struct UsbStdCfgDesc),
37 UDT_CONFIGURATION,
38 AROS_WORD2LE(sizeof(struct UsbStdCfgDesc) + sizeof(struct UsbStdIfDesc) + sizeof(struct UsbStdEPDesc)),
42 USCAF_ONE|USCAF_SELF_POWERED,
46 .HubIfDesc = {
47 sizeof(struct UsbStdIfDesc),
48 UDT_INTERFACE,
52 HUB_CLASSCODE,
58 .HubEPDesc = {
59 sizeof(struct UsbStdEPDesc),
60 UDT_ENDPOINT,
61 URTF_IN|1,
62 USEAF_INTERRUPT,
63 AROS_WORD2LE(8),
64 255
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 AROS_WORD2LE(UHCF_INDIVID_POWER|UHCF_INDIVID_OVP), // 3 wHubCharacteristics
73 50, // 5 bPwrOn2PwrGood
74 1, // 6 bHubContrCurrent
75 1, // 7 DeviceRemovable (size is variable)
76 0 // x PortPwrCtrlMask (size is variable)
79 static const CONST_STRPTR OTGRootHubStrings[] =
81 "The AROS Dev Team",
82 "OTG2USB Root Hub",
83 "Standard Config",
84 "Hub interface"