xref: /linux/drivers/usb/host/pci-quirks.h (revision 6ad30ce046aefbdc3848232c665a728860d7bb68)
1 #ifndef __LINUX_USB_PCI_QUIRKS_H
2 #define __LINUX_USB_PCI_QUIRKS_H
3 
4 #ifdef CONFIG_PCI
5 void uhci_reset_hc(struct pci_dev *pdev, unsigned long base);
6 int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base);
7 int usb_amd_find_chipset_info(void);
8 void usb_amd_dev_put(void);
9 void usb_amd_quirk_pll_disable(void);
10 void usb_amd_quirk_pll_enable(void);
11 bool usb_is_intel_switchable_xhci(struct pci_dev *pdev);
12 void usb_enable_xhci_ports(struct pci_dev *xhci_pdev);
13 void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
14 void sb800_prefetch(struct device *dev, int on);
15 #else
16 struct pci_dev;
17 static inline void usb_amd_quirk_pll_disable(void) {}
18 static inline void usb_amd_quirk_pll_enable(void) {}
19 static inline void usb_amd_dev_put(void) {}
20 static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {}
21 static inline void sb800_prefetch(struct device *dev, int on) {}
22 #endif  /* CONFIG_PCI */
23 
24 #endif  /*  __LINUX_USB_PCI_QUIRKS_H  */
25