Deleted Added
full compact
usbdi.9 (210669) usbdi.9 (219100)
1.\"
2.\" Copyright (c) 2005 Ian Dowse <iedowse@FreeBSD.org>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\"
2.\" Copyright (c) 2005 Ian Dowse <iedowse@FreeBSD.org>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man9/usbdi.9 210669 2010-07-31 10:01:15Z joel $
26.\" $FreeBSD: head/share/man/man9/usbdi.9 219100 2011-02-28 17:23:15Z hselasky $
27.Dd June 24, 2009
28.Dt USBDI 9
29.Os
30.Sh NAME
31.Nm usb_fifo_alloc_buffer ,
32.Nm usb_fifo_attach ,
33.Nm usb_fifo_detach ,
34.Nm usb_fifo_free_buffer ,

--- 553 unchanged lines hidden (view full) ---

588executed on the endpoint before the USB transfer is started.
589.El
590.Pp
591If this flag is changed outside the USB callback function you have to
592use the "usbd_xfer_set_stall()" and "usbd_transfer_clear_stall()"
593functions! This flag is automatically cleared after that the stall or
594clear stall has been executed.
595.
27.Dd June 24, 2009
28.Dt USBDI 9
29.Os
30.Sh NAME
31.Nm usb_fifo_alloc_buffer ,
32.Nm usb_fifo_attach ,
33.Nm usb_fifo_detach ,
34.Nm usb_fifo_free_buffer ,

--- 553 unchanged lines hidden (view full) ---

588executed on the endpoint before the USB transfer is started.
589.El
590.Pp
591If this flag is changed outside the USB callback function you have to
592use the "usbd_xfer_set_stall()" and "usbd_transfer_clear_stall()"
593functions! This flag is automatically cleared after that the stall or
594clear stall has been executed.
595.
596.It pre_scale_frames
597If this flag is set the number of frames specified is assumed to give the buffering time in milliseconds instead of frames.
598During transfer setup the frames field is pre scaled with the corresponding value for the endpoint and rounded to the nearest number of frames greater than zero.
599This option only has effect for ISOCHRONOUS transfers.
596.El
597.Pp
598.Fa bufsize
599field sets the total buffer size in bytes.
600.
601If this field is zero, "wMaxPacketSize" will be used, multiplied by
602the "frames" field if the transfer type is ISOCHRONOUS.
603.

--- 34 unchanged lines hidden ---
600.El
601.Pp
602.Fa bufsize
603field sets the total buffer size in bytes.
604.
605If this field is zero, "wMaxPacketSize" will be used, multiplied by
606the "frames" field if the transfer type is ISOCHRONOUS.
607.

--- 34 unchanged lines hidden ---