Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2006 17:24:46 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 99624 for review
Message-ID:  <200606191724.k5JHOkmI091988@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99624

Change 99624 by hselasky@hselasky_mini_itx on 2006/06/19 17:24:16

	Multiply the default transfer length by the "frames" field if it is non zero, 
	if the "bufsize" field is zero, in the "usbd_config" structure. This is 
	useful when setting up isochronous transfers.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/ehci.c#5 edit
.. //depot/projects/usb/src/sys/dev/usb/ohci.c#5 edit
.. //depot/projects/usb/src/sys/dev/usb/uhci.c#5 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/ehci.c#5 (text+ko) ====

@@ -3456,6 +3456,9 @@
 
 		if (xfer->length == 0) {
 		    xfer->length = xfer->max_packet_size;
+		    if (setup->frames) {
+		        xfer->length *= setup->frames;
+		    }
 		}
 
 		/* wMaxPacketSize is validated by "usbd_fill_iface_data()" */

==== //depot/projects/usb/src/sys/dev/usb/ohci.c#5 (text+ko) ====

@@ -2479,6 +2479,9 @@
 
 		if (xfer->length == 0) {
 		    xfer->length = xfer->max_packet_size;
+		    if (setup->frames) {
+		        xfer->length *= setup->frames;
+		    }
 		}
 
 		/* wMaxPacketSize is validated by "usbd_fill_iface_data()" */

==== //depot/projects/usb/src/sys/dev/usb/uhci.c#5 (text+ko) ====

@@ -2750,6 +2750,9 @@
 
 		if (xfer->length == 0) {
 		    xfer->length = xfer->max_packet_size;
+		    if (setup->frames) {
+		        xfer->length *= setup->frames;
+		    }
 		}
 
 		/* wMaxPacketSize is validated by "usbd_fill_iface_data()" */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606191724.k5JHOkmI091988>