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.h30
1 files changed, 4 insertions, 26 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index dace5152e179..df76d642e719 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1731,25 +1731,6 @@ void xhci_urb_free_priv(struct xhci_hcd *xhci, struct urb_priv *urb_priv);
1731void xhci_free_command(struct xhci_hcd *xhci, 1731void xhci_free_command(struct xhci_hcd *xhci,
1732 struct xhci_command *command); 1732 struct xhci_command *command);
1733 1733
1734#ifdef CONFIG_PCI
1735/* xHCI PCI glue */
1736int xhci_register_pci(void);
1737void xhci_unregister_pci(void);
1738#else
1739static inline int xhci_register_pci(void) { return 0; }
1740static inline void xhci_unregister_pci(void) {}
1741#endif
1742
1743#if IS_ENABLED(CONFIG_USB_XHCI_PLATFORM)
1744int xhci_register_plat(void);
1745void xhci_unregister_plat(void);
1746#else
1747static inline int xhci_register_plat(void)
1748{ return 0; }
1749static inline void xhci_unregister_plat(void)
1750{ }
1751#endif
1752
1753/* xHCI host controller glue */ 1734/* xHCI host controller glue */
1754typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *); 1735typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *);
1755int xhci_handshake(struct xhci_hcd *xhci, void __iomem *ptr, 1736int xhci_handshake(struct xhci_hcd *xhci, void __iomem *ptr,
@@ -1762,6 +1743,7 @@ int xhci_run(struct usb_hcd *hcd);
1762void xhci_stop(struct usb_hcd *hcd); 1743void xhci_stop(struct usb_hcd *hcd);
1763void xhci_shutdown(struct usb_hcd *hcd); 1744void xhci_shutdown(struct usb_hcd *hcd);
1764int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks); 1745int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks);
1746void xhci_init_driver(struct hc_driver *drv, int (*setup_fn)(struct usb_hcd *));
1765 1747
1766#ifdef CONFIG_PM 1748#ifdef CONFIG_PM
1767int xhci_suspend(struct xhci_hcd *xhci); 1749int xhci_suspend(struct xhci_hcd *xhci);
@@ -1804,9 +1786,9 @@ void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev);
1804 1786
1805/* xHCI ring, segment, TRB, and TD functions */ 1787/* xHCI ring, segment, TRB, and TD functions */
1806dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb); 1788dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb);
1807struct xhci_segment *trb_in_td(struct xhci_segment *start_seg, 1789struct xhci_segment *trb_in_td(struct xhci_hcd *xhci,
1808 union xhci_trb *start_trb, union xhci_trb *end_trb, 1790 struct xhci_segment *start_seg, union xhci_trb *start_trb,
1809 dma_addr_t suspect_dma); 1791 union xhci_trb *end_trb, dma_addr_t suspect_dma, bool debug);
1810int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code); 1792int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code);
1811void xhci_ring_cmd_db(struct xhci_hcd *xhci); 1793void xhci_ring_cmd_db(struct xhci_hcd *xhci);
1812int xhci_queue_slot_control(struct xhci_hcd *xhci, struct xhci_command *cmd, 1794int xhci_queue_slot_control(struct xhci_hcd *xhci, struct xhci_command *cmd,
@@ -1839,7 +1821,6 @@ void xhci_find_new_dequeue_state(struct xhci_hcd *xhci,
1839 unsigned int stream_id, struct xhci_td *cur_td, 1821 unsigned int stream_id, struct xhci_td *cur_td,
1840 struct xhci_dequeue_state *state); 1822 struct xhci_dequeue_state *state);
1841void xhci_queue_new_dequeue_state(struct xhci_hcd *xhci, 1823void xhci_queue_new_dequeue_state(struct xhci_hcd *xhci,
1842 struct xhci_command *cmd,
1843 unsigned int slot_id, unsigned int ep_index, 1824 unsigned int slot_id, unsigned int ep_index,
1844 unsigned int stream_id, 1825 unsigned int stream_id,
1845 struct xhci_dequeue_state *deq_state); 1826 struct xhci_dequeue_state *deq_state);
@@ -1887,7 +1868,4 @@ struct xhci_input_control_ctx *xhci_get_input_control_ctx(struct xhci_hcd *xhci,
1887struct 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);
1888struct 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);
1889 1870
1890/* xHCI quirks */
1891bool xhci_compliance_mode_recovery_timer_quirk_check(void);
1892
1893#endif /* __LINUX_XHCI_HCD_H */ 1871#endif /* __LINUX_XHCI_HCD_H */