1*41ec0267Sriastradh /* $NetBSD: intel_csr.h,v 1.2 2021/12/18 23:45:28 riastradh Exp $ */ 24e390cabSriastradh 34e390cabSriastradh /* SPDX-License-Identifier: MIT */ 44e390cabSriastradh /* 54e390cabSriastradh * Copyright © 2019 Intel Corporation 64e390cabSriastradh */ 74e390cabSriastradh 84e390cabSriastradh #ifndef __INTEL_CSR_H__ 94e390cabSriastradh #define __INTEL_CSR_H__ 104e390cabSriastradh 114e390cabSriastradh struct drm_i915_private; 124e390cabSriastradh 134e390cabSriastradh #define CSR_VERSION(major, minor) ((major) << 16 | (minor)) 144e390cabSriastradh #define CSR_VERSION_MAJOR(version) ((version) >> 16) 154e390cabSriastradh #define CSR_VERSION_MINOR(version) ((version) & 0xffff) 164e390cabSriastradh 174e390cabSriastradh void intel_csr_ucode_init(struct drm_i915_private *i915); 184e390cabSriastradh void intel_csr_load_program(struct drm_i915_private *i915); 194e390cabSriastradh void intel_csr_ucode_fini(struct drm_i915_private *i915); 204e390cabSriastradh void intel_csr_ucode_suspend(struct drm_i915_private *i915); 214e390cabSriastradh void intel_csr_ucode_resume(struct drm_i915_private *i915); 224e390cabSriastradh 234e390cabSriastradh #endif /* __INTEL_CSR_H__ */ 24