1 /* $NetBSD: intel_overlay.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $ */ 2 3 /* SPDX-License-Identifier: MIT */ 4 /* 5 * Copyright © 2019 Intel Corporation 6 */ 7 8 #ifndef __INTEL_OVERLAY_H__ 9 #define __INTEL_OVERLAY_H__ 10 11 struct drm_device; 12 struct drm_file; 13 struct drm_i915_error_state_buf; 14 struct drm_i915_private; 15 struct intel_overlay; 16 struct intel_overlay_error_state; 17 18 void intel_overlay_setup(struct drm_i915_private *dev_priv); 19 void intel_overlay_cleanup(struct drm_i915_private *dev_priv); 20 int intel_overlay_switch_off(struct intel_overlay *overlay); 21 int intel_overlay_put_image_ioctl(struct drm_device *dev, void *data, 22 struct drm_file *file_priv); 23 int intel_overlay_attrs_ioctl(struct drm_device *dev, void *data, 24 struct drm_file *file_priv); 25 void intel_overlay_reset(struct drm_i915_private *dev_priv); 26 struct intel_overlay_error_state * 27 intel_overlay_capture_error_state(struct drm_i915_private *dev_priv); 28 void intel_overlay_print_error_state(struct drm_i915_error_state_buf *e, 29 struct intel_overlay_error_state *error); 30 31 #endif /* __INTEL_OVERLAY_H__ */ 32