| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2023 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "../igpuinfo.h" |
| 7 | #include <string> |
| 8 | #include <string_view> |
| 9 | |
| 10 | namespace AMD { |
| 11 | |
| 12 | /// AMD GPU overdrive fan control info |
| 13 | class GPUInfoOdFanCtrl final : public IGPUInfo::IProvider |
| 14 | { |
| 15 | public: |
| 16 | static constexpr std::string_view ID{"odfanctrl"}; |
| 17 | |
| 18 | GPUInfoOdFanCtrl() noexcept; |
| 19 | |
| 20 | std::vector<std::pair<std::string, std::string>> |
| 21 | provideInfo(Vendor vendor, int gpuIndex, IGPUInfo::Path const &path, |
| 22 | IHWIDTranslator const &hwIDTranslator) const override; |
| 23 | |
| 24 | std::vector<std::string> |
| 25 | provideCapabilities(Vendor vendor, int gpuIndex, |
| 26 | IGPUInfo::Path const &path) const override; |
| 27 | |
| 28 | private: |
| 29 | static bool registered_; |
| 30 | }; |
| 31 | |
| 32 | } // namespace AMD |