1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6 #ifndef __INTEL_LOAD_DETECT_H__ 7 #define __INTEL_LOAD_DETECT_H__ 8 9 struct drm_atomic_state; 10 struct drm_connector; 11 struct drm_modeset_acquire_ctx; 12 13 struct intel_load_detect_pipe { 14 struct drm_atomic_state *restore_state; 15 }; 16 17 int intel_load_detect_get_pipe(struct drm_connector *connector, 18 struct intel_load_detect_pipe *old, 19 struct drm_modeset_acquire_ctx *ctx); 20 void intel_load_detect_release_pipe(struct drm_connector *connector, 21 struct intel_load_detect_pipe *old, 22 struct drm_modeset_acquire_ctx *ctx); 23 24 #endif /* __INTEL_LOAD_DETECT_H__ */ 25