1 /* 2 * Copyright (c) 2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 8 #ifndef ZEPHYR_INCLUDE_DRIVERS_PCIE_PTM_H_ 9 #define ZEPHYR_INCLUDE_DRIVERS_PCIE_PTM_H_ 10 11 /** 12 * @brief PCIe Host PTM Interface 13 * @defgroup pcie_host_ptm_interface PCIe Host PTM Interface 14 * @ingroup pcie_host_interface 15 * @{ 16 */ 17 18 #include <stddef.h> 19 #include <zephyr/types.h> 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 /** 26 * @brief Enable PTM on endpoint 27 * 28 * @param bdf the PCI(e) endpoint 29 * @return true if that was successful, false otherwise 30 */ 31 bool pcie_ptm_enable(pcie_bdf_t bdf); 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 /** 38 * @} 39 */ 40 41 #endif /* ZEPHYR_INCLUDE_DRIVERS_PCIE_PTM_H_ */ 42