iommu.h 703 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2013 Advanced Micro Devices, Inc.
  4. *
  5. * Author: Steven Kinney <[email protected]>
  6. * Author: Suravee Suthikulpanit <[email protected]>
  7. */
  8. #ifndef _PERF_EVENT_AMD_IOMMU_H_
  9. #define _PERF_EVENT_AMD_IOMMU_H_
  10. /* iommu pc mmio region register indexes */
  11. #define IOMMU_PC_COUNTER_REG 0x00
  12. #define IOMMU_PC_COUNTER_SRC_REG 0x08
  13. #define IOMMU_PC_PASID_MATCH_REG 0x10
  14. #define IOMMU_PC_DOMID_MATCH_REG 0x18
  15. #define IOMMU_PC_DEVID_MATCH_REG 0x20
  16. #define IOMMU_PC_COUNTER_REPORT_REG 0x28
  17. /* maximum specified bank/counters */
  18. #define PC_MAX_SPEC_BNKS 64
  19. #define PC_MAX_SPEC_CNTRS 16
  20. #endif /*_PERF_EVENT_AMD_IOMMU_H_*/