| Harshit Aghera | 5e7decc | 2025-05-07 16:20:16 +0530 | [diff] [blame] | 1 | /* | 
|  | 2 | * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & | 
|  | 3 | * AFFILIATES. All rights reserved. | 
|  | 4 | * SPDX-License-Identifier: Apache-2.0 | 
|  | 5 | */ | 
|  | 6 |  | 
|  | 7 | #pragma once | 
|  | 8 |  | 
|  | 9 | #include "MctpRequester.hpp" | 
|  | 10 |  | 
|  | 11 | #include <cstdint> | 
|  | 12 | #include <functional> | 
|  | 13 | #include <vector> | 
|  | 14 |  | 
|  | 15 | using gpuThresholdId = uint8_t; | 
|  | 16 |  | 
|  | 17 | constexpr gpuThresholdId gpuTLimitCriticalThresholdId{1}; | 
|  | 18 | constexpr gpuThresholdId gpuTLimitWarnringThresholdId{2}; | 
|  | 19 | constexpr gpuThresholdId gpuTLimitHardshutDownThresholdId{4}; | 
|  | 20 |  | 
|  | 21 | void readThermalParameters( | 
|  | 22 | uint8_t eid, const std::vector<gpuThresholdId>& ids, | 
|  | 23 | mctp::MctpRequester& mctpRequester, | 
|  | 24 | const std::function<void(uint8_t, std::vector<int32_t>)>& callback); |