Line data Source code
1 0 : /*
2 : * Ethernet Platform Utilities for Intel Devices
3 : *
4 : * This module provides utility functions to interact with the PCIe features
5 : * of Intel Ethernet devices, facilitating the retrieval of device-specific
6 : * PCIe configuration details such as BDF (Bus/Device/Function) and device ID.
7 : *
8 : * Copyright (c) 2025 Intel Corporation.
9 : *
10 : * SPDX-License-Identifier: Apache-2.0
11 : */
12 :
13 : #ifndef ZEPHYR_INCLUDE_DRIVERS_ETH_INTEL_PLAT_H__
14 : #define ZEPHYR_INCLUDE_DRIVERS_ETH_INTEL_PLAT_H__
15 :
16 : #ifdef __cplusplus
17 : extern "C" {
18 : #endif
19 :
20 : /**
21 : * @brief Retrieve the PCIe Bus/Device/Function of the device.
22 : *
23 : * @param dev Pointer to the device structure.
24 : * @return PCIe BDF address as a uint32_t.
25 : */
26 1 : extern uint32_t eth_intel_get_pcie_bdf(const struct device *dev);
27 :
28 : #endif /* ZEPHYR_INCLUDE_DRIVERS_ETH_INTEL_PLAT_H__ */
|