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