blob: 9d1970f2f910816ee52f6ebd93e191d09e6bd5c0 [file] [log] [blame]
Harshit Aghera5e7decc2025-05-07 16:20:16 +05301/*
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
15using gpuThresholdId = uint8_t;
16
17constexpr gpuThresholdId gpuTLimitCriticalThresholdId{1};
18constexpr gpuThresholdId gpuTLimitWarnringThresholdId{2};
19constexpr gpuThresholdId gpuTLimitHardshutDownThresholdId{4};
20
21void 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);