]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/kw/usbehcikw.c
ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove...
[plan9front.git] / sys / src / 9 / kw / usbehcikw.c
old mode 100755 (executable)
new mode 100644 (file)
index ca5b9ce..41b8051
@@ -13,7 +13,6 @@
 #include       "../port/error.h"
 #include       "../port/usb.h"
 #include       "usbehci.h"
-//#include     "uncached.h"
 
 #define WINTARG(ctl)   (((ctl) >> 4) & 017)
 #define WINATTR(ctl)   (((ctl) >> 8) & 0377)
@@ -331,6 +330,10 @@ reset(Hci *hp)
                capio->parms & 0x40 ? "explicit" : "automatic",
                capio->parms & 0x10 ? "" : "no ", hp->nports);
 
+       ctlr->tdalloc = ucallocalign;
+       ctlr->dmaalloc = ucalloc;
+       ctlr->dmafree = ucfree;
+
        ehcireset(ctlr);
        ehcimeminit(ctlr);
 
@@ -340,6 +343,9 @@ reset(Hci *hp)
        ehcilinkage(hp);
        hp->shutdown = shutdown;
        hp->debug = setdebug;
+
+       intrenable(Irqlo, hp->irq, hp->interrupt, hp, hp->type);
+
        return 0;
 }