summaryrefslogtreecommitdiff
path: root/src/host/hub.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-03-07 15:49:22 +0700
committerGitHub <[email protected]>2026-03-07 15:49:22 +0700
commitda307fa85b4002c875284bb82d7db1ca1bc7347d (patch)
tree4e9b0dc6804765a2d80b56c6aaa495b84209cdb0 /src/host/hub.h
parentd65964ea32b8081cbc5f2533296c68a90ec1b84f (diff)
parentf17da1c66e53a05e7d400efc98cbfe4faa820ae4 (diff)
Merge pull request #3529 from hathach/mtt_hub
Add MTT hub support
Diffstat (limited to 'src/host/hub.h')
-rw-r--r--src/host/hub.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/host/hub.h b/src/host/hub.h
index d9750f8a5..8a7feda70 100644
--- a/src/host/hub.h
+++ b/src/host/hub.h
@@ -92,6 +92,13 @@ enum {
HUB_CHARS_OVER_CURRENT_INDIVIDUAL = 1,
};
+// Hub Interface Protocol (USB 2.0 spec Table 11-16)
+typedef enum {
+ HUB_PROTOCOL_FULL_SPEED = 0, // Full speed hub
+ HUB_PROTOCOL_HIGH_SPEED_STT = 1, // Hi-speed hub with single TT
+ HUB_PROTOCOL_HIGH_SPEED_MTT = 2, // Hi-speed hub with multiple TTs
+} hub_protocol_t;
+
typedef struct TU_ATTR_PACKED{
uint8_t bLength ; ///< Size of descriptor
uint8_t bDescriptorType ; ///< Other_speed_Configuration Type