PERFORCE change 99624 for review

Hans Petter Selasky hselasky at FreeBSD.org
Mon Jun 19 17:24:50 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=99624

Change 99624 by hselasky at 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()" */


More information about the p4-projects mailing list