From 590ae24e57553f79a92d6ef52c0468c07aa5de22 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Sun, 9 Dec 2012 13:01:12 +0800 Subject: [PATCH] Modules/EHCI - Random debug --- KernelLand/Modules/USB/EHCI/ehci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/KernelLand/Modules/USB/EHCI/ehci.c b/KernelLand/Modules/USB/EHCI/ehci.c index 50004c7d..2dd86108 100644 --- a/KernelLand/Modules/USB/EHCI/ehci.c +++ b/KernelLand/Modules/USB/EHCI/ehci.c @@ -268,6 +268,8 @@ void *EHCI_InitInterrupt(void *Ptr, int Endpoint, int bOutbound, int Period, if( Period > 256 ) Period = 256; + LOG("Endpoint=%x, bOutbound=%i, Period=%i, Length=%i", Endpoint, bOutbound, Period, Length); + // Round the period to the closest power of two pow2period = 1; period_pow = 0; @@ -433,6 +435,8 @@ void *EHCI_SendControl(void *Ptr, void *Dest, tUSBHostCb Cb, void *CbData, if( (tVAddr)Dest <= 256*16 ) return NULL; + LOG("Dest=%p, isOutbound=%i, Lengths(Setup:%i,Out:%i,In:%i)", Dest, isOutbound, SetupLength, OutLength, InLength); + // Check size of SETUP and status // Allocate TDs -- 2.20.1