1
2
3
4
5
6
7
8
9
10#ifndef OP_IMPL_H
11#define OP_IMPL_H 1
12
13extern int (*perf_irq)(void);
14
15
16struct op_counter_config {
17 unsigned long enabled;
18 unsigned long event;
19 unsigned long count;
20
21 unsigned long kernel;
22 unsigned long user;
23 unsigned long exl;
24 unsigned long unit_mask;
25};
26
27
28struct op_mips_model {
29 void (*reg_setup) (struct op_counter_config *);
30 void (*cpu_setup) (void *dummy);
31 int (*init)(void);
32 void (*exit)(void);
33 void (*cpu_start)(void *args);
34 void (*cpu_stop)(void *args);
35 char *cpu_type;
36 unsigned char num_counters;
37};
38
39#endif
40