Changeset e247d83 in mainline for uspace/drv/uhci-hcd/hc.c
- Timestamp:
- 2011-05-23T14:04:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 563ead9
- Parents:
- 8953514
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hc.c
r8953514 re247d83 85 85 /* allow access to hc control registers */ 86 86 regs_t *io; 87 ret = pio_enable(regs, reg_size, (void **)&io);87 ret = pio_enable(regs, reg_size, (void **)&io); 88 88 CHECK_RET_RETURN(ret, 89 89 "Failed(%d) to gain access to registers at %p: %s.\n", … … 143 143 } 144 144 145 uint16_t status = pio_read_16(®isters->usbcmd);145 const uint16_t status = pio_read_16(®isters->usbcmd); 146 146 if (status != 0) 147 147 usb_log_warning("Previous command value: %x.\n", status); … … 212 212 /* Init USB frame list page*/ 213 213 instance->frame_list = get_page(); 214 ret = instance ? EOK : ENOMEM;214 ret = instance->frame_list ? EOK : ENOMEM; 215 215 CHECK_RET_RETURN(ret, "Failed to get frame list page.\n"); 216 216 usb_log_debug("Initialized frame list at %p.\n", instance->frame_list); … … 277 277 &instance->transfers_control_slow); 278 278 279 /*FSBR*/ 279 /*FSBR, This feature is not needed (adds no benefit) and is supposedly 280 * buggy on certain hw, enable at your own risk. */ 280 281 #ifdef FSBR 281 282 transfer_list_set_next(&instance->transfers_bulk_full, … … 428 429 } 429 430 430 uintptr_t frame_list =431 const uintptr_t frame_list = 431 432 pio_read_32(&instance->registers->flbaseadd) & ~0xfff; 432 433 if (frame_list != addr_to_phys(instance->frame_list)) {
Note:
See TracChangeset
for help on using the changeset viewer.