mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
Convert the direct i915_overlay_*() calls from the display
side to go over a new parent interface instead.
v2: Correctly handle the ERR_PTR returned by
i915_overlay_obj_lookup() (Jani)
v3: Rebase due to the NULL check in intel_overlay_cleanup()
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260226130150.16816-1-ville.syrjala@linux.intel.com
28 lines
804 B
C
28 lines
804 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_OVERLAY_H__
|
|
#define __INTEL_OVERLAY_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_device;
|
|
struct drm_file;
|
|
struct drm_printer;
|
|
struct intel_display;
|
|
struct intel_overlay;
|
|
|
|
void intel_overlay_setup(struct intel_display *display);
|
|
bool intel_overlay_available(struct intel_display *display);
|
|
void intel_overlay_cleanup(struct intel_display *display);
|
|
int intel_overlay_switch_off(struct intel_overlay *overlay);
|
|
int intel_overlay_put_image_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
int intel_overlay_attrs_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
void intel_overlay_reset(struct intel_display *display);
|
|
|
|
#endif /* __INTEL_OVERLAY_H__ */
|