.. | .. |
---|
11 | 11 | #ifndef __ASM_ARCH_USB_H |
---|
12 | 12 | #define __ASM_ARCH_USB_H |
---|
13 | 13 | |
---|
14 | | -struct da8xx_ohci_root_hub; |
---|
15 | | - |
---|
16 | | -typedef void (*da8xx_ocic_handler_t)(struct da8xx_ohci_root_hub *hub, |
---|
17 | | - unsigned port); |
---|
18 | | - |
---|
19 | 14 | /* Passed as the platform data to the OHCI driver */ |
---|
20 | 15 | struct da8xx_ohci_root_hub { |
---|
21 | | - /* Switch the port power on/off */ |
---|
22 | | - int (*set_power)(unsigned port, int on); |
---|
23 | | - /* Read the port power status */ |
---|
24 | | - int (*get_power)(unsigned port); |
---|
25 | | - /* Read the port over-current indicator */ |
---|
26 | | - int (*get_oci)(unsigned port); |
---|
27 | | - /* Over-current indicator change notification (pass NULL to disable) */ |
---|
28 | | - int (*ocic_notify)(da8xx_ocic_handler_t handler); |
---|
29 | | - |
---|
30 | 16 | /* Time from power on to power good (in 2 ms units) */ |
---|
31 | 17 | u8 potpgt; |
---|
32 | 18 | }; |
---|