blob: 9ca9252eb1d231d083cbc3627e164f1099f01640 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef __USB_EHCI_H
#define __USB_EHCI_H
#define EHCI_HAS_TT (1 << 0)
struct ehci_platform_data {
unsigned long flags;
};
struct ehci_data {
void __iomem *hccr;
void __iomem *hcor;
unsigned long flags;
struct usb_phy *usbphy;
/* platform specific init functions */
int (*init)(void *drvdata);
int (*post_init)(void *drvdata);
void *drvdata;
};
struct ehci_host;
#ifdef CONFIG_USB_EHCI
struct ehci_host *ehci_register(struct device_d *dev, struct ehci_data *data);
void ehci_unregister(struct ehci_host *);
int ehci_detect(struct ehci_host *ehci);
#else
static inline struct ehci_host *ehci_register(struct device_d *dev,
struct ehci_data *data)
{
return ERR_PTR(-ENOSYS);
}
static inline void ehci_unregister(struct ehci_host *ehci)
{
}
static inline int ehci_detect(struct ehci_host *ehci)
{
return 0;
}
#endif
#endif /* __USB_EHCI_H */
|