mirror of
https://github.com/torvalds/linux.git
synced 2026-04-24 01:25:49 -04:00
i915 has this really nice, infrastructure where everything becomes complicated, GGTT needs eviction, etc.. Lets not do that, and make the dumbest possible interface instead. Try to retrieve the VMA from old_plane_state, or intel_fbdev if kernel fb. Link: https://patchwork.freedesktop.org/patch/msgid/20241206182032.196307-1-dev@lankhorst.se Signed-off-by: Maarten Lankhorst <dev@lankhorst.se> Reviewed-by: Animesh Manna <animesh.manna@intel.com> Tested-by: Jani Saarinen <jani.saarinen@intel.com>
44 lines
1010 B
C
44 lines
1010 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_FBDEV_H__
|
|
#define __INTEL_FBDEV_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_device;
|
|
struct drm_i915_private;
|
|
struct intel_fbdev;
|
|
struct intel_framebuffer;
|
|
|
|
#ifdef CONFIG_DRM_FBDEV_EMULATION
|
|
void intel_fbdev_setup(struct drm_i915_private *dev_priv);
|
|
void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
|
|
struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev);
|
|
struct i915_vma *intel_fbdev_vma_pointer(struct intel_fbdev *fbdev);
|
|
|
|
#else
|
|
static inline void intel_fbdev_setup(struct drm_i915_private *dev_priv)
|
|
{
|
|
}
|
|
|
|
static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
|
|
{
|
|
}
|
|
|
|
static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline struct i915_vma *intel_fbdev_vma_pointer(struct intel_fbdev *fbdev)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* __INTEL_FBDEV_H__ */
|