diff options
author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-02-20 20:46:38 +0000 |
---|---|---|
committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2023-03-20 20:47:36 +0000 |
commit | af19988f6cd3918fd222003540769a38abb63174 (patch) | |
tree | 7ed757ed64c4491027d36fec8589ab775f10d382 | |
parent | 19a355436e03e52c674dddbfd8694a728961ea1a (diff) | |
download | src-af19988f6cd3918fd222003540769a38abb63174.tar.gz src-af19988f6cd3918fd222003540769a38abb63174.zip |
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
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index c9ebdf546696..2c222bf1cdbe 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -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) { |