1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * PCIe bandwidth controller
5 * Copyright (C) 2023-2024 Intel Corporation
8 #ifndef LINUX_PCI_BWCTRL_H
9 #define LINUX_PCI_BWCTRL_H
11 #include <linux/pci.h>
13 struct thermal_cooling_device
;
15 #ifdef CONFIG_PCIE_THERMAL
16 struct thermal_cooling_device
*pcie_cooling_device_register(struct pci_dev
*port
);
17 void pcie_cooling_device_unregister(struct thermal_cooling_device
*cdev
);
19 static inline struct thermal_cooling_device
*pcie_cooling_device_register(struct pci_dev
*port
)
23 static inline void pcie_cooling_device_unregister(struct thermal_cooling_device
*cdev
)