1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2019 Intel Corporation
6 #ifndef __INTEL_OVERLAY_H__
7 #define __INTEL_OVERLAY_H__
11 struct drm_i915_error_state_buf
;
12 struct drm_i915_private
;
14 struct intel_overlay_error_state
;
16 void intel_overlay_setup(struct drm_i915_private
*dev_priv
);
17 void intel_overlay_cleanup(struct drm_i915_private
*dev_priv
);
18 int intel_overlay_switch_off(struct intel_overlay
*overlay
);
19 int intel_overlay_put_image_ioctl(struct drm_device
*dev
, void *data
,
20 struct drm_file
*file_priv
);
21 int intel_overlay_attrs_ioctl(struct drm_device
*dev
, void *data
,
22 struct drm_file
*file_priv
);
23 void intel_overlay_reset(struct drm_i915_private
*dev_priv
);
24 struct intel_overlay_error_state
*
25 intel_overlay_capture_error_state(struct drm_i915_private
*dev_priv
);
26 void intel_overlay_print_error_state(struct drm_i915_error_state_buf
*e
,
27 struct intel_overlay_error_state
*error
);
29 #endif /* __INTEL_OVERLAY_H__ */