patch-2.3.23 linux/drivers/usb/uhci.h

Next file: linux/drivers/usb/usb.c
Previous file: linux/drivers/usb/uhci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/drivers/usb/uhci.h linux/drivers/usb/uhci.h
@@ -125,6 +125,7 @@
 #define TD_TOKEN_TOGGLE		19
 
 #define uhci_maxlen(token)	((token) >> 21)
+#define uhci_expected_length(info) (((info >> 21) + 1) & TD_CTRL_ACTLEN_MASK) /* 1-based */ 
 #define uhci_toggle(token)	(((token) >> TD_TOKEN_TOGGLE) & 1)
 #define uhci_endpoint(token)	(((token) >> 15) & 0xf)
 #define uhci_devaddr(token)	(((token) >> 8) & 0x7f)
@@ -181,12 +182,6 @@
  */
 struct uhci;
 
-#if 0
-#define UHCI_MAXTD	64
-
-#define UHCI_MAXQH	16
-#endif
-
 /* The usb device part must be first! Not anymore -jerdfelt */
 struct uhci_device {
 	struct usb_device	*usb;
@@ -194,10 +189,6 @@
 	atomic_t		refcnt;
 
 	struct uhci		*uhci;
-#if 0
-	struct uhci_qh		qh[UHCI_MAXQH];		/* These are the "common" qh's for each device */
-	struct uhci_td		td[UHCI_MAXTD];
-#endif
 
 	unsigned long		data[16];
 };
@@ -278,7 +269,7 @@
  * and we should meet that frequency when requested to do so.
  * This will require some change(s) to the UHCI skeleton.
  */
-static inline int __interval_to_skel(interval)
+static inline int __interval_to_skel(int interval)
 {
 	if (interval < 16) {
 		if (interval < 4) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)