linux/arch/x86/include/asm/amd-ibs.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * From PPR Vol 1 for AMD Family 19h Model 01h B1
 * 55898 Rev 0.35 - Feb 5, 2021
 */

#include <asm/msr-index.h>

/* IBS_OP_DATA2 DataSrc */
#define IBS_DATA_SRC_LOC_CACHE
#define IBS_DATA_SRC_DRAM
#define IBS_DATA_SRC_REM_CACHE
#define IBS_DATA_SRC_IO

/* IBS_OP_DATA2 DataSrc Extension */
#define IBS_DATA_SRC_EXT_LOC_CACHE
#define IBS_DATA_SRC_EXT_NEAR_CCX_CACHE
#define IBS_DATA_SRC_EXT_DRAM
#define IBS_DATA_SRC_EXT_FAR_CCX_CACHE
#define IBS_DATA_SRC_EXT_PMEM
#define IBS_DATA_SRC_EXT_IO
#define IBS_DATA_SRC_EXT_EXT_MEM
#define IBS_DATA_SRC_EXT_PEER_AGENT_MEM

/*
 * IBS Hardware MSRs
 */

/* MSR 0xc0011030: IBS Fetch Control */
ibs_fetch_ctl;

/* MSR 0xc0011033: IBS Execution Control */
ibs_op_ctl;

/* MSR 0xc0011035: IBS Op Data 1 */
ibs_op_data;

/* MSR 0xc0011036: IBS Op Data 2 */
ibs_op_data2;

/* MSR 0xc0011037: IBS Op Data 3 */
ibs_op_data3;

/* MSR 0xc001103c: IBS Fetch Control Extended */
ic_ibs_extd_ctl;

/*
 * IBS driver related
 */

struct perf_ibs_data {};