Changeset 5b7ba8d in mainline
- Timestamp:
- 2012-04-08T05:19:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3378ba
- Parents:
- 6e5369b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/res.c
r6e5369b r5b7ba8d 237 237 { 238 238 assert(device); 239 usb_log_debug("Disabling EHCI legacy support.\n"); 239 240 240 241 #define CHECK_RET_RETURN(ret, message...) \ … … 249 250 CHECK_RET_RETURN(ret, "Failed to map registers %p: %s.\n", 250 251 (void *) reg_base, str_error(ret)); 252 253 usb_log_debug2("Registers mapped at: %p.\n", regs); 251 254 252 255 const uint32_t hcc_params = … … 286 289 if (*usbcmd & USBCMD_RUN) { 287 290 *usbsts = 0x3f; /* ack all interrupts */ 288 *usbint = 0; /* disable all interru tps */289 *usbconf = 0; /* rel ase control of RH ports */291 *usbint = 0; /* disable all interrupts */ 292 *usbconf = 0; /* release control of RH ports */ 290 293 291 294 *usbcmd = 0; … … 297 300 } 298 301 usb_log_debug("Registers: \n" 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);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); 304 307 305 308 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.