From owner-p4-projects@FreeBSD.ORG Fri Feb 15 19:07:03 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CF68416A469; Fri, 15 Feb 2008 19:07:02 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C9E716A421 for ; Fri, 15 Feb 2008 19:07:02 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4A72F13C465 for ; Fri, 15 Feb 2008 19:07:02 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1FJ72Y4011001 for ; Fri, 15 Feb 2008 19:07:02 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1FJ72Gl010998 for perforce@freebsd.org; Fri, 15 Feb 2008 19:07:02 GMT (envelope-from hselasky@FreeBSD.org) Date: Fri, 15 Feb 2008 19:07:02 GMT Message-Id: <200802151907.m1FJ72Gl010998@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 135454 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 19:07:03 -0000 http://perforce.freebsd.org/chv.cgi?CH=135454 Change 135454 by hselasky@hselasky_laptop001 on 2008/02/15 19:06:48 All static functions in "usb_transfer.c" should have a prototype now. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#113 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#113 (text+ko) ==== @@ -55,17 +55,27 @@ /* prototypes */ -static void usbd_pipe_enter_wrapper(struct usbd_xfer *xfer); static void usbd_compute_max_frame_size(struct usbd_xfer *xfer); +static uint32_t usbd_get_dma_delay(struct usbd_bus *bus); +static void usbd_transfer_unsetup_sub(struct usbd_memory_info *info, uint8_t needs_delay); +static void usbd_control_transfer_init(struct usbd_xfer *xfer); static uint8_t usbd_start_hardware_sub(struct usbd_xfer *xfer); static void usbd_premature_callback(struct usbd_xfer *xfer, usbd_status_t error); +static void usbd_pipe_enter_wrapper(struct usbd_xfer *xfer); +static void usbd_bdma_work_loop(struct usbd_memory_info *info); +static void usbd_callback_intr_sched(struct usbd_memory_info *info); +static void usbd_callback_intr_td_sub(struct usbd_xfer **xfer, uint8_t dropcount); +static void usbd_callback_intr_td(void *arg); +static void usbd_dma_delay_done_cb(struct usbd_xfer *xfer); static void usbd_delayed_transfer_start(void *arg); -static void usbd_bdma_work_loop(struct usbd_memory_info *info); +static void usbd_do_request_callback(struct usbd_xfer *xfer); +static void usbd_handle_request_callback(struct usbd_xfer *xfer); +static usbd_status_t usbd_handle_set_config(struct usbd_xfer *xfer, uint8_t conf_no); +static usbd_status_t usbd_handle_set_stall_sub(struct usbd_device *udev, uint8_t ea_val, uint8_t do_stall); +static usbd_status_t usbd_handle_set_stall(struct usbd_xfer *xfer, uint8_t ep, uint8_t do_stall); +static uint8_t usbd_handle_get_stall(struct usbd_device *udev, uint8_t ea_val); +static usbd_status_t usbd_handle_remote_wakeup(struct usbd_xfer *xfer, uint8_t is_on); static usbd_status_t usbd_handle_request(struct usbd_xfer *xfer); -static void usbd_callback_intr_td(void *arg); -static void usbd_transfer_unsetup_sub(struct usbd_memory_info *info, uint8_t need_delay); -static void usbd_callback_intr_sched(struct usbd_memory_info *info); - #ifdef USB_DEBUG /*------------------------------------------------------------------------*