diff options
Diffstat (limited to 'driver/gator_events_mali_common.h')
-rw-r--r-- | driver/gator_events_mali_common.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/driver/gator_events_mali_common.h b/driver/gator_events_mali_common.h index 41c2a3c..91d871b 100644 --- a/driver/gator_events_mali_common.h +++ b/driver/gator_events_mali_common.h | |||
@@ -18,10 +18,6 @@ | |||
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <asm/io.h> | 19 | #include <asm/io.h> |
20 | 20 | ||
21 | /* Device codes for each known GPU */ | ||
22 | #define MALI_4xx (0x0b07) | ||
23 | #define MALI_T6xx (0x0056) | ||
24 | |||
25 | /* Ensure that MALI_SUPPORT has been defined to something. */ | 21 | /* Ensure that MALI_SUPPORT has been defined to something. */ |
26 | #ifndef MALI_SUPPORT | 22 | #ifndef MALI_SUPPORT |
27 | #error MALI_SUPPORT not defined! | 23 | #error MALI_SUPPORT not defined! |
@@ -35,8 +31,12 @@ | |||
35 | * Runtime state information for a counter. | 31 | * Runtime state information for a counter. |
36 | */ | 32 | */ |
37 | typedef struct { | 33 | typedef struct { |
38 | unsigned long key; /* 'key' (a unique id set by gatord and returned by gator.ko) */ | 34 | // 'key' (a unique id set by gatord and returned by gator.ko) |
39 | unsigned long enabled; /* counter enable state */ | 35 | unsigned long key; |
36 | // counter enable state | ||
37 | unsigned long enabled; | ||
38 | // for activity counters, the number of cores, otherwise -1 | ||
39 | unsigned long cores; | ||
40 | } mali_counter; | 40 | } mali_counter; |
41 | 41 | ||
42 | /* | 42 | /* |
@@ -54,17 +54,9 @@ extern void _mali_profiling_control(unsigned int, unsigned int); | |||
54 | extern void _mali_profiling_get_counters(unsigned int *, unsigned int *, unsigned int *, unsigned int *); | 54 | extern void _mali_profiling_get_counters(unsigned int *, unsigned int *, unsigned int *, unsigned int *); |
55 | 55 | ||
56 | /** | 56 | /** |
57 | * Returns a name which identifies the GPU type (eg Mali-4xx, Mali-T6xx). | ||
58 | * | ||
59 | * @return The name as a constant string. | ||
60 | */ | ||
61 | extern const char *gator_mali_get_mali_name(void); | ||
62 | |||
63 | /** | ||
64 | * Creates a filesystem entry under /dev/gator relating to the specified event name and key, and | 57 | * Creates a filesystem entry under /dev/gator relating to the specified event name and key, and |
65 | * associate the key/enable values with this entry point. | 58 | * associate the key/enable values with this entry point. |
66 | * | 59 | * |
67 | * @param mali_name A name related to the type of GPU, obtained from a call to gator_mali_get_mali_name() | ||
68 | * @param event_name The name of the event. | 60 | * @param event_name The name of the event. |
69 | * @param sb Linux super block | 61 | * @param sb Linux super block |
70 | * @param root Directory under which the entry will be created. | 62 | * @param root Directory under which the entry will be created. |