blob: ed6700d00fe6fd372f62b575b49075b5ede392f1 [file] [log] [blame]
Adrian Bunk75e2df62006-03-25 18:01:53 +01001#ifndef __LINUX_USB_PCI_QUIRKS_H
2#define __LINUX_USB_PCI_QUIRKS_H
3
Andiry Xuad935622011-03-01 14:57:05 +08004#ifdef CONFIG_PCI
Adrian Bunk75e2df62006-03-25 18:01:53 +01005void uhci_reset_hc(struct pci_dev *pdev, unsigned long base);
6int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base);
Andiry Xuad935622011-03-01 14:57:05 +08007int usb_amd_find_chipset_info(void);
8void usb_amd_dev_put(void);
9void usb_amd_quirk_pll_disable(void);
10void usb_amd_quirk_pll_enable(void);
Mathias Nyman26b76792013-07-23 11:35:47 +030011void usb_enable_intel_xhci_ports(struct pci_dev *xhci_pdev);
Sarah Sharpe95829f2012-07-23 18:59:30 +030012void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
Manjunath Goudar2621d012013-05-28 18:34:50 +053013void sb800_prefetch(struct device *dev, int on);
Andiry Xuad935622011-03-01 14:57:05 +080014#else
Randy Dunlapc4d949b2013-07-23 15:22:59 -070015struct pci_dev;
Andiry Xuad935622011-03-01 14:57:05 +080016static inline void usb_amd_quirk_pll_disable(void) {}
17static inline void usb_amd_quirk_pll_enable(void) {}
18static inline void usb_amd_dev_put(void) {}
Moiz Sonasath29636572012-09-05 08:34:26 +030019static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {}
Manjunath Goudar2621d012013-05-28 18:34:50 +053020static inline void sb800_prefetch(struct device *dev, int on) {}
Andiry Xuad935622011-03-01 14:57:05 +080021#endif /* CONFIG_PCI */
Adrian Bunk75e2df62006-03-25 18:01:53 +010022
23#endif /* __LINUX_USB_PCI_QUIRKS_H */