18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef LINUX_POWERPC_PERF_HV_GPCI_H_
38c2ecf20Sopenharmony_ci#define LINUX_POWERPC_PERF_HV_GPCI_H_
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * counter info version => fw version/reference (spec version)
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * 8 => power8 (1.07)
98c2ecf20Sopenharmony_ci * [7 is skipped by spec 1.07]
108c2ecf20Sopenharmony_ci * 6 => TLBIE (1.07)
118c2ecf20Sopenharmony_ci * 5 => v7r7m0.phyp (1.05)
128c2ecf20Sopenharmony_ci * [4 skipped]
138c2ecf20Sopenharmony_ci * 3 => v7r6m0.phyp (?)
148c2ecf20Sopenharmony_ci * [1,2 skipped]
158c2ecf20Sopenharmony_ci * 0 => v7r{2,3,4}m0.phyp (?)
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#define COUNTER_INFO_VERSION_CURRENT 0x8
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/* capability mask masks. */
208c2ecf20Sopenharmony_cienum {
218c2ecf20Sopenharmony_ci	HV_GPCI_CM_GA = (1 << 7),
228c2ecf20Sopenharmony_ci	HV_GPCI_CM_EXPANDED = (1 << 6),
238c2ecf20Sopenharmony_ci	HV_GPCI_CM_LAB = (1 << 5)
248c2ecf20Sopenharmony_ci};
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define REQUEST_FILE "../hv-gpci-requests.h"
278c2ecf20Sopenharmony_ci#define NAME_LOWER hv_gpci
288c2ecf20Sopenharmony_ci#define NAME_UPPER HV_GPCI
298c2ecf20Sopenharmony_ci#define ENABLE_EVENTS_COUNTERINFO_V6
308c2ecf20Sopenharmony_ci#include "req-gen/perf.h"
318c2ecf20Sopenharmony_ci#undef REQUEST_FILE
328c2ecf20Sopenharmony_ci#undef NAME_LOWER
338c2ecf20Sopenharmony_ci#undef NAME_UPPER
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#endif
36