pci-quirks.h 975 字节
Newer Older
1 2 3
#ifndef __LINUX_USB_PCI_QUIRKS_H
#define __LINUX_USB_PCI_QUIRKS_H

4
#ifdef CONFIG_PCI
5 6
void uhci_reset_hc(struct pci_dev *pdev, unsigned long base);
int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base);
7
int usb_amd_find_chipset_info(void);
8
bool usb_amd_hang_symptom_quirk(void);
9
bool usb_amd_prefetch_quirk(void);
10 11 12
void usb_amd_dev_put(void);
void usb_amd_quirk_pll_disable(void);
void usb_amd_quirk_pll_enable(void);
13
void usb_enable_intel_xhci_ports(struct pci_dev *xhci_pdev);
14
void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
15
void sb800_prefetch(struct device *dev, int on);
16
#else
17
struct pci_dev;
18 19 20
static inline void usb_amd_quirk_pll_disable(void) {}
static inline void usb_amd_quirk_pll_enable(void) {}
static inline void usb_amd_dev_put(void) {}
21
static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {}
22
static inline void sb800_prefetch(struct device *dev, int on) {}
23
#endif  /* CONFIG_PCI */
24 25

#endif  /*  __LINUX_USB_PCI_QUIRKS_H  */