mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 09:02:21 -04:00
Consolidate the "should we allocate fbdev fb in stolen?"
check into a helper function. Makes it easier to change the
heuristics without having to change so many places.
v2: rebase related changes and consolidate all the prefer
stolen conditions into a single function (Vinod)
v3: avoid including intel_display_core.h (Jani)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Acked-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patch.msgid.link/20260220170908.201422-4-vinod.govindapillai@intel.com
25 lines
675 B
C
25 lines
675 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_FBDEV_FB_H__
|
|
#define __INTEL_FBDEV_FB_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_device;
|
|
struct drm_gem_object;
|
|
struct drm_mode_fb_cmd2;
|
|
struct fb_info;
|
|
struct i915_vma;
|
|
|
|
u32 intel_fbdev_fb_pitch_align(u32 stride);
|
|
struct drm_gem_object *intel_fbdev_fb_bo_create(struct drm_device *drm, int size);
|
|
void intel_fbdev_fb_bo_destroy(struct drm_gem_object *obj);
|
|
int intel_fbdev_fb_fill_info(struct drm_device *drm, struct fb_info *info,
|
|
struct drm_gem_object *obj, struct i915_vma *vma);
|
|
bool intel_fbdev_fb_prefer_stolen(struct drm_device *drm, unsigned int size);
|
|
|
|
#endif
|