• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
  • tdehw
tdecpudevice.h
1 /* This file is part of the TDE libraries
2  Copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
3  (C) 2013 Golubev Alexander <fatzer2@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef _TDECPUDEVICE_H
21 #define _TDECPUDEVICE_H
22 
23 #include "tdegenericdevice.h"
24 
25 class TDECORE_EXPORT TDECPUDevice : public TDEGenericDevice
26 {
27  public:
32  TDECPUDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
33 
37  ~TDECPUDevice();
38 
42  double frequency();
43 
47  double minFrequency();
48 
52  double maxFrequency();
53 
57  double transitionLatency();
58 
62  TQString governor();
63 
67  TQString scalingDriver();
68 
72  TQStringList dependentProcessors();
73 
77  TQStringList availableFrequencies();
78 
82  TQStringList availableGovernors();
83 
87  bool canSetGovernor();
88 
92  void setGovernor(TQString gv);
93 
97  bool canSetMaximumScalingFrequency();
98 
102  void setMaximumScalingFrequency(double fr);
103 
107  int coreNumber();
108 
109  protected:
114  void internalSetFrequency(double fr);
115 
120  void internalSetMinFrequency(double fr);
121 
126  void internalSetMaxFrequency(double fr);
127 
132  void internalSetTransitionLatency(double tl);
133 
138  void internalSetGovernor(TQString gr);
139 
144  void internalSetScalingDriver(TQString dr);
145 
150  void internalSetDependentProcessors(TQStringList dp);
151 
156  void internalSetAvailableFrequencies(TQStringList af);
157 
162  void internalSetAvailableGovernors(TQStringList gp);
163 
168  void internalSetCoreNumber(int cn);
169 
170  private:
171  double m_frequency;
172  double m_minfrequency;
173  double m_maxfrequency;
174  double m_transitionlatency;
175  TQString m_governor;
176  TQString m_scalingdriver;
177  TQStringList m_tiedprocs;
178  TQStringList m_frequencies;
179  TQStringList m_governers;
180  int m_corenumber;
181 
182  friend class TDEHardwareDevices;
183 };
184 
185 
186 #endif // _TDECPUDEVICE_H

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.