Changeset 01bbbb2 in mainline
- Timestamp:
- 2011-07-11T12:21:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dbb9663
- Parents:
- 062b25f
- Location:
- uspace/drv/bus/usb/ohci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_regs.h
r062b25f r01bbbb2 46 46 47 47 volatile uint32_t control; 48 #define C_C SBR_MASK (0x3) /* Control-bulk service ratio */49 #define C_C SBR_1_1 (0x0)50 #define C_C SBR_1_2 (0x1)51 #define C_C SBR_1_3 (0x2)52 #define C_C SBR_1_4 (0x3)53 #define C_C SBR_SHIFT (0)48 #define C_CBSR_MASK (0x3) /* Control-bulk service ratio */ 49 #define C_CBSR_1_1 (0x0) 50 #define C_CBSR_1_2 (0x1) 51 #define C_CBSR_1_3 (0x2) 52 #define C_CBSR_1_4 (0x3) 53 #define C_CBSR_SHIFT (0) 54 54 55 55 #define C_PLE (1 << 2) /* Periodic list enable */ -
uspace/drv/bus/usb/ohci/root_hub.c
r062b25f r01bbbb2 74 74 .interface_count = 1, 75 75 .length = sizeof (usb_standard_configuration_descriptor_t), 76 .max_power = 100,76 .max_power = 0, /* root hubs don't need no power */ 77 77 .str_configuration = 0, 78 78 }; … … 238 238 } 239 239 240 int ret = rh_init_descriptors(instance);241 if (ret != EOK) {242 return ret;243 }244 240 /* Don't forget the hub status bit and round up */ 245 241 instance->interrupt_mask_size = (instance->port_count + 1 + 8) / 8; … … 248 244 instance->unfinished_interrupt_transfer = NULL; 249 245 250 /* Set port power mode to no -power-switching.*/246 /* Set port power mode to no power-switching. (always on) */ 251 247 instance->registers->rh_desc_a |= RHDA_NPS_FLAG; 248 249 int ret = rh_init_descriptors(instance); 250 if (ret != EOK) { 251 return ret; 252 } 252 253 253 254 usb_log_info("Root hub (%zu ports) initialized.\n",
Note:
See TracChangeset
for help on using the changeset viewer.