Adrian Bunk | 75e2df6 | 2006-03-25 18:01:53 +0100 | [diff] [blame] | 1 | #ifndef __LINUX_USB_PCI_QUIRKS_H |
| 2 | #define __LINUX_USB_PCI_QUIRKS_H |
| 3 | |
Andiry Xu | ad93562 | 2011-03-01 14:57:05 +0800 | [diff] [blame] | 4 | #ifdef CONFIG_PCI |
Adrian Bunk | 75e2df6 | 2006-03-25 18:01:53 +0100 | [diff] [blame] | 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); |
Andiry Xu | ad93562 | 2011-03-01 14:57:05 +0800 | [diff] [blame] | 7 | int usb_amd_find_chipset_info(void); |
Konrad Zapalowicz | 342a749 | 2014-05-27 23:09:14 +0200 | [diff] [blame] | 8 | int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev); |
Huang Rui | 3ad145b | 2013-10-03 23:37:12 +0800 | [diff] [blame] | 9 | bool usb_amd_hang_symptom_quirk(void); |
Huang Rui | 02c123e | 2013-10-03 23:37:13 +0800 | [diff] [blame] | 10 | bool usb_amd_prefetch_quirk(void); |
Andiry Xu | ad93562 | 2011-03-01 14:57:05 +0800 | [diff] [blame] | 11 | void usb_amd_dev_put(void); |
| 12 | void usb_amd_quirk_pll_disable(void); |
| 13 | void usb_amd_quirk_pll_enable(void); |
Mathias Nyman | 26b7679 | 2013-07-23 11:35:47 +0300 | [diff] [blame] | 14 | void usb_enable_intel_xhci_ports(struct pci_dev *xhci_pdev); |
Sarah Sharp | e95829f | 2012-07-23 18:59:30 +0300 | [diff] [blame] | 15 | void usb_disable_xhci_ports(struct pci_dev *xhci_pdev); |
Manjunath Goudar | 2621d01 | 2013-05-28 18:34:50 +0530 | [diff] [blame] | 16 | void sb800_prefetch(struct device *dev, int on); |
Andiry Xu | ad93562 | 2011-03-01 14:57:05 +0800 | [diff] [blame] | 17 | #else |
Randy Dunlap | c4d949b | 2013-07-23 15:22:59 -0700 | [diff] [blame] | 18 | struct pci_dev; |
Andiry Xu | ad93562 | 2011-03-01 14:57:05 +0800 | [diff] [blame] | 19 | static inline void usb_amd_quirk_pll_disable(void) {} |
| 20 | static inline void usb_amd_quirk_pll_enable(void) {} |
| 21 | static inline void usb_amd_dev_put(void) {} |
Moiz Sonasath | 2963657 | 2012-09-05 08:34:26 +0300 | [diff] [blame] | 22 | static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {} |
Manjunath Goudar | 2621d01 | 2013-05-28 18:34:50 +0530 | [diff] [blame] | 23 | static inline void sb800_prefetch(struct device *dev, int on) {} |
Andiry Xu | ad93562 | 2011-03-01 14:57:05 +0800 | [diff] [blame] | 24 | #endif /* CONFIG_PCI */ |
Adrian Bunk | 75e2df6 | 2006-03-25 18:01:53 +0100 | [diff] [blame] | 25 | |
| 26 | #endif /* __LINUX_USB_PCI_QUIRKS_H */ |