diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-05-19 16:34:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:12 -0400 |
commit | c433472658b4df11bd3590a59be79194a1ff43ae (patch) | |
tree | 32d48a155360c8e877be3956c9964d2d4c19a236 /drivers/usb/host/uhci-hcd.h | |
parent | 3612242e527eb47ee4756b5350f8bdf791aa5ede (diff) |
[PATCH] UHCI: use integer-sized frame numbers
This patch (as687) changes uhci-hcd to keep track of frame numbers as
full-sized integers rather than 11-bit values. This makes them a lot
easier to handle and makes it possible to schedule beyond a 2-second
window, should anyone ever want to do so.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-hcd.h')
-rw-r--r-- | drivers/usb/host/uhci-hcd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/uhci-hcd.h b/drivers/usb/host/uhci-hcd.h index 04938e64799f..c87ceaa178b6 100644 --- a/drivers/usb/host/uhci-hcd.h +++ b/drivers/usb/host/uhci-hcd.h | |||
@@ -448,6 +448,9 @@ static inline struct usb_hcd *uhci_to_hcd(struct uhci_hcd *uhci) | |||
448 | 448 | ||
449 | #define uhci_dev(u) (uhci_to_hcd(u)->self.controller) | 449 | #define uhci_dev(u) (uhci_to_hcd(u)->self.controller) |
450 | 450 | ||
451 | /* Utility macro for comparing frame numbers */ | ||
452 | #define uhci_frame_before_eq(f1, f2) (0 <= (int) ((f2) - (f1))) | ||
453 | |||
451 | 454 | ||
452 | /* | 455 | /* |
453 | * Private per-URB data | 456 | * Private per-URB data |