1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2022 Intel Corporation 4 */ 5 6 #ifndef __INTEL_GT_MCR__ 7 #define __INTEL_GT_MCR__ 8 9 #include "intel_gt_types.h" 10 11 void intel_gt_mcr_init(struct intel_gt *gt); 12 13 u32 intel_gt_mcr_read(struct intel_gt *gt, 14 i915_reg_t reg, 15 int group, int instance); 16 u32 intel_gt_mcr_read_any_fw(struct intel_gt *gt, i915_reg_t reg); 17 u32 intel_gt_mcr_read_any(struct intel_gt *gt, i915_reg_t reg); 18 19 void intel_gt_mcr_unicast_write(struct intel_gt *gt, 20 i915_reg_t reg, u32 value, 21 int group, int instance); 22 void intel_gt_mcr_multicast_write(struct intel_gt *gt, 23 i915_reg_t reg, u32 value); 24 void intel_gt_mcr_multicast_write_fw(struct intel_gt *gt, 25 i915_reg_t reg, u32 value); 26 27 void intel_gt_mcr_get_nonterminated_steering(struct intel_gt *gt, 28 i915_reg_t reg, 29 u8 *group, u8 *instance); 30 31 void intel_gt_mcr_report_steering(struct drm_printer *p, struct intel_gt *gt, 32 bool dump_table); 33 34 #endif /* __INTEL_GT_MCR__ */ 35