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