since this function is optional get rid of the no-op ones.
ok ratchov@
-/* $OpenBSD: ehci.c,v 1.157 2014/06/04 12:28:21 mpi Exp $ */
+/* $OpenBSD: ehci.c,v 1.158 2014/06/04 13:52:30 mpi Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
void ehci_device_isoc_done(struct usbd_xfer *);
void ehci_device_clear_toggle(struct usbd_pipe *pipe);
-void ehci_noop(struct usbd_pipe *pipe);
void ehci_pcd(struct ehci_softc *, struct usbd_xfer *);
void ehci_disown(struct ehci_softc *, int, int);
.start = ehci_root_ctrl_start,
.abort = ehci_root_ctrl_abort,
.close = ehci_root_ctrl_close,
- .cleartoggle = ehci_noop,
.done = ehci_root_ctrl_done,
};
.start = ehci_root_intr_start,
.abort = ehci_root_intr_abort,
.close = ehci_root_intr_close,
- .cleartoggle = ehci_noop,
.done = ehci_root_intr_done,
};
.start = ehci_device_ctrl_start,
.abort = ehci_device_ctrl_abort,
.close = ehci_device_ctrl_close,
- .cleartoggle = ehci_noop,
.done = ehci_device_ctrl_done,
};
.start = ehci_device_isoc_start,
.abort = ehci_device_isoc_abort,
.close = ehci_device_isoc_close,
- .cleartoggle = ehci_noop,
.done = ehci_device_isoc_done,
};
epipe->sqh->qh.qh_qtd.qtd_status &= htole32(~EHCI_QTD_TOGGLE_MASK);
}
-void
-ehci_noop(struct usbd_pipe *pipe)
-{
-}
-
#ifdef EHCI_DEBUG
void
ehci_dump_regs(struct ehci_softc *sc)
-/* $OpenBSD: ohci.c,v 1.132 2014/06/04 12:28:21 mpi Exp $ */
+/* $OpenBSD: ohci.c,v 1.133 2014/06/04 13:52:30 mpi Exp $ */
/* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
void ohci_abort_xfer(struct usbd_xfer *, usbd_status);
void ohci_device_clear_toggle(struct usbd_pipe *pipe);
-void ohci_noop(struct usbd_pipe *pipe);
#ifdef OHCI_DEBUG
void ohci_dumpregs(struct ohci_softc *);
.start = ohci_root_ctrl_start,
.abort = ohci_root_ctrl_abort,
.close = ohci_root_ctrl_close,
- .cleartoggle = ohci_noop,
.done = ohci_root_ctrl_done,
};
.start = ohci_root_intr_start,
.abort = ohci_root_intr_abort,
.close = ohci_root_intr_close,
- .cleartoggle = ohci_noop,
.done = ohci_root_intr_done,
};
.start = ohci_device_ctrl_start,
.abort = ohci_device_ctrl_abort,
.close = ohci_device_ctrl_close,
- .cleartoggle = ohci_noop,
.done = ohci_device_ctrl_done,
};
.start = ohci_device_isoc_start,
.abort = ohci_device_isoc_abort,
.close = ohci_device_isoc_close,
- .cleartoggle = ohci_noop,
.done = ohci_device_isoc_done,
};
opipe->sed->ed.ed_headp &= htole32(~OHCI_TOGGLECARRY);
}
-void
-ohci_noop(struct usbd_pipe *pipe)
-{
-}
-
usbd_status
ohci_device_bulk_transfer(struct usbd_xfer *xfer)
{
-/* $OpenBSD: uhci.c,v 1.123 2014/06/04 12:28:21 mpi Exp $ */
+/* $OpenBSD: uhci.c,v 1.124 2014/06/04 13:52:30 mpi Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
struct uhci_pipe *pipe, int ival);
void uhci_device_clear_toggle(struct usbd_pipe *pipe);
-void uhci_noop(struct usbd_pipe *pipe);
__inline__ struct uhci_soft_qh *uhci_find_prev_qh(struct uhci_soft_qh *,
struct uhci_soft_qh *);
.start = uhci_root_ctrl_start,
.abort = uhci_root_ctrl_abort,
.close = uhci_root_ctrl_close,
- .cleartoggle = uhci_noop,
.done = uhci_root_ctrl_done,
};
.start = uhci_root_intr_start,
.abort = uhci_root_intr_abort,
.close = uhci_root_intr_close,
- .cleartoggle = uhci_noop,
.done = uhci_root_intr_done,
};
.start = uhci_device_ctrl_start,
.abort = uhci_device_ctrl_abort,
.close = uhci_device_ctrl_close,
- .cleartoggle = uhci_noop,
.done = uhci_device_ctrl_done,
};
.start = uhci_device_isoc_start,
.abort = uhci_device_isoc_abort,
.close = uhci_device_isoc_close,
- .cleartoggle = uhci_noop,
.done = uhci_device_isoc_done,
};
upipe->nexttoggle = 0;
}
-void
-uhci_noop(struct usbd_pipe *pipe)
-{
-}
-
usbd_status
uhci_device_bulk_transfer(struct usbd_xfer *xfer)
{