| /* | 
 |  * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & | 
 |  * AFFILIATES. All rights reserved. | 
 |  * SPDX-License-Identifier: Apache-2.0 | 
 |  */ | 
 |  | 
 | #pragma once | 
 |  | 
 | #include "MctpRequester.hpp" | 
 |  | 
 | #include <boost/asio/io_context.hpp> | 
 | #include <boost/container/flat_map.hpp> | 
 | #include <sdbusplus/asio/connection.hpp> | 
 | #include <sdbusplus/asio/object_server.hpp> | 
 | #include <sdbusplus/message.hpp> | 
 |  | 
 | #include <cstdint> | 
 | #include <memory> | 
 | #include <string> | 
 |  | 
 | constexpr const char* sensorPathPrefix = "/xyz/openbmc_project/sensors/"; | 
 | constexpr const char* deviceType = "NvidiaMctpVdm"; | 
 |  | 
 | struct SensorConfigs | 
 | { | 
 |     std::string name; | 
 |     uint64_t pollRate{}; | 
 | }; | 
 |  | 
 | class GpuDevice; | 
 | class SmaDevice; | 
 |  | 
 | void createSensors( | 
 |     boost::asio::io_context& io, sdbusplus::asio::object_server& objectServer, | 
 |     boost::container::flat_map<std::string, std::shared_ptr<GpuDevice>>& | 
 |         gpuDevices, | 
 |     boost::container::flat_map<std::string, std::shared_ptr<SmaDevice>>& | 
 |         smaDevices, | 
 |     const std::shared_ptr<sdbusplus::asio::connection>& dbusConnection, | 
 |     mctp::MctpRequester& mctpRequester); | 
 |  | 
 | void interfaceRemoved( | 
 |     sdbusplus::message_t& message, | 
 |     boost::container::flat_map<std::string, std::shared_ptr<GpuDevice>>& | 
 |         gpuDevices, | 
 |     boost::container::flat_map<std::string, std::shared_ptr<SmaDevice>>& | 
 |         smaDevices); |