Date: Wed, 9 Jan 2008 21:46:53 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132918 for review Message-ID: <200801092146.m09Lkrqb047770@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132918 Change 132918 by hselasky@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801092146.m09Lkrqb047770>