1 /* SPDX-License-Identifier: GPL-2.0 */
2
3 /* Copyright (c) 2022 Rockchip Electronics Co., Ltd. */
4
5 #ifndef _ASPM_EXT_H
6 #define _ASPM_EXT_H
7
8 #if IS_REACHABLE(CONFIG_PCIEASPM_EXT)
9 bool pcie_aspm_ext_is_rc_ep_l1ss_capable(struct pci_dev *child, struct pci_dev *parent);
10 void pcie_aspm_ext_l1ss_enable(struct pci_dev *child, struct pci_dev *parent, bool enable);
11 #else
pcie_aspm_ext_is_rc_ep_l1ss_capable(struct pci_dev * child,struct pci_dev * parent)12 static inline bool pcie_aspm_ext_is_rc_ep_l1ss_capable(struct pci_dev *child, struct pci_dev *parent) { return false; }
pcie_aspm_ext_l1ss_enable(struct pci_dev * child,struct pci_dev * parent,bool enable)13 static inline void pcie_aspm_ext_l1ss_enable(struct pci_dev *child, struct pci_dev *parent, bool enable) {}
14 #endif
15
16 #endif
17