diff options
Diffstat (limited to 'drivers/usb/host/ohci.h')
-rw-r--r-- | drivers/usb/host/ohci.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h index 4ada43cf1387..dd4d5b4dcb6c 100644 --- a/drivers/usb/host/ohci.h +++ b/drivers/usb/host/ohci.h | |||
@@ -401,8 +401,34 @@ struct ohci_hcd { | |||
401 | // there are also chip quirks/bugs in init logic | 401 | // there are also chip quirks/bugs in init logic |
402 | 402 | ||
403 | struct work_struct nec_work; /* Worker for NEC quirk */ | 403 | struct work_struct nec_work; /* Worker for NEC quirk */ |
404 | |||
405 | /* Needed for ZF Micro quirk */ | ||
406 | struct timer_list unlink_watchdog; | ||
407 | unsigned eds_scheduled; | ||
408 | struct ed *ed_to_check; | ||
409 | unsigned zf_delay; | ||
404 | }; | 410 | }; |
405 | 411 | ||
412 | #ifdef CONFIG_PCI | ||
413 | static inline int quirk_nec(struct ohci_hcd *ohci) | ||
414 | { | ||
415 | return ohci->flags & OHCI_QUIRK_NEC; | ||
416 | } | ||
417 | static inline int quirk_zfmicro(struct ohci_hcd *ohci) | ||
418 | { | ||
419 | return ohci->flags & OHCI_QUIRK_ZFMICRO; | ||
420 | } | ||
421 | #else | ||
422 | static inline int quirk_nec(struct ohci_hcd *ohci) | ||
423 | { | ||
424 | return 0; | ||
425 | } | ||
426 | static inline int quirk_zfmicro(struct ohci_hcd *ohci) | ||
427 | { | ||
428 | return 0; | ||
429 | } | ||
430 | #endif | ||
431 | |||
406 | /* convert between an hcd pointer and the corresponding ohci_hcd */ | 432 | /* convert between an hcd pointer and the corresponding ohci_hcd */ |
407 | static inline struct ohci_hcd *hcd_to_ohci (struct usb_hcd *hcd) | 433 | static inline struct ohci_hcd *hcd_to_ohci (struct usb_hcd *hcd) |
408 | { | 434 | { |