Changes in uspace/drv/uhci-hcd/hc.c [563ead9:02cacce] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/hc.c
r563ead9 r02cacce 39 39 #include <usb/debug.h> 40 40 #include <usb/usb.h> 41 #include <usb/ddfiface.h> 42 #include <usb_iface.h> 41 43 42 44 #include "hc.h" … … 83 85 /* allow access to hc control registers */ 84 86 regs_t *io; 85 ret = pio_enable(regs, reg_size, (void 87 ret = pio_enable(regs, reg_size, (void**)&io); 86 88 CHECK_RET_RETURN(ret, 87 89 "Failed(%d) to gain access to registers at %p: %s.\n", … … 141 143 } 142 144 143 constuint16_t status = pio_read_16(®isters->usbcmd);145 uint16_t status = pio_read_16(®isters->usbcmd); 144 146 if (status != 0) 145 147 usb_log_warning("Previous command value: %x.\n", status); … … 210 212 /* Init USB frame list page*/ 211 213 instance->frame_list = get_page(); 212 ret = instance ->frame_list? EOK : ENOMEM;214 ret = instance ? EOK : ENOMEM; 213 215 CHECK_RET_RETURN(ret, "Failed to get frame list page.\n"); 214 216 usb_log_debug("Initialized frame list at %p.\n", instance->frame_list); … … 275 277 &instance->transfers_control_slow); 276 278 277 /*FSBR, This feature is not needed (adds no benefit) and is supposedly 278 * buggy on certain hw, enable at your own risk. */ 279 /*FSBR*/ 279 280 #ifdef FSBR 280 281 transfer_list_set_next(&instance->transfers_bulk_full, … … 427 428 } 428 429 429 constuintptr_t frame_list =430 uintptr_t frame_list = 430 431 pio_read_32(&instance->registers->flbaseadd) & ~0xfff; 431 432 if (frame_list != addr_to_phys(instance->frame_list)) {
Note:
See TracChangeset
for help on using the changeset viewer.