File Index
Files and directories
Sign in
FILE

pci-bwctrl.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/pci-bwctrl.h C
 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
13struct thermal_cooling_device;
14
15#ifdef CONFIG_PCIE_THERMAL
16struct thermal_cooling_device *pcie_cooling_device_register(struct pci_dev *port);
17void pcie_cooling_device_unregister(struct thermal_cooling_device *cdev);
18#else
19static inline struct thermal_cooling_device *pcie_cooling_device_register(struct pci_dev *port)
20{
21	return NULL;
22}
23static inline void pcie_cooling_device_unregister(struct thermal_cooling_device *cdev)
24{
25}
26#endif
27
28#endif
~/ Read-only file preview.