xref: /openbsd-src/sys/dev/pci/drm/i915/display/intel_overlay.h (revision f005ef32267c16bdb134f0e9fa4477dbe07c263a)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __INTEL_OVERLAY_H__
7 #define __INTEL_OVERLAY_H__
8 
9 struct drm_device;
10 struct drm_file;
11 struct drm_i915_error_state_buf;
12 #define drm_i915_private inteldrm_softc
13 struct drm_i915_private;
14 struct intel_overlay;
15 struct intel_overlay_error_state;
16 
17 void intel_overlay_setup(struct drm_i915_private *dev_priv);
18 void intel_overlay_cleanup(struct drm_i915_private *dev_priv);
19 int intel_overlay_switch_off(struct intel_overlay *overlay);
20 int intel_overlay_put_image_ioctl(struct drm_device *dev, void *data,
21 				  struct drm_file *file_priv);
22 int intel_overlay_attrs_ioctl(struct drm_device *dev, void *data,
23 			      struct drm_file *file_priv);
24 void intel_overlay_reset(struct drm_i915_private *dev_priv);
25 struct intel_overlay_error_state *
26 intel_overlay_capture_error_state(struct drm_i915_private *dev_priv);
27 void intel_overlay_print_error_state(struct drm_i915_error_state_buf *e,
28 				     struct intel_overlay_error_state *error);
29 
30 #endif /* __INTEL_OVERLAY_H__ */
31