linuxkpi: Define pcie_aspm_enabled()

This is not the same as querying the PCIE ASPM capability. The function
should return if the feature is actually enabled or not. It always
return false on FreeBSD.

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D39053
This commit is contained in:
Jean-Sébastien Pédron 2023-02-20 21:46:38 +01:00
parent 19a355436e
commit af19988f6c
No known key found for this signature in database
GPG key ID: 39E99761A5FD94CC

View file

@ -1370,6 +1370,12 @@ pcie_bandwidth_available(struct pci_dev *pdev,
return (nwidth * PCIE_SPEED2MBS_ENC(nspeed));
}
static inline bool
pcie_aspm_enabled(struct pci_dev *pdev)
{
return (false);
}
static inline struct pci_dev *
pcie_find_root_port(struct pci_dev *pdev)
{