diff options
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 21 | 
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index adffd65e84b4..fafd8020c6d7 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -572,12 +572,14 @@ struct pci_host_bridge {  	void		*release_data;  	unsigned int	ignore_reset_delay:1;	/* For entire hierarchy */  	unsigned int	no_ext_tags:1;		/* No Extended Tags */ +	unsigned int	no_inc_mrrs:1;		/* No Increase MRRS */  	unsigned int	native_aer:1;		/* OS may use PCIe AER */  	unsigned int	native_pcie_hotplug:1;	/* OS may use PCIe hotplug */  	unsigned int	native_shpc_hotplug:1;	/* OS may use SHPC hotplug */  	unsigned int	native_pme:1;		/* OS may use PCIe PME */  	unsigned int	native_ltr:1;		/* OS may use PCIe LTR */  	unsigned int	native_dpc:1;		/* OS may use PCIe DPC */ +	unsigned int	native_cxl_error:1;	/* OS may use CXL RAS/Events */  	unsigned int	preserve_config:1;	/* Preserve FW resource setup */  	unsigned int	size_windows:1;		/* Enable root bus sizing */  	unsigned int	msi_domain:1;		/* Bridge wants MSI domain */ @@ -1621,6 +1623,18 @@ pci_alloc_irq_vectors(struct pci_dev *dev, unsigned int min_vecs,  					      flags, NULL);  } +static inline struct msi_map pci_msix_alloc_irq_at(struct pci_dev *dev, unsigned int index, +						   const struct irq_affinity_desc *affdesc) +{ +	struct msi_map map = { .index = -ENOSYS, }; + +	return map; +} + +static inline void pci_msix_free_irq(struct pci_dev *pdev, struct msi_map map) +{ +} +  static inline void pci_free_irq_vectors(struct pci_dev *dev)  {  } @@ -1685,10 +1699,15 @@ extern bool pcie_ports_native;  #define PCIE_LINK_STATE_L1_2		BIT(4)  #define PCIE_LINK_STATE_L1_1_PCIPM	BIT(5)  #define PCIE_LINK_STATE_L1_2_PCIPM	BIT(6) +#define PCIE_LINK_STATE_ALL		(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |\ +					 PCIE_LINK_STATE_CLKPM | PCIE_LINK_STATE_L1_1 |\ +					 PCIE_LINK_STATE_L1_2 | PCIE_LINK_STATE_L1_1_PCIPM |\ +					 PCIE_LINK_STATE_L1_2_PCIPM)  #ifdef CONFIG_PCIEASPM  int pci_disable_link_state(struct pci_dev *pdev, int state);  int pci_disable_link_state_locked(struct pci_dev *pdev, int state); +int pci_enable_link_state(struct pci_dev *pdev, int state);  void pcie_no_aspm(void);  bool pcie_aspm_support_enabled(void);  bool pcie_aspm_enabled(struct pci_dev *pdev); @@ -1697,6 +1716,8 @@ static inline int pci_disable_link_state(struct pci_dev *pdev, int state)  { return 0; }  static inline int pci_disable_link_state_locked(struct pci_dev *pdev, int state)  { return 0; } +static inline int pci_enable_link_state(struct pci_dev *pdev, int state) +{ return 0; }  static inline void pcie_no_aspm(void) { }  static inline bool pcie_aspm_support_enabled(void) { return false; }  static inline bool pcie_aspm_enabled(struct pci_dev *pdev) { return false; }  | 
