File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -230,8 +230,27 @@ typedef volatile struct
230
230
uint32_t periodic_start ;
231
231
uint32_t lowspeed_threshold ;
232
232
233
- uint32_t rh_descriptorA ;
234
- uint32_t rh_descriptorB ;
233
+ union {
234
+ uint32_t rh_descriptorA ;
235
+ struct {
236
+ uint32_t number_downstream_ports : 8 ;
237
+ uint32_t power_switching_mode : 1 ;
238
+ uint32_t no_power_switching : 1 ;
239
+ uint32_t device_type : 1 ;
240
+ uint32_t overcurrent_protection_mode : 1 ;
241
+ uint32_t no_over_current_protection : 1 ;
242
+ uint32_t reserved : 11 ;
243
+ uint32_t power_on_to_good_time : 8 ;
244
+ } rh_descriptorA_bit ;
245
+ };
246
+
247
+ union {
248
+ uint32_t rh_descriptorB ;
249
+ struct {
250
+ uint32_t device_removable : 16 ;
251
+ uint32_t port_power_control_mask : 16 ;
252
+ } rh_descriptorB_bit ;
253
+ };
235
254
236
255
union {
237
256
uint32_t rh_status ;
You can’t perform that action at this time.
0 commit comments