diff options
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 30 |
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); | |||
1731 | void xhci_free_command(struct xhci_hcd *xhci, | 1731 | void 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 */ | ||
1736 | int xhci_register_pci(void); | ||
1737 | void xhci_unregister_pci(void); | ||
1738 | #else | ||
1739 | static inline int xhci_register_pci(void) { return 0; } | ||
1740 | static inline void xhci_unregister_pci(void) {} | ||
1741 | #endif | ||
1742 | |||
1743 | #if IS_ENABLED(CONFIG_USB_XHCI_PLATFORM) | ||
1744 | int xhci_register_plat(void); | ||
1745 | void xhci_unregister_plat(void); | ||
1746 | #else | ||
1747 | static inline int xhci_register_plat(void) | ||
1748 | { return 0; } | ||
1749 | static inline void xhci_unregister_plat(void) | ||
1750 | { } | ||
1751 | #endif | ||
1752 | |||
1753 | /* xHCI host controller glue */ | 1734 | /* xHCI host controller glue */ |
1754 | typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *); | 1735 | typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *); |
1755 | int xhci_handshake(struct xhci_hcd *xhci, void __iomem *ptr, | 1736 | int xhci_handshake(struct xhci_hcd *xhci, void __iomem *ptr, |
@@ -1762,6 +1743,7 @@ int xhci_run(struct usb_hcd *hcd); | |||
1762 | void xhci_stop(struct usb_hcd *hcd); | 1743 | void xhci_stop(struct usb_hcd *hcd); |
1763 | void xhci_shutdown(struct usb_hcd *hcd); | 1744 | void xhci_shutdown(struct usb_hcd *hcd); |
1764 | int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks); | 1745 | int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks); |
1746 | void xhci_init_driver(struct hc_driver *drv, int (*setup_fn)(struct usb_hcd *)); | ||
1765 | 1747 | ||
1766 | #ifdef CONFIG_PM | 1748 | #ifdef CONFIG_PM |
1767 | int xhci_suspend(struct xhci_hcd *xhci); | 1749 | int 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 */ |
1806 | dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb); | 1788 | dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, union xhci_trb *trb); |
1807 | struct xhci_segment *trb_in_td(struct xhci_segment *start_seg, | 1789 | struct 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); |
1810 | int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code); | 1792 | int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code); |
1811 | void xhci_ring_cmd_db(struct xhci_hcd *xhci); | 1793 | void xhci_ring_cmd_db(struct xhci_hcd *xhci); |
1812 | int xhci_queue_slot_control(struct xhci_hcd *xhci, struct xhci_command *cmd, | 1794 | int 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); |
1841 | void xhci_queue_new_dequeue_state(struct xhci_hcd *xhci, | 1823 | void 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, | |||
1887 | struct xhci_slot_ctx *xhci_get_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx); | 1868 | struct xhci_slot_ctx *xhci_get_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx); |
1888 | struct xhci_ep_ctx *xhci_get_ep_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int ep_index); | 1869 | struct 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 */ | ||
1891 | bool xhci_compliance_mode_recovery_timer_quirk_check(void); | ||
1892 | |||
1893 | #endif /* __LINUX_XHCI_HCD_H */ | 1871 | #endif /* __LINUX_XHCI_HCD_H */ |