forked from yystopf/xiuos
adding usb_assert
This commit is contained in:
parent
dd3104c4a1
commit
7a7318734b
|
@ -337,4 +337,10 @@ void usb_osal_msleep(uint32_t delay){
|
|||
if(delay > 0){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void usb_assert(const char *filename, int linenum){
|
||||
printf("%s, %d\n", filename, linenum);
|
||||
exit(-1);
|
||||
}
|
|
@ -578,7 +578,7 @@ void USBH_IRQHandler(void *param)
|
|||
usbsts |= XHCI_USBSTS_EINT;
|
||||
writel(usbsts, xhci->op + XHCI_OP_USBSTS);
|
||||
|
||||
/* ack interrupt */
|
||||
/* ack interrupt */xhci_usbh_roothub_control
|
||||
runtime = readl(xhci->run + XHCI_RUN_IR_IMAN ( 0 ));
|
||||
runtime |= XHCI_RUN_IR_IMAN_IP;
|
||||
writel (runtime, xhci->run + XHCI_RUN_IR_IMAN ( 0 ));
|
||||
|
@ -1123,3 +1123,5 @@ int create_xhci_intr_service(void *para){
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue