xref: /linux/arch/x86/events/amd/iommu.h (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
1d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
25b26547dSBorislav Petkov /*
35b26547dSBorislav Petkov  * Copyright (C) 2013 Advanced Micro Devices, Inc.
45b26547dSBorislav Petkov  *
55b26547dSBorislav Petkov  * Author: Steven Kinney <Steven.Kinney@amd.com>
65b26547dSBorislav Petkov  * Author: Suravee Suthikulpanit <Suraveee.Suthikulpanit@amd.com>
75b26547dSBorislav Petkov  */
85b26547dSBorislav Petkov 
95b26547dSBorislav Petkov #ifndef _PERF_EVENT_AMD_IOMMU_H_
105b26547dSBorislav Petkov #define _PERF_EVENT_AMD_IOMMU_H_
115b26547dSBorislav Petkov 
125b26547dSBorislav Petkov /* iommu pc mmio region register indexes */
135b26547dSBorislav Petkov #define IOMMU_PC_COUNTER_REG			0x00
145b26547dSBorislav Petkov #define IOMMU_PC_COUNTER_SRC_REG		0x08
155b26547dSBorislav Petkov #define IOMMU_PC_PASID_MATCH_REG		0x10
165b26547dSBorislav Petkov #define IOMMU_PC_DOMID_MATCH_REG		0x18
175b26547dSBorislav Petkov #define IOMMU_PC_DEVID_MATCH_REG		0x20
185b26547dSBorislav Petkov #define IOMMU_PC_COUNTER_REPORT_REG		0x28
195b26547dSBorislav Petkov 
20*d9f6e12fSIngo Molnar /* maximum specified bank/counters */
215b26547dSBorislav Petkov #define PC_MAX_SPEC_BNKS			64
225b26547dSBorislav Petkov #define PC_MAX_SPEC_CNTRS			16
235b26547dSBorislav Petkov 
245b26547dSBorislav Petkov #endif /*_PERF_EVENT_AMD_IOMMU_H_*/
25