X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FUSB%2FCore%2Fusb_io.c;h=de6f6f1169279a0764106725d3882eceaccd5b59;hb=5cab4c07bc13888dc7956194ef9595508072a4eb;hp=346c4cd7ad7d3a076cde4b7a7e1bf241edb3ac8c;hpb=253e9e4a08af1d1d73fe4e3643c3c63e478d4b04;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/USB/Core/usb_io.c b/KernelLand/Modules/USB/Core/usb_io.c index 346c4cd7..de6f6f11 100644 --- a/KernelLand/Modules/USB/Core/usb_io.c +++ b/KernelLand/Modules/USB/Core/usb_io.c @@ -61,9 +61,9 @@ void USB_SendData(tUSBInterface *Dev, int Endpoint, size_t Length, const void *D dest_hdl = Dev->Dev->EndpointHandles[ep->EndpointNum]; LOG("dest_hdl = %p", dest_hdl); if( !dest_hdl ) { - dest_hdl = host->HostDef->InitControl(host->Ptr, Dev->Dev->Address*16 + ep->EndpointNum); - Dev->Dev->EndpointHandles[ep->EndpointNum] = dest_hdl; - LOG("dest_hdl = %p (allocated)", dest_hdl); + Log_Notice("USB", "_SendData on uninitialised enpoint (%p#%i)", Dev->Dev, ep->EndpointNum); + LEAVE('-'); + return; } Threads_ClearEvent(THREAD_EVENT_SHORTWAIT); @@ -85,9 +85,9 @@ void USB_RecvData(tUSBInterface *Dev, int Endpoint, size_t Length, void *Data) dest_hdl = Dev->Dev->EndpointHandles[ep->EndpointNum]; LOG("dest_hdl = %p", dest_hdl); if( !dest_hdl ) { - dest_hdl = host->HostDef->InitControl(host->Ptr, Dev->Dev->Address*16 + ep->EndpointNum); - Dev->Dev->EndpointHandles[ep->EndpointNum] = dest_hdl; - LOG("dest_hdl = %p (allocated)", dest_hdl); + Log_Notice("USB", "_RecvData on uninitialised enpoint (%p#%i)", Dev->Dev, ep->EndpointNum); + LEAVE('-'); + return; } Threads_ClearEvent(THREAD_EVENT_SHORTWAIT); @@ -114,9 +114,9 @@ void USB_RecvDataA(tUSBInterface *Dev, int Endpoint, size_t Length, void *DataBu host = Dev->Dev->Host; dest_hdl = Dev->Dev->EndpointHandles[op->Endpt->EndpointNum]; if( !dest_hdl ) { - dest_hdl = host->HostDef->InitControl(host->Ptr, Dev->Dev->Address*16 + op->Endpt->EndpointNum); - Dev->Dev->EndpointHandles[op->Endpt->EndpointNum] = dest_hdl; - LOG("dest_hdl = %p (allocated)", dest_hdl); + Log_Notice("USB", "_SendData on uninitialised enpoint (%p#%i)", Dev->Dev, op->Endpt->EndpointNum); + LEAVE('-'); + return; } LOG("IN from %p %i:%i", host->Ptr, Dev->Dev->Address, op->Endpt->EndpointNum);