mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 07:51:31 -04:00
As the first step towards using shared definitions for step name enumerations, add shared include/drm/intel/step.h and switch i915 to use it. Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Link: https://patch.msgid.link/e76412a316ddff44dc46633d80e9caa5df54ed6b.1773663208.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
28 lines
588 B
C
28 lines
588 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2020,2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_STEP_H__
|
|
#define __INTEL_STEP_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <drm/intel/step.h>
|
|
|
|
struct drm_i915_private;
|
|
|
|
struct intel_step_info {
|
|
/*
|
|
* It is expected to have 4 number steps per letter. Deviation from
|
|
* the expectation breaks gmd_to_intel_step().
|
|
*/
|
|
u8 graphics_step; /* Represents the compute tile on Xe_HPC */
|
|
u8 media_step;
|
|
};
|
|
|
|
void intel_step_init(struct drm_i915_private *i915);
|
|
const char *intel_step_name(enum intel_step step);
|
|
|
|
#endif /* __INTEL_STEP_H__ */
|