diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/hcd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index 75efc45eaa2f..8c865134c881 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h | |||
| @@ -73,6 +73,7 @@ struct giveback_urb_bh { | |||
| 73 | spinlock_t lock; | 73 | spinlock_t lock; |
| 74 | struct list_head head; | 74 | struct list_head head; |
| 75 | struct tasklet_struct bh; | 75 | struct tasklet_struct bh; |
| 76 | struct usb_host_endpoint *completing_ep; | ||
| 76 | }; | 77 | }; |
| 77 | 78 | ||
| 78 | struct usb_hcd { | 79 | struct usb_hcd { |
| @@ -378,6 +379,12 @@ static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd) | |||
| 378 | return hcd->driver->flags & HCD_BH; | 379 | return hcd->driver->flags & HCD_BH; |
| 379 | } | 380 | } |
| 380 | 381 | ||
| 382 | static inline bool hcd_periodic_completion_in_progress(struct usb_hcd *hcd, | ||
| 383 | struct usb_host_endpoint *ep) | ||
| 384 | { | ||
| 385 | return hcd->high_prio_bh.completing_ep == ep; | ||
| 386 | } | ||
| 387 | |||
| 381 | extern int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb); | 388 | extern int usb_hcd_link_urb_to_ep(struct usb_hcd *hcd, struct urb *urb); |
| 382 | extern int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb, | 389 | extern int usb_hcd_check_unlink_urb(struct usb_hcd *hcd, struct urb *urb, |
| 383 | int status); | 390 | int status); |
