// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #pragma once #include "../igpuinfo.h" #include "core/idatasource.h" #include #include #include #include #include namespace AMD { /// AMD power management overdrive GPU info class GPUInfoPMOverdrive final : public IGPUInfo::IProvider { public: static constexpr std::string_view ClkVolt{"pmodclkvolt"}; static constexpr std::string_view Clk{"pmodclk"}; static constexpr std::string_view ClkOffset{"pmodclkoffset"}; static constexpr std::string_view VoltCurve{"pmodvoltcurve"}; static constexpr std::string_view VoltOffset{"pmodvoltoffset"}; GPUInfoPMOverdrive( std::unique_ptr, std::filesystem::path const>> &&dataSource) noexcept; std::vector> provideInfo(Vendor vendor, int gpuIndex, IGPUInfo::Path const &path, IHWIDTranslator const &hwIDTranslator) const override; std::vector provideCapabilities(Vendor vendor, int gpuIndex, IGPUInfo::Path const &path) const override; private: std::unique_ptr, std::filesystem::path const>> const dataSource_; static bool registered_; }; } // namespace AMD