aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2009-12-09 18:59:01 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 17:53:08 -0500
commit412566bd716397e28e81fc9b20804bc6a6daf14d (patch)
tree4013aaa1eda796f8dedea243167f3f4811d211b4 /drivers/usb/host/xhci.h
parentc01591bd6ece72e1c099cbc25ed812e1add579dc (diff)
USB: xhci: Refactor code to free or cache endpoint rings.
Refactor out the code to cache or free endpoint rings from recently dropped or disabled endpoints. This code will be used by a new function to reset a device and disable all endpoints except control endpoint 0. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 877813505ef2..61747f3c5c8f 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1233,6 +1233,9 @@ int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
1233 struct usb_device *udev, struct usb_host_endpoint *ep, 1233 struct usb_device *udev, struct usb_host_endpoint *ep,
1234 gfp_t mem_flags); 1234 gfp_t mem_flags);
1235void xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring); 1235void xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring);
1236void xhci_free_or_cache_endpoint_ring(struct xhci_hcd *xhci,
1237 struct xhci_virt_device *virt_dev,
1238 unsigned int ep_index);
1236struct xhci_command *xhci_alloc_command(struct xhci_hcd *xhci, 1239struct xhci_command *xhci_alloc_command(struct xhci_hcd *xhci,
1237 bool allocate_completion, gfp_t mem_flags); 1240 bool allocate_completion, gfp_t mem_flags);
1238void xhci_free_command(struct xhci_hcd *xhci, 1241void xhci_free_command(struct xhci_hcd *xhci,