From ac16f826307f3faf58e1b1b7b5bd43fd267e1ec8 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 21 Jan 2002 04:15:39 +0000 Subject: Merge from NetBSD: revision 1.65 date: 2000/01/25 12:06:21; author: augustss; state: Exp; lines: +10 -2 Add done method for root control transfers. --- sys/dev/usb/ohci.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index debe3a0..a54f21b 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -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$ */ /* @@ -165,6 +165,7 @@ Static usbd_status ohci_root_ctrl_transfer(usbd_xfer_handle); Static usbd_status ohci_root_ctrl_start(usbd_xfer_handle); Static void ohci_root_ctrl_abort(usbd_xfer_handle); Static void ohci_root_ctrl_close(usbd_pipe_handle); +Static void ohci_root_ctrl_done (usbd_xfer_handle); Static usbd_status ohci_root_intr_transfer(usbd_xfer_handle); Static usbd_status ohci_root_intr_start(usbd_xfer_handle); @@ -280,7 +281,7 @@ Static struct usbd_pipe_methods ohci_root_ctrl_methods = { ohci_root_ctrl_abort, ohci_root_ctrl_close, ohci_noop, - 0, + ohci_root_ctrl_done, }; Static struct usbd_pipe_methods ohci_root_intr_methods = { @@ -1364,6 +1365,13 @@ ohci_root_intr_done(xfer) 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 -- cgit v1.1