From a138e626bb3055b4736a7932cb6172553fc1f407 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 18 Nov 2013 14:39:07 +0800 Subject: [PATCH] Modules/EHCI - Tweaking, needs a rewrite I think --- KernelLand/Modules/USB/EHCI/ehci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KernelLand/Modules/USB/EHCI/ehci.c b/KernelLand/Modules/USB/EHCI/ehci.c index e3805200..9d356540 100644 --- a/KernelLand/Modules/USB/EHCI/ehci.c +++ b/KernelLand/Modules/USB/EHCI/ehci.c @@ -227,8 +227,10 @@ int EHCI_InitController(tPAddr BaseAddress, Uint8 InterruptNum) // Dummy QH cont->DeadQH = EHCI_int_AllocateQH(cont, 0, 0); memset(cont->DeadQH, 0, sizeof(tEHCI_QH)); - cont->DeadQH->HLink = MM_GetPhysAddr(cont->DeadQH)|22; + cont->DeadQH->HLink = MM_GetPhysAddr(cont->DeadQH)|2; cont->DeadQH->Endpoint = (1<<15); // H - Head of Reclamation List + cont->DeadQH->CurrentTD = MM_GetPhysAddr(cont->DeadTD); + cont->DeadQH->Overlay.Link = MM_GetPhysAddr(cont->DeadTD); // -- Initialisation procedure (from ehci-r10) -- // - Reset controller -- 2.20.1