Debian Codegraph @

src/core/components/controls/amd/pm/fixed/pmfixedr600.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include "core/idatasource.h"
7 #include "pmfixed.h"
8 #include <memory>
9 #include <string>
10 #include <string_view>
11 #include <vector>
12
13 namespace AMD {
14
15 class PMFixedR600 : public AMD::PMFixed
16 {
17 struct PerfLevel
18 {
19 static constexpr std::string_view low{"low"};
20 static constexpr std::string_view high{"high"};
21 static constexpr std::string_view clean{"auto"};
22 };
23
24 public:
25 PMFixedR600(
26 std::unique_ptr<IDataSource<std::string>> &&perfLevelDataSource) noexcept;
27
28 protected:
29 void cleanControl(ICommandQueue &ctlCmds) final override;
30 void syncControl(ICommandQueue &ctlCmds) final override;
31
32 std::vector<std::string> const &modes() const final override;
33
34 private:
35 std::unique_ptr<IDataSource<std::string>> const perfLevelDataSource_;
36 std::string perfLevelEntry_;
37
38 static std::vector<std::string> const modes_;
39 };
40
41 } // namespace AMD