forked from xuos/xiuos
Adding interrupt codes
This commit is contained in:
parent
55eef9ff58
commit
b9de9baf1c
|
@ -47,6 +47,10 @@ Modification: Modify USB Device Initialization in xHCI code to apply to XiZi AIO
|
||||||
#include "usbh_hub.h"
|
#include "usbh_hub.h"
|
||||||
#include "xhci.h"
|
#include "xhci.h"
|
||||||
|
|
||||||
|
#include "libipc.h"
|
||||||
|
#include "libserial.h"
|
||||||
|
#include "usyscall.h"
|
||||||
|
|
||||||
/************************** Constant Definitions *****************************/
|
/************************** Constant Definitions *****************************/
|
||||||
|
|
||||||
/************************** Variable Definitions *****************************/
|
/************************** Variable Definitions *****************************/
|
||||||
|
@ -1028,4 +1032,32 @@ int xhci_usbh_kill_urb(struct usbh_urb *urb){
|
||||||
|
|
||||||
void XHCI_USBH_IRQHandler(void *param){
|
void XHCI_USBH_IRQHandler(void *param){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int IPC_DO_SERVE_FUNC(Ipc_xhci_intr)(void* ignore)
|
||||||
|
{
|
||||||
|
printf("TEST_SW_HDLR: In %s()\n", __func__);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
|
||||||
|
int IPC_DO_SERVE_FUNC(Ipc_wait_xhci_intr)(void* ignore)
|
||||||
|
{
|
||||||
|
// delay the this handle
|
||||||
|
#if 0
|
||||||
|
while (!has_one_interrupt) {
|
||||||
|
yield(SYS_TASK_YIELD_NO_REASON);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
// serve can be done by now
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
IPC_SERVER_INTERFACE(Ipc_xhci_intr, 1);
|
||||||
|
// IPC_SERVER_THREAD_INTERFACE(Ipc_wait_xhci_intr, 1);
|
||||||
|
// IPC_SERVER_REGISTER_INTERFACES(IpcXhciIntrHandler, 2, Ipc_xhci_intr, Ipc_wait_xhci_intr);
|
||||||
|
|
Loading…
Reference in New Issue