Home | History | Annotate | Line # | Download | only in i915
      1  1.1  riastrad /*	$NetBSD: intel_csr.h,v 1.2 2021/12/18 23:45:28 riastradh Exp $	*/
      2  1.1  riastrad 
      3  1.1  riastrad /* SPDX-License-Identifier: MIT */
      4  1.1  riastrad /*
      5  1.1  riastrad  * Copyright  2019 Intel Corporation
      6  1.1  riastrad  */
      7  1.1  riastrad 
      8  1.1  riastrad #ifndef __INTEL_CSR_H__
      9  1.1  riastrad #define __INTEL_CSR_H__
     10  1.1  riastrad 
     11  1.1  riastrad struct drm_i915_private;
     12  1.1  riastrad 
     13  1.1  riastrad #define CSR_VERSION(major, minor)	((major) << 16 | (minor))
     14  1.1  riastrad #define CSR_VERSION_MAJOR(version)	((version) >> 16)
     15  1.1  riastrad #define CSR_VERSION_MINOR(version)	((version) & 0xffff)
     16  1.1  riastrad 
     17  1.1  riastrad void intel_csr_ucode_init(struct drm_i915_private *i915);
     18  1.1  riastrad void intel_csr_load_program(struct drm_i915_private *i915);
     19  1.1  riastrad void intel_csr_ucode_fini(struct drm_i915_private *i915);
     20  1.1  riastrad void intel_csr_ucode_suspend(struct drm_i915_private *i915);
     21  1.1  riastrad void intel_csr_ucode_resume(struct drm_i915_private *i915);
     22  1.1  riastrad 
     23  1.1  riastrad #endif /* __INTEL_CSR_H__ */
     24