// 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 GPU info class GPUInfoPM final : public IGPUInfo::IProvider { public: static constexpr std::string_view Legacy{"pmlegacy"}; static constexpr std::string_view Radeon{"pmradeon"}; static constexpr std::string_view Amdgpu{"pmamdgpu"}; GPUInfoPM(std::vector< std::shared_ptr>> &&dataSources) 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::vector>> const dataSources_; static bool registered_; }; } // namespace AMD