aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index cc7c5bb7cbcf..974514762a14 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1605,6 +1605,8 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
1605 dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args) 1605 dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
1606#define xhci_warn_ratelimited(xhci, fmt, args...) \ 1606#define xhci_warn_ratelimited(xhci, fmt, args...) \
1607 dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args) 1607 dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
1608#define xhci_info(xhci, fmt, args...) \
1609 dev_info(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
1608 1610
1609/* 1611/*
1610 * Registers should always be accessed with double word or quad word accesses. 1612 * Registers should always be accessed with double word or quad word accesses.
@@ -1712,8 +1714,7 @@ void xhci_free_stream_info(struct xhci_hcd *xhci,
1712void xhci_setup_streams_ep_input_ctx(struct xhci_hcd *xhci, 1714void xhci_setup_streams_ep_input_ctx(struct xhci_hcd *xhci,
1713 struct xhci_ep_ctx *ep_ctx, 1715 struct xhci_ep_ctx *ep_ctx,
1714 struct xhci_stream_info *stream_info); 1716 struct xhci_stream_info *stream_info);
1715void xhci_setup_no_streams_ep_input_ctx(struct xhci_hcd *xhci, 1717void xhci_setup_no_streams_ep_input_ctx(struct xhci_ep_ctx *ep_ctx,
1716 struct xhci_ep_ctx *ep_ctx,
1717 struct xhci_virt_ep *ep); 1718 struct xhci_virt_ep *ep);
1718void xhci_free_device_endpoint_resources(struct xhci_hcd *xhci, 1719void xhci_free_device_endpoint_resources(struct xhci_hcd *xhci,
1719 struct xhci_virt_device *virt_dev, bool drop_control_ep); 1720 struct xhci_virt_device *virt_dev, bool drop_control_ep);
@@ -1727,14 +1728,13 @@ struct xhci_ring *xhci_stream_id_to_ring(
1727struct xhci_command *xhci_alloc_command(struct xhci_hcd *xhci, 1728struct xhci_command *xhci_alloc_command(struct xhci_hcd *xhci,
1728 bool allocate_in_ctx, bool allocate_completion, 1729 bool allocate_in_ctx, bool allocate_completion,
1729 gfp_t mem_flags); 1730 gfp_t mem_flags);
1730void xhci_urb_free_priv(struct xhci_hcd *xhci, struct urb_priv *urb_priv); 1731void xhci_urb_free_priv(struct urb_priv *urb_priv);
1731void xhci_free_command(struct xhci_hcd *xhci, 1732void xhci_free_command(struct xhci_hcd *xhci,
1732 struct xhci_command *command); 1733 struct xhci_command *command);
1733 1734
1734/* xHCI host controller glue */ 1735/* xHCI host controller glue */
1735typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *); 1736typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *);
1736int xhci_handshake(struct xhci_hcd *xhci, void __iomem *ptr, 1737int xhci_handshake(void __iomem *ptr, u32 mask, u32 done, int usec);
1737 u32 mask, u32 done, int usec);
1738void xhci_quiesce(struct xhci_hcd *xhci); 1738void xhci_quiesce(struct xhci_hcd *xhci);
1739int xhci_halt(struct xhci_hcd *xhci); 1739int xhci_halt(struct xhci_hcd *xhci);
1740int xhci_reset(struct xhci_hcd *xhci); 1740int xhci_reset(struct xhci_hcd *xhci);
@@ -1864,7 +1864,7 @@ int xhci_find_slot_id_by_port(struct usb_hcd *hcd, struct xhci_hcd *xhci,
1864void xhci_ring_device(struct xhci_hcd *xhci, int slot_id); 1864void xhci_ring_device(struct xhci_hcd *xhci, int slot_id);
1865 1865
1866/* xHCI contexts */ 1866/* xHCI contexts */
1867struct xhci_input_control_ctx *xhci_get_input_control_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx); 1867struct xhci_input_control_ctx *xhci_get_input_control_ctx(struct xhci_container_ctx *ctx);
1868struct xhci_slot_ctx *xhci_get_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx); 1868struct xhci_slot_ctx *xhci_get_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx);
1869struct xhci_ep_ctx *xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index); 1869struct xhci_ep_ctx *xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index);
1870 1870