blob: 4252c9738b849339e6c6948fae195b1b8c17182f [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
Marc Olberdingd0125c92025-10-08 14:37:19 -070017static constexpr gpuThresholdId gpuTLimitCriticalThresholdId{1};
18static constexpr gpuThresholdId gpuTLimitWarnringThresholdId{2};
19static constexpr gpuThresholdId gpuTLimitHardshutDownThresholdId{4};
Harshit Aghera5e7decc2025-05-07 16:20:16 +053020
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);