xref: /openbmc/linux/arch/powerpc/perf/hv-gpci.h (revision 2cf1c348)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_POWERPC_PERF_HV_GPCI_H_
3 #define LINUX_POWERPC_PERF_HV_GPCI_H_
4 
5 /*
6  * counter info version => fw version/reference (spec version)
7  *
8  * 8 => power8 (1.07)
9  * [7 is skipped by spec 1.07]
10  * 6 => TLBIE (1.07)
11  * 5 => v7r7m0.phyp (1.05)
12  * [4 skipped]
13  * 3 => v7r6m0.phyp (?)
14  * [1,2 skipped]
15  * 0 => v7r{2,3,4}m0.phyp (?)
16  */
17 #define COUNTER_INFO_VERSION_CURRENT 0x8
18 
19 /* capability mask masks. */
20 enum {
21 	HV_GPCI_CM_GA = (1 << 7),
22 	HV_GPCI_CM_EXPANDED = (1 << 6),
23 	HV_GPCI_CM_LAB = (1 << 5)
24 };
25 
26 #define REQUEST_FILE "../hv-gpci-requests.h"
27 #define NAME_LOWER hv_gpci
28 #define NAME_UPPER HV_GPCI
29 #include "req-gen/perf.h"
30 #undef REQUEST_FILE
31 #undef NAME_LOWER
32 #undef NAME_UPPER
33 
34 #endif
35