PERFORCE change 132918 for review

Hans Petter Selasky hselasky at FreeBSD.org
Wed Jan 9 13:46:54 PST 2008


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

Change 132918 by hselasky at hselasky_laptop001 on 2008/01/09 21:46:47

	
	Make "bufsize", "frames" and "interval" mode specific
	parameters in "struct usbd_config". There will be
	some follow up commits fixing compilation.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_subr.h#93 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_subr.h#93 (text+ko) ====

@@ -544,6 +544,10 @@
 
 struct usbd_config_sub {
 	usbd_callback_t *callback;	/* USB transfer callback */
+	uint32_t bufsize;		/* total pipe buffer size in bytes */
+	uint32_t frames;		/* maximum number of USB frames */
+	uint16_t interval;		/* interval in milliseconds */
+#define	USBD_DEFAULT_INTERVAL	0
 	uint16_t timeout;		/* transfer timeout in milliseconds */
 	struct usbd_xfer_flags flags;	/* transfer flags */
 };
@@ -551,10 +555,6 @@
 struct usbd_config {
 	struct usbd_config_sub mh;	/* parameters for USB_MODE_HOST */
 	struct usbd_config_sub md;	/* parameters for USB_MODE_DEVICE */
-	uint32_t bufsize;		/* total pipe buffer size in bytes */
-	uint32_t frames;		/* maximum number of USB frames */
-	uint16_t interval;		/* interval in milliseconds */
-#define	USBD_DEFAULT_INTERVAL	0
 	uint8_t	type;			/* pipe type */
 	uint8_t	endpoint;		/* pipe number */
 	uint8_t	direction;		/* pipe direction */


More information about the p4-projects mailing list