summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/MaliVideoDriver.h')
-rw-r--r--daemon/MaliVideoDriver.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/daemon/MaliVideoDriver.h b/daemon/MaliVideoDriver.h
new file mode 100644
index 0000000..00cb808
--- /dev/null
+++ b/daemon/MaliVideoDriver.h
@@ -0,0 +1,50 @@
1/**
2 * Copyright (C) ARM Limited 2014. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#ifndef MALIVIDEODRIVER_H
10#define MALIVIDEODRIVER_H
11
12#include "Driver.h"
13
14class MaliVideoCounter;
15
16enum MaliVideoCounterType {
17 MVCT_COUNTER,
18 MVCT_EVENT,
19 MVCT_ACTIVITY,
20};
21
22class MaliVideoDriver : public Driver {
23public:
24 MaliVideoDriver();
25 ~MaliVideoDriver();
26
27 void setup(mxml_node_t *const xml);
28
29 bool claimCounter(const Counter &counter) const;
30 bool countersEnabled() const;
31 void resetCounters();
32 void setupCounter(Counter &counter);
33
34 int writeCounters(mxml_node_t *root) const;
35
36 bool start(const int mveUds);
37
38private:
39 MaliVideoCounter *findCounter(const Counter &counter) const;
40 void marshalEnable(const MaliVideoCounterType type, char *const buf, const size_t bufsize, int &pos);
41
42 MaliVideoCounter *mCounters;
43 int mActivityCount;
44
45 // Intentionally unimplemented
46 MaliVideoDriver(const MaliVideoDriver &);
47 MaliVideoDriver &operator=(const MaliVideoDriver &);
48};
49
50#endif // MALIVIDEODRIVER_H