diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-11-01 11:12:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-01 11:51:12 -0400 |
commit | 3e0232039967d7a1a06c013d097458b4d5892af1 (patch) | |
tree | a7c05f48029f141bb26a7910080be3d8430b928a /drivers/usb/host/ehci.h | |
parent | 7c83b4483606f5fe14127249336ac53ef177a63a (diff) |
USB: EHCI: prepare to make ehci-hcd a library module
This patch (as1624) prepares ehci-hcd for being split up into a core
library and separate platform driver modules. A generic
ehci_hc_driver structure is created, containing all the "standard"
values, and a new mechanism is added whereby a driver module can
specify a set of overrides to those values. In addition the
ehci_setup(), ehci_suspend(), and ehci_resume() routines need to be
EXPORTed for use by the drivers.
As a side effect of this change, a few routines no longer need to be
marked __maybe_unused.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 2262dcdaa3c1..24a8ada4701c 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -781,4 +781,21 @@ static inline u32 hc32_to_cpup (const struct ehci_hcd *ehci, const __hc32 *x) | |||
781 | 781 | ||
782 | /*-------------------------------------------------------------------------*/ | 782 | /*-------------------------------------------------------------------------*/ |
783 | 783 | ||
784 | /* Declarations of things exported for use by ehci platform drivers */ | ||
785 | |||
786 | struct ehci_driver_overrides { | ||
787 | const char *product_desc; | ||
788 | size_t extra_priv_size; | ||
789 | int (*reset)(struct usb_hcd *hcd); | ||
790 | }; | ||
791 | |||
792 | extern void ehci_init_driver(struct hc_driver *drv, | ||
793 | const struct ehci_driver_overrides *over); | ||
794 | extern int ehci_setup(struct usb_hcd *hcd); | ||
795 | |||
796 | #ifdef CONFIG_PM | ||
797 | extern int ehci_suspend(struct usb_hcd *hcd, bool do_wakeup); | ||
798 | extern int ehci_resume(struct usb_hcd *hcd, bool hibernated); | ||
799 | #endif /* CONFIG_PM */ | ||
800 | |||
784 | #endif /* __LINUX_EHCI_HCD_H */ | 801 | #endif /* __LINUX_EHCI_HCD_H */ |