2024-04-19 10:29:01 +02:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
|
|
|
|
#ifndef DRM_FBDEV_SHMEM_H
|
|
|
|
#define DRM_FBDEV_SHMEM_H
|
|
|
|
|
2024-09-24 09:12:47 +02:00
|
|
|
struct drm_fb_helper;
|
|
|
|
struct drm_fb_helper_surface_size;
|
2024-04-19 10:29:01 +02:00
|
|
|
|
|
|
|
#ifdef CONFIG_DRM_FBDEV_EMULATION
|
2024-09-24 09:12:47 +02:00
|
|
|
int drm_fbdev_shmem_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
|
|
|
|
struct drm_fb_helper_surface_size *sizes);
|
|
|
|
|
|
|
|
#define DRM_FBDEV_SHMEM_DRIVER_OPS \
|
|
|
|
.fbdev_probe = drm_fbdev_shmem_driver_fbdev_probe
|
2024-04-19 10:29:01 +02:00
|
|
|
#else
|
2024-09-24 09:12:47 +02:00
|
|
|
#define DRM_FBDEV_SHMEM_DRIVER_OPS \
|
|
|
|
.fbdev_probe = NULL
|
2024-04-19 10:29:01 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|