• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_CSR_H__
7 #define __INTEL_CSR_H__
8 
9 struct drm_i915_private;
10 
11 #define CSR_VERSION(major, minor)	((major) << 16 | (minor))
12 #define CSR_VERSION_MAJOR(version)	((version) >> 16)
13 #define CSR_VERSION_MINOR(version)	((version) & 0xffff)
14 
15 void intel_csr_ucode_init(struct drm_i915_private *i915);
16 void intel_csr_load_program(struct drm_i915_private *i915);
17 void intel_csr_ucode_fini(struct drm_i915_private *i915);
18 void intel_csr_ucode_suspend(struct drm_i915_private *i915);
19 void intel_csr_ucode_resume(struct drm_i915_private *i915);
20 
21 #endif /* __INTEL_CSR_H__ */
22