From owner-p4-projects@FreeBSD.ORG Fri Feb 15 19:18:15 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0833B16A46B; Fri, 15 Feb 2008 19:18:15 +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 C157716A420 for ; Fri, 15 Feb 2008 19:18:14 +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 AB04513C467 for ; Fri, 15 Feb 2008 19:18:14 +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 m1FJIEXN012358 for ; Fri, 15 Feb 2008 19:18:14 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1FJIEOA012355 for perforce@freebsd.org; Fri, 15 Feb 2008 19:18:14 GMT (envelope-from hselasky@FreeBSD.org) Date: Fri, 15 Feb 2008 19:18:14 GMT Message-Id: <200802151918.m1FJIEOA012355@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 135456 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:18:15 -0000 http://perforce.freebsd.org/chv.cgi?CH=135456 Change 135456 by hselasky@hselasky_laptop001 on 2008/02/15 19:18:01 All static functions in "usb_subr.c" should now have a prototype. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#95 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#95 (text+ko) ==== @@ -72,6 +72,36 @@ #include #include +/* prototypes */ + +static void usbd_trim_spaces(char *p); +static void usbd_finish_vp_info(struct usbd_device *udev); +static void usbd_printBCD(char *p, uint16_t p_len, uint16_t bcd); +static void usbd_fill_pipe_data(struct usbd_device *udev, uint8_t iface_index, usb_endpoint_descriptor_t *edesc, struct usbd_pipe *pipe); +static uint8_t usbd_find_best_slot(uint32_t *ptr, uint8_t start, uint8_t end); +static void usbd_fs_isoc_schedule_init_sub(struct usbd_fs_isoc_schedule *fss); +static void usbd_free_pipe_data(struct usbd_device *udev, uint8_t iface_index, uint8_t iface_mask); +static void usbd_free_iface_data(struct usbd_device *udev);; +static void usbd_reset_probed(struct usbd_device *udev);; +static void usbd_detach_device_sub(struct usbd_device *udev, device_t *ppdev, uint8_t free_subdev);; +static uint8_t usbd_probe_and_attach_sub(struct usbd_device *udev, struct usb_attach_arg *uaa, device_t *ppdev);; +static void usbd_suspend_resume_sub(struct usbd_device *udev, device_t dev, uint8_t do_suspend); + +#ifdef __FreeBSD__ +static int32_t usbd_m_copy_in_cb(void *arg, void *src, uint32_t count); +static void usbd_pc_alloc_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error); + +#else +static int32_t usbd_m_copy_in_cb(void *arg, caddr_t src, uint32_t count); +static void usbd_pc_alloc_mem_cb(struct usbd_page_cache *pc, bus_dma_segment_t *segs, int nseg, int error); + +#endif +static void usbd_config_td_thread(void *arg);; +static void usbd_config_td_dummy_cmd(struct usbd_config_td_softc *sc, struct usbd_config_td_cc *cc, uint16_t reference); +static void usbd_bus_mem_flush_all_cb(struct usbd_bus *bus, struct usbd_page_cache *pc, struct usbd_page *pg, uint32_t size, uint32_t align); +static void usbd_bus_mem_alloc_all_cb(struct usbd_bus *bus, struct usbd_page_cache *pc, struct usbd_page *pg, uint32_t size, uint32_t align); +static void usbd_bus_mem_free_all_cb(struct usbd_bus *bus, struct usbd_page_cache *pc, struct usbd_page *pg, uint32_t size, uint32_t align); + #ifdef USBVERBOSE /* * Descriptions of of known vendors and devices ("products").