summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_load_detect.h
blob: 9b69da1867a58f46ecc2074dacbbd6c6bd15937f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2023 Intel Corporation
 */

#ifndef __INTEL_LOAD_DETECT_H__
#define __INTEL_LOAD_DETECT_H__

struct drm_atomic_state;
struct drm_connector;
struct drm_modeset_acquire_ctx;

struct intel_load_detect_pipe {
	struct drm_atomic_state *restore_state;
};

int intel_load_detect_get_pipe(struct drm_connector *connector,
			       struct intel_load_detect_pipe *old,
			       struct drm_modeset_acquire_ctx *ctx);
void intel_load_detect_release_pipe(struct drm_connector *connector,
				    struct intel_load_detect_pipe *old,
				    struct drm_modeset_acquire_ctx *ctx);

#endif /* __INTEL_LOAD_DETECT_H__ */