28#define USB_HUB_MAX_PORTS 8
31#define USB_DEVICE_CLASS_HUB 9
37#define DESCRIPTOR_HUB 0x29
51 #define HUB_POWER_MODE(reg) ((reg) & 3)
52 #define HUB_POWER_MODE_GANGED 0
53 #define HUB_POWER_MODE_INDIVIDUAL 1
54 #define HUB_TT_THINK_TIME(reg) (((reg) >> 5) & 3)
67 #define HUB_LOCAL_POWER_LOST__MASK (1 << 0)
68 #define HUB_OVER_CURRENT__MASK (1 << 1)
70 #define C_HUB_LOCAL_POWER_LOST__MASK (1 << 0)
71 #define C_HUB_OVER_CURRENT__MASK (1 << 1)
80 #define PORT_CONNECTION__MASK (1 << 0)
81 #define PORT_ENABLE__MASK (1 << 1)
82 #define PORT_OVER_CURRENT__MASK (1 << 3)
83 #define PORT_RESET__MASK (1 << 4)
84 #define PORT_POWER__MASK (1 << 8)
85 #define PORT_LOW_SPEED__MASK (1 << 9)
86 #define PORT_HIGH_SPEED__MASK (1 << 10)
unsigned char bPwrOn2PwrGood
Definition usbhub.h:55
unsigned char DeviceRemoveable[1]
Definition usbhub.h:57
unsigned char bHubContrCurrent
Definition usbhub.h:56
unsigned char bDescriptorType
Definition usbhub.h:48
unsigned char bNbrPorts
Definition usbhub.h:49
unsigned char PortPwrCtrlMask[1]
Definition usbhub.h:58
unsigned short wHubCharacteristics
Definition usbhub.h:50
unsigned char bDescLength
Definition usbhub.h:47
unsigned short wHubStatus
Definition usbhub.h:66
unsigned short wHubChange
Definition usbhub.h:69
unsigned short wChangeStatus
Definition usbhub.h:87
unsigned short wPortStatus
Definition usbhub.h:79