xref: /linux-6.15/include/linux/pci-bwctrl.h (revision d278b098)
1*d278b098SIlpo Järvinen /* SPDX-License-Identifier: GPL-2.0-only */
2*d278b098SIlpo Järvinen /*
3*d278b098SIlpo Järvinen  * PCIe bandwidth controller
4*d278b098SIlpo Järvinen  *
5*d278b098SIlpo Järvinen  * Copyright (C) 2023-2024 Intel Corporation
6*d278b098SIlpo Järvinen  */
7*d278b098SIlpo Järvinen 
8*d278b098SIlpo Järvinen #ifndef LINUX_PCI_BWCTRL_H
9*d278b098SIlpo Järvinen #define LINUX_PCI_BWCTRL_H
10*d278b098SIlpo Järvinen 
11*d278b098SIlpo Järvinen #include <linux/pci.h>
12*d278b098SIlpo Järvinen 
13*d278b098SIlpo Järvinen struct thermal_cooling_device;
14*d278b098SIlpo Järvinen 
15*d278b098SIlpo Järvinen #ifdef CONFIG_PCIE_THERMAL
16*d278b098SIlpo Järvinen struct thermal_cooling_device *pcie_cooling_device_register(struct pci_dev *port);
17*d278b098SIlpo Järvinen void pcie_cooling_device_unregister(struct thermal_cooling_device *cdev);
18*d278b098SIlpo Järvinen #else
pcie_cooling_device_register(struct pci_dev * port)19*d278b098SIlpo Järvinen static inline struct thermal_cooling_device *pcie_cooling_device_register(struct pci_dev *port)
20*d278b098SIlpo Järvinen {
21*d278b098SIlpo Järvinen 	return NULL;
22*d278b098SIlpo Järvinen }
pcie_cooling_device_unregister(struct thermal_cooling_device * cdev)23*d278b098SIlpo Järvinen static inline void pcie_cooling_device_unregister(struct thermal_cooling_device *cdev)
24*d278b098SIlpo Järvinen {
25*d278b098SIlpo Järvinen }
26*d278b098SIlpo Järvinen #endif
27*d278b098SIlpo Järvinen 
28*d278b098SIlpo Järvinen #endif
29