diff options
author | Jan Andersson <jan@gaisler.com> | 2011-05-06 06:00:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-06 21:23:59 -0400 |
commit | e7652e1ebc0f5e07929067ece14ca869dad20dd6 (patch) | |
tree | cbdca7e57d94be0be8fcee5f6f412eec937188ef /drivers/usb/host/uhci-hcd.h | |
parent | dfeca7a8750296a7d065d45257b3cd86aadc3fb9 (diff) |
USB: UHCI: Allow dynamic assignment of bus specific functions
This patch is part of a series that extend the UHCI HCD to support
non-PCI controllers.
This patch changes calls to uhci_reset_hc, uhci_check_and_reset_hc,
configure_hc, resume_detect_interrupts_are_broken and
global_suspend_mode_is_broken so that they are made through pointers
in the uhci hcd struct. This will allow these functions to be replaced
with bus/arch specific functions.
Signed-off-by: Jan Andersson <jan@gaisler.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/uhci-hcd.h')
-rw-r--r-- | drivers/usb/host/uhci-hcd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/host/uhci-hcd.h b/drivers/usb/host/uhci-hcd.h index f86db61cf085..569437954578 100644 --- a/drivers/usb/host/uhci-hcd.h +++ b/drivers/usb/host/uhci-hcd.h | |||
@@ -433,6 +433,16 @@ struct uhci_hcd { | |||
433 | 433 | ||
434 | int total_load; /* Sum of array values */ | 434 | int total_load; /* Sum of array values */ |
435 | short load[MAX_PHASE]; /* Periodic allocations */ | 435 | short load[MAX_PHASE]; /* Periodic allocations */ |
436 | |||
437 | /* Reset host controller */ | ||
438 | void (*reset_hc) (struct uhci_hcd *uhci); | ||
439 | int (*check_and_reset_hc) (struct uhci_hcd *uhci); | ||
440 | /* configure_hc should perform arch specific settings, if needed */ | ||
441 | void (*configure_hc) (struct uhci_hcd *uhci); | ||
442 | /* Check for broken resume detect interrupts */ | ||
443 | int (*resume_detect_interrupts_are_broken) (struct uhci_hcd *uhci); | ||
444 | /* Check for broken global suspend */ | ||
445 | int (*global_suspend_mode_is_broken) (struct uhci_hcd *uhci); | ||
436 | }; | 446 | }; |
437 | 447 | ||
438 | /* Convert between a usb_hcd pointer and the corresponding uhci_hcd */ | 448 | /* Convert between a usb_hcd pointer and the corresponding uhci_hcd */ |