Merge tag 'arm-fixes-6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-block.git] / arch / powerpc / perf / hv-gpci.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
a67f1447
CS
2#ifndef LINUX_POWERPC_PERF_HV_GPCI_H_
3#define LINUX_POWERPC_PERF_HV_GPCI_H_
4
a67f1447
CS
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
9e9f6010
CS
19/* capability mask masks. */
20enum {
21 HV_GPCI_CM_GA = (1 << 7),
22 HV_GPCI_CM_EXPANDED = (1 << 6),
23 HV_GPCI_CM_LAB = (1 << 5)
a67f1447
CS
24};
25
9e9f6010
CS
26#define REQUEST_FILE "../hv-gpci-requests.h"
27#define NAME_LOWER hv_gpci
28#define NAME_UPPER HV_GPCI
03f7c1d2 29#define ENABLE_EVENTS_COUNTERINFO_V6
9e9f6010
CS
30#include "req-gen/perf.h"
31#undef REQUEST_FILE
32#undef NAME_LOWER
33#undef NAME_UPPER
a67f1447
CS
34
35#endif