forked from xuos/xiuos
Interrupt function
This commit is contained in:
parent
aaceb82386
commit
b53ba2e4b4
|
@ -612,6 +612,10 @@ int xhci_usb_hc_init(uint32_t id){
|
||||||
goto err_open;
|
goto err_open;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((rc = create_xhci_intr_service(xhci) < 0 )){
|
||||||
|
goto err_open;
|
||||||
|
}
|
||||||
|
|
||||||
err_open:
|
err_open:
|
||||||
usb_osal_leave_critical_section(flag);
|
usb_osal_leave_critical_section(flag);
|
||||||
return rc;
|
return rc;
|
||||||
|
@ -1035,12 +1039,14 @@ void XHCI_USBH_IRQHandler(void *param){
|
||||||
uint32_t usbsts;
|
uint32_t usbsts;
|
||||||
uint32_t runtime;
|
uint32_t runtime;
|
||||||
|
|
||||||
|
|
||||||
id = (intptr_t)param;
|
id = (intptr_t)param;
|
||||||
|
|
||||||
if(id < 0 || id >= CONFIG_USBHOST_XHCI_NUM){
|
if(id < 0 || id >= CONFIG_USBHOST_XHCI_NUM){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
xhci = &xhci_host[id];
|
xhci = &xhci_host[id];
|
||||||
USB_ASSERT(xhci);
|
USB_ASSERT(xhci);
|
||||||
|
|
||||||
|
@ -1060,6 +1066,10 @@ void XHCI_USBH_IRQHandler(void *param){
|
||||||
int IPC_DO_SERVE_FUNC(Ipc_xhci_intr)(void* ignore)
|
int IPC_DO_SERVE_FUNC(Ipc_xhci_intr)(void* ignore)
|
||||||
{
|
{
|
||||||
printf("TEST_SW_HDLR: In %s()\n", __func__);
|
printf("TEST_SW_HDLR: In %s()\n", __func__);
|
||||||
|
intptr_t id;
|
||||||
|
|
||||||
|
id = 0;
|
||||||
|
XHCI_USBH_IRQHandler((void *)id);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue