| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/info/amd/gpuinfopm.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "../igpuinfo.h"cxx . . $ `<file>/src/core/info/igpuinfo.h`/ |
| 7 | #include "core/idatasource.h"cxx . . $ `<file>/src/core/idatasource.h`/ |
| 8 | #include <filesystem> |
| 9 | #include <memory> |
| 10 | #include <string> |
| 11 | #include <string_view> |
| 12 | #include <vector> |
| 13 | |
| 14 | namespace AMDcxx . . $ AMD/ { |
| 15 | |
| 16 | /// AMD Power management GPU info |
| 17 | class GPUInfoPMcxx . . $ AMD/GPUInfoPM# final : public IGPUInfocxx . . $ IGPUInfo#::IProvidercxx . . $ IGPUInfo#IProvider# |
| 18 | { |
| 19 | public: |
| 20 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# Legacycxx . . $ std/basic_string_view#basic_string_view(837a1ee5a10cb792).{"pmlegacy"}; |
| 21 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# Radeoncxx . . $ AMD/GPUInfoPM#Radeon.{"pmradeon"}; |
| 22 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# Amdgpucxx . . $ AMD/GPUInfoPM#Amdgpu.{"pmamdgpu"}; |
| 23 | |
| 24 | GPUInfoPMcxx . . $ AMD/GPUInfoPM#GPUInfoPM(2cdb58935d5203ea).(stdcxx . . $ std/::vectorcxx . . $ std/vector#< |
| 25 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const>>> |
| 26 | &&dataSources) noexcept; |
| 27 | |
| 28 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> |
| 29 | provideInfocxx . . $ AMD/GPUInfoPM#provideInfo(5b65f7e996e13d80).(Vendorcxx . . $ Vendor# vendor, int gpuIndex, IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# const &path, |
| 30 | IHWIDTranslatorcxx . . $ IHWIDTranslator# const &hwIDTranslator) const override; |
| 31 | |
| 32 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> |
| 33 | provideCapabilitiescxx . . $ AMD/GPUInfoPM#provideCapabilities(da28437f5803dad2).(Vendorcxx . . $ Vendor# vendor, int gpuIndex, |
| 34 | IGPUInfocxx . . $ IGPUInfo#::Pathcxx . . $ IGPUInfo#Path# const &path) const override; |
| 35 | |
| 36 | private: |
| 37 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IDataSourcecxx . . $ IDataSource#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const>>> const |
| 38 | dataSources_cxx . . $ AMD/GPUInfoPM#dataSources_.; |
| 39 | static bool registered_cxx . . $ AMD/GPUInfoPM#registered_.; |
| 40 | }; |
| 41 | |
| 42 | } // namespace AMD |