1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

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.
This commit is contained in:
Josef Karthauser 2002-01-21 04:15:39 +00:00
parent 4cd5d8f292
commit 3bedcae34f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89605

View File

@ -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