Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Add done method for root control transfers.



details:   https://anonhg.NetBSD.org/src/rev/04f5190b38e3
branches:  trunk
changeset: 481267:04f5190b38e3
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Jan 25 12:06:21 2000 +0000

description:
Add done method for root control transfers.

diffstat:

 sys/dev/usb/ohci.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 6590ff50f78e -r 04f5190b38e3 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Tue Jan 25 11:26:06 2000 +0000
+++ b/sys/dev/usb/ohci.c        Tue Jan 25 12:06:21 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.64 2000/01/19 00:23:58 augustss Exp $       */
+/*     $NetBSD: ohci.c,v 1.65 2000/01/25 12:06:21 augustss Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $       */
 
 /*
@@ -160,6 +160,7 @@
 static usbd_status     ohci_root_ctrl_start __P((usbd_xfer_handle));
 static void            ohci_root_ctrl_abort __P((usbd_xfer_handle));
 static void            ohci_root_ctrl_close __P((usbd_pipe_handle));
+static void            ohci_root_ctrl_done  __P((usbd_xfer_handle));
 
 static usbd_status     ohci_root_intr_transfer __P((usbd_xfer_handle));
 static usbd_status     ohci_root_intr_start __P((usbd_xfer_handle));
@@ -275,7 +276,7 @@
        ohci_root_ctrl_abort,
        ohci_root_ctrl_close,
        ohci_noop,
-       0,
+       ohci_root_ctrl_done,
 };
 
 static struct usbd_pipe_methods ohci_root_intr_methods = {     
@@ -1258,6 +1259,13 @@
        xfer->hcpriv = NULL;
 }
 
+void
+ohci_root_ctrl_done(xfer)
+       usbd_xfer_handle xfer;
+{
+       xfer->hcpriv = NULL;
+}
+
 /*
  * Wait here until controller claims to have an interrupt.
  * Then call ohci_intr and return.  Use timeout to avoid waiting



Home | Main Index | Thread Index | Old Index