2019-04-05 14:00:16 +03:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_FBDEV_H__
|
|
|
|
#define __INTEL_FBDEV_H__
|
|
|
|
|
2025-03-15 20:01:43 +08:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2024-12-12 18:08:51 +01:00
|
|
|
struct drm_fb_helper;
|
|
|
|
struct drm_fb_helper_surface_size;
|
2025-04-09 21:17:42 +03:00
|
|
|
struct intel_display;
|
2022-02-15 14:29:56 +02:00
|
|
|
struct intel_fbdev;
|
|
|
|
struct intel_framebuffer;
|
2025-06-24 11:01:11 +02:00
|
|
|
struct iosys_map;
|
2019-04-05 14:00:16 +03:00
|
|
|
|
|
|
|
#ifdef CONFIG_DRM_FBDEV_EMULATION
|
2024-12-12 18:08:51 +01:00
|
|
|
int intel_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
|
|
|
|
struct drm_fb_helper_surface_size *sizes);
|
|
|
|
#define INTEL_FBDEV_DRIVER_OPS \
|
|
|
|
.fbdev_probe = intel_fbdev_driver_fbdev_probe
|
2025-04-09 21:17:42 +03:00
|
|
|
void intel_fbdev_setup(struct intel_display *display);
|
2022-02-15 14:29:56 +02:00
|
|
|
struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev);
|
2024-12-06 19:20:32 +01:00
|
|
|
struct i915_vma *intel_fbdev_vma_pointer(struct intel_fbdev *fbdev);
|
2025-06-24 11:01:11 +02:00
|
|
|
void intel_fbdev_get_map(struct intel_fbdev *fbdev, struct iosys_map *map);
|
2019-04-05 14:00:16 +03:00
|
|
|
#else
|
2024-12-12 18:08:51 +01:00
|
|
|
#define INTEL_FBDEV_DRIVER_OPS \
|
|
|
|
.fbdev_probe = NULL
|
2025-04-09 21:17:42 +03:00
|
|
|
static inline void intel_fbdev_setup(struct intel_display *display)
|
2019-04-05 14:00:16 +03:00
|
|
|
{
|
|
|
|
}
|
2022-02-15 14:29:56 +02:00
|
|
|
static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2024-12-06 19:20:32 +01:00
|
|
|
|
|
|
|
static inline struct i915_vma *intel_fbdev_vma_pointer(struct intel_fbdev *fbdev)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2025-06-24 11:01:11 +02:00
|
|
|
static inline void intel_fbdev_get_map(struct intel_fbdev *fbdev, struct iosys_map *map)
|
|
|
|
{
|
|
|
|
}
|
2019-04-05 14:00:16 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __INTEL_FBDEV_H__ */
|