make sure the arm implementation struct is aligned
[AROS.git] / arch / arm-native / soc / broadcom / 283x / usb / usb2otg / usb2otg_hub.h
blob748e1056ed0bee2d16cfb1ed0baad7c7af3c8811
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,
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 OTGHubCfg)),
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 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[] =
81 "The AROS Dev Team",
82 "OTG2USB Root Hub",
83 "Standard Config",
84 "Hub interface"