/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* Cell Broadband Engine Performance Monitor3*4* (C) Copyright IBM Corporation 20065*6* Author:7* David Erb ([email protected])8* Kevin Corry ([email protected])9*/1011#ifndef __ASM_CELL_PMU_H__12#define __ASM_CELL_PMU_H__1314/* The Cell PMU has four hardware performance counters, which can be15* configured as four 32-bit counters or eight 16-bit counters.16*/17#define NR_PHYS_CTRS 418#define NR_CTRS (NR_PHYS_CTRS * 2)1920/* Macros for the pm_control register. */21#define CBE_PM_16BIT_CTR(ctr) (1 << (24 - ((ctr) & (NR_PHYS_CTRS - 1))))2223/* Macros for the trace_address register. */24#define CBE_PM_TRACE_BUF_EMPTY 0x000004002526enum pm_reg_name {27group_control,28debug_bus_control,29trace_address,30ext_tr_timer,31pm_status,32pm_control,33pm_interval,34pm_start_stop,35};3637#endif /* __ASM_CELL_PMU_H__ */383940