Changes in uspace/drv/bus/usb/ehci/res.c [5b7ba8d:2f4fa79] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/res.c
r5b7ba8d r2f4fa79 237 237 { 238 238 assert(device); 239 usb_log_debug("Disabling EHCI legacy support.\n");240 239 241 240 #define CHECK_RET_RETURN(ret, message...) \ … … 250 249 CHECK_RET_RETURN(ret, "Failed to map registers %p: %s.\n", 251 250 (void *) reg_base, str_error(ret)); 252 253 usb_log_debug2("Registers mapped at: %p.\n", regs);254 251 255 252 const uint32_t hcc_params = … … 289 286 if (*usbcmd & USBCMD_RUN) { 290 287 *usbsts = 0x3f; /* ack all interrupts */ 291 *usbint = 0; /* disable all interru pts */292 *usbconf = 0; /* rel ease control of RH ports */288 *usbint = 0; /* disable all interrutps */ 289 *usbconf = 0; /* relase control of RH ports */ 293 290 294 291 *usbcmd = 0; … … 300 297 } 301 298 usb_log_debug("Registers: \n" 302 "\t USBCMD (%p): %x(0x00080000 = at least 1ms between interrupts)\n"303 "\t USBSTS (%p): %x(0x00001000 = HC halted)\n"304 "\t USBINT (%p): %x(0x0 = no interrupts).\n"305 "\t CONFIG (%p): %x(0x0 = ports controlled by companion hc).\n",306 usbcmd, *usbcmd, usbsts, *usbsts, usbint, *usbint, usbconf,*usbconf);299 "\t USBCMD: %x(0x00080000 = at least 1ms between interrupts)\n" 300 "\t USBSTS: %x(0x00001000 = HC halted)\n" 301 "\t USBINT: %x(0x0 = no interrupts).\n" 302 "\t CONFIG: %x(0x0 = ports controlled by companion hc).\n", 303 *usbcmd, *usbsts, *usbint, *usbconf); 307 304 308 305 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.