1
2 #ifndef LINUX_POWERPC_PERF_HV_GPCI_H_
3 #define LINUX_POWERPC_PERF_HV_GPCI_H_
4
5 #include <linux/types.h>
6
7
8
9
10 struct hv_get_perf_counter_info_params {
11 __be32 counter_request;
12 __be32 starting_index;
13 __be16 secondary_index;
14 __be16 returned_values;
15 __be32 detail_rc;
16
17
18
19
20
21 __be16 cv_element_size;
22
23
24 __u8 counter_info_version_in;
25
26
27 __u8 counter_info_version_out;
28 __u8 reserved[0xC];
29 __u8 counter_value[];
30 } __packed;
31
32
33
34
35
36
37
38
39
40
41
42
43
44 #define COUNTER_INFO_VERSION_CURRENT 0x8
45
46
47 enum {
48 HV_GPCI_CM_GA = (1 << 7),
49 HV_GPCI_CM_EXPANDED = (1 << 6),
50 HV_GPCI_CM_LAB = (1 << 5)
51 };
52
53 #define REQUEST_FILE "../hv-gpci-requests.h"
54 #define NAME_LOWER hv_gpci
55 #define NAME_UPPER HV_GPCI
56 #include "req-gen/perf.h"
57 #undef REQUEST_FILE
58 #undef NAME_LOWER
59 #undef NAME_UPPER
60
61 #endif