cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

pci-quirks.h (1366B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __LINUX_USB_PCI_QUIRKS_H
      3#define __LINUX_USB_PCI_QUIRKS_H
      4
      5#ifdef CONFIG_USB_PCI
      6void uhci_reset_hc(struct pci_dev *pdev, unsigned long base);
      7int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base);
      8int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev);
      9bool usb_amd_hang_symptom_quirk(void);
     10bool usb_amd_prefetch_quirk(void);
     11void usb_amd_dev_put(void);
     12bool usb_amd_quirk_pll_check(void);
     13void usb_amd_quirk_pll_disable(void);
     14void usb_amd_quirk_pll_enable(void);
     15void usb_asmedia_modifyflowcontrol(struct pci_dev *pdev);
     16void usb_enable_intel_xhci_ports(struct pci_dev *xhci_pdev);
     17void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
     18void sb800_prefetch(struct device *dev, int on);
     19bool usb_amd_pt_check_port(struct device *device, int port);
     20#else
     21struct pci_dev;
     22static inline void usb_amd_quirk_pll_disable(void) {}
     23static inline void usb_amd_quirk_pll_enable(void) {}
     24static inline void usb_asmedia_modifyflowcontrol(struct pci_dev *pdev) {}
     25static inline void usb_amd_dev_put(void) {}
     26static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {}
     27static inline void sb800_prefetch(struct device *dev, int on) {}
     28static inline bool usb_amd_pt_check_port(struct device *device, int port)
     29{
     30	return false;
     31}
     32#endif  /* CONFIG_USB_PCI */
     33
     34#endif  /*  __LINUX_USB_PCI_QUIRKS_H  */