summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c194
1 files changed, 97 insertions, 97 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 25b3d2b..5f7be33 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -149,109 +149,109 @@ struct uhci_pipe {
*/
LIST_HEAD(, uhci_intr_info) uhci_ii_free;
-Static void uhci_busreset __P((uhci_softc_t *));
-Static usbd_status uhci_run __P((uhci_softc_t *, int run));
-Static uhci_soft_td_t *uhci_alloc_std __P((uhci_softc_t *));
-Static void uhci_free_std __P((uhci_softc_t *, uhci_soft_td_t *));
-Static uhci_soft_qh_t *uhci_alloc_sqh __P((uhci_softc_t *));
-Static void uhci_free_sqh __P((uhci_softc_t *, uhci_soft_qh_t *));
-Static uhci_intr_info_t *uhci_alloc_intr_info __P((uhci_softc_t *));
-Static void uhci_free_intr_info __P((uhci_intr_info_t *ii));
+Static void uhci_busreset(uhci_softc_t *);
+Static usbd_status uhci_run(uhci_softc_t *, int run);
+Static uhci_soft_td_t *uhci_alloc_std(uhci_softc_t *);
+Static void uhci_free_std(uhci_softc_t *, uhci_soft_td_t *);
+Static uhci_soft_qh_t *uhci_alloc_sqh(uhci_softc_t *);
+Static void uhci_free_sqh(uhci_softc_t *, uhci_soft_qh_t *);
+Static uhci_intr_info_t *uhci_alloc_intr_info(uhci_softc_t *);
+Static void uhci_free_intr_info(uhci_intr_info_t *ii);
#if 0
-Static void uhci_enter_ctl_q __P((uhci_softc_t *, uhci_soft_qh_t *,
- uhci_intr_info_t *));
-Static void uhci_exit_ctl_q __P((uhci_softc_t *, uhci_soft_qh_t *));
+Static void uhci_enter_ctl_q(uhci_softc_t *, uhci_soft_qh_t *,
+ uhci_intr_info_t *);
+Static void uhci_exit_ctl_q(uhci_softc_t *, uhci_soft_qh_t *);
#endif
-Static void uhci_free_std_chain __P((uhci_softc_t *,
- uhci_soft_td_t *, uhci_soft_td_t *));
-Static usbd_status uhci_alloc_std_chain __P((struct uhci_pipe *,
+Static void uhci_free_std_chain(uhci_softc_t *,
+ uhci_soft_td_t *, uhci_soft_td_t *);
+Static usbd_status uhci_alloc_std_chain(struct uhci_pipe *,
uhci_softc_t *, int, int, u_int16_t, usb_dma_t *,
- uhci_soft_td_t **, uhci_soft_td_t **));
-Static void uhci_timo __P((void *));
-Static void uhci_waitintr __P((uhci_softc_t *,
- usbd_xfer_handle));
-Static void uhci_check_intr __P((uhci_softc_t *,
- uhci_intr_info_t *));
-Static void uhci_idone __P((uhci_intr_info_t *));
-Static void uhci_abort_xfer __P((usbd_xfer_handle,
- usbd_status status));
-Static void uhci_abort_xfer_end __P((void *v));
-Static void uhci_timeout __P((void *));
-Static void uhci_lock_frames __P((uhci_softc_t *));
-Static void uhci_unlock_frames __P((uhci_softc_t *));
-Static void uhci_add_ctrl __P((uhci_softc_t *, uhci_soft_qh_t *));
-Static void uhci_add_bulk __P((uhci_softc_t *, uhci_soft_qh_t *));
-Static void uhci_remove_ctrl __P((uhci_softc_t *,uhci_soft_qh_t *));
-Static void uhci_remove_bulk __P((uhci_softc_t *,uhci_soft_qh_t *));
-Static int uhci_str __P((usb_string_descriptor_t *, int, char *));
-
-Static usbd_status uhci_setup_isoc __P((usbd_pipe_handle pipe));
-Static void uhci_device_isoc_enter __P((usbd_xfer_handle));
-
-Static usbd_status uhci_allocm __P((struct usbd_bus *, usb_dma_t *,
- u_int32_t));
-Static void uhci_freem __P((struct usbd_bus *, usb_dma_t *));
-
-Static usbd_xfer_handle uhci_allocx __P((struct usbd_bus *));
-Static void uhci_freex __P((struct usbd_bus *, usbd_xfer_handle));
-
-Static usbd_status uhci_device_ctrl_transfer __P((usbd_xfer_handle));
-Static usbd_status uhci_device_ctrl_start __P((usbd_xfer_handle));
-Static void uhci_device_ctrl_abort __P((usbd_xfer_handle));
-Static void uhci_device_ctrl_close __P((usbd_pipe_handle));
-Static void uhci_device_ctrl_done __P((usbd_xfer_handle));
-
-Static usbd_status uhci_device_intr_transfer __P((usbd_xfer_handle));
-Static usbd_status uhci_device_intr_start __P((usbd_xfer_handle));
-Static void uhci_device_intr_abort __P((usbd_xfer_handle));
-Static void uhci_device_intr_close __P((usbd_pipe_handle));
-Static void uhci_device_intr_done __P((usbd_xfer_handle));
-
-Static usbd_status uhci_device_bulk_transfer __P((usbd_xfer_handle));
-Static usbd_status uhci_device_bulk_start __P((usbd_xfer_handle));
-Static void uhci_device_bulk_abort __P((usbd_xfer_handle));
-Static void uhci_device_bulk_close __P((usbd_pipe_handle));
-Static void uhci_device_bulk_done __P((usbd_xfer_handle));
-
-Static usbd_status uhci_device_isoc_transfer __P((usbd_xfer_handle));
-Static usbd_status uhci_device_isoc_start __P((usbd_xfer_handle));
-Static void uhci_device_isoc_abort __P((usbd_xfer_handle));
-Static void uhci_device_isoc_close __P((usbd_pipe_handle));
-Static void uhci_device_isoc_done __P((usbd_xfer_handle));
-
-Static usbd_status uhci_root_ctrl_transfer __P((usbd_xfer_handle));
-Static usbd_status uhci_root_ctrl_start __P((usbd_xfer_handle));
-Static void uhci_root_ctrl_abort __P((usbd_xfer_handle));
-Static void uhci_root_ctrl_close __P((usbd_pipe_handle));
-
-Static usbd_status uhci_root_intr_transfer __P((usbd_xfer_handle));
-Static usbd_status uhci_root_intr_start __P((usbd_xfer_handle));
-Static void uhci_root_intr_abort __P((usbd_xfer_handle));
-Static void uhci_root_intr_close __P((usbd_pipe_handle));
-Static void uhci_root_intr_done __P((usbd_xfer_handle));
-
-Static usbd_status uhci_open __P((usbd_pipe_handle));
-Static void uhci_poll __P((struct usbd_bus *));
-
-Static usbd_status uhci_device_request __P((usbd_xfer_handle xfer));
-
-Static void uhci_add_intr __P((uhci_softc_t *, int,
- uhci_soft_qh_t *));
-Static void uhci_remove_intr __P((uhci_softc_t *, int,
- uhci_soft_qh_t *));
-Static usbd_status uhci_device_setintr __P((uhci_softc_t *sc,
- struct uhci_pipe *pipe, int ival));
-
-Static void uhci_device_clear_toggle __P((usbd_pipe_handle pipe));
-Static void uhci_noop __P((usbd_pipe_handle pipe));
+ uhci_soft_td_t **, uhci_soft_td_t **);
+Static void uhci_timo(void *);
+Static void uhci_waitintr(uhci_softc_t *,
+ usbd_xfer_handle);
+Static void uhci_check_intr(uhci_softc_t *,
+ uhci_intr_info_t *);
+Static void uhci_idone(uhci_intr_info_t *);
+Static void uhci_abort_xfer(usbd_xfer_handle,
+ usbd_status status);
+Static void uhci_abort_xfer_end(void *v);
+Static void uhci_timeout(void *);
+Static void uhci_lock_frames(uhci_softc_t *);
+Static void uhci_unlock_frames(uhci_softc_t *);
+Static void uhci_add_ctrl(uhci_softc_t *, uhci_soft_qh_t *);
+Static void uhci_add_bulk(uhci_softc_t *, uhci_soft_qh_t *);
+Static void uhci_remove_ctrl(uhci_softc_t *,uhci_soft_qh_t *);
+Static void uhci_remove_bulk(uhci_softc_t *,uhci_soft_qh_t *);
+Static int uhci_str(usb_string_descriptor_t *, int, char *);
+
+Static usbd_status uhci_setup_isoc(usbd_pipe_handle pipe);
+Static void uhci_device_isoc_enter(usbd_xfer_handle);
+
+Static usbd_status uhci_allocm(struct usbd_bus *, usb_dma_t *,
+ u_int32_t);
+Static void uhci_freem(struct usbd_bus *, usb_dma_t *);
+
+Static usbd_xfer_handle uhci_allocx(struct usbd_bus *);
+Static void uhci_freex(struct usbd_bus *, usbd_xfer_handle);
+
+Static usbd_status uhci_device_ctrl_transfer(usbd_xfer_handle);
+Static usbd_status uhci_device_ctrl_start(usbd_xfer_handle);
+Static void uhci_device_ctrl_abort(usbd_xfer_handle);
+Static void uhci_device_ctrl_close(usbd_pipe_handle);
+Static void uhci_device_ctrl_done (usbd_xfer_handle);
+
+Static usbd_status uhci_device_intr_transfer(usbd_xfer_handle);
+Static usbd_status uhci_device_intr_start(usbd_xfer_handle);
+Static void uhci_device_intr_abort(usbd_xfer_handle);
+Static void uhci_device_intr_close(usbd_pipe_handle);
+Static void uhci_device_intr_done (usbd_xfer_handle);
+
+Static usbd_status uhci_device_bulk_transfer(usbd_xfer_handle);
+Static usbd_status uhci_device_bulk_start(usbd_xfer_handle);
+Static void uhci_device_bulk_abort(usbd_xfer_handle);
+Static void uhci_device_bulk_close(usbd_pipe_handle);
+Static void uhci_device_bulk_done (usbd_xfer_handle);
+
+Static usbd_status uhci_device_isoc_transfer(usbd_xfer_handle);
+Static usbd_status uhci_device_isoc_start(usbd_xfer_handle);
+Static void uhci_device_isoc_abort(usbd_xfer_handle);
+Static void uhci_device_isoc_close(usbd_pipe_handle);
+Static void uhci_device_isoc_done (usbd_xfer_handle);
+
+Static usbd_status uhci_root_ctrl_transfer(usbd_xfer_handle);
+Static usbd_status uhci_root_ctrl_start(usbd_xfer_handle);
+Static void uhci_root_ctrl_abort(usbd_xfer_handle);
+Static void uhci_root_ctrl_close(usbd_pipe_handle);
+
+Static usbd_status uhci_root_intr_transfer(usbd_xfer_handle);
+Static usbd_status uhci_root_intr_start(usbd_xfer_handle);
+Static void uhci_root_intr_abort(usbd_xfer_handle);
+Static void uhci_root_intr_close(usbd_pipe_handle);
+Static void uhci_root_intr_done (usbd_xfer_handle);
+
+Static usbd_status uhci_open(usbd_pipe_handle);
+Static void uhci_poll(struct usbd_bus *);
+
+Static usbd_status uhci_device_request(usbd_xfer_handle xfer);
+
+Static void uhci_add_intr(uhci_softc_t *, int,
+ uhci_soft_qh_t *);
+Static void uhci_remove_intr(uhci_softc_t *, int,
+ uhci_soft_qh_t *);
+Static usbd_status uhci_device_setintr(uhci_softc_t *sc,
+ struct uhci_pipe *pipe, int ival);
+
+Static void uhci_device_clear_toggle(usbd_pipe_handle pipe);
+Static void uhci_noop(usbd_pipe_handle pipe);
#ifdef UHCI_DEBUG
-Static void uhci_dumpregs __P((uhci_softc_t *));
-Static void uhci_dump_qhs __P((uhci_soft_qh_t *));
-Static void uhci_dump_qh __P((uhci_soft_qh_t *));
-Static void uhci_dump_tds __P((uhci_soft_td_t *));
-Static void uhci_dump_td __P((uhci_soft_td_t *));
+Static void uhci_dumpregs(uhci_softc_t *);
+Static void uhci_dump_qhs(uhci_soft_qh_t *);
+Static void uhci_dump_qh(uhci_soft_qh_t *);
+Static void uhci_dump_tds(uhci_soft_td_t *);
+Static void uhci_dump_td(uhci_soft_td_t *);
#endif
#define UWRITE2(sc, r, x) bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x))
OpenPOWER on IntegriCloud