| 1 |
/* SPDX-License-Identifier: MIT */ |
| 2 |
|
| 3 |
#ifndef DRM_FBDEV_SHMEM_H |
| 4 |
#define DRM_FBDEV_SHMEM_H |
| 5 |
|
| 6 |
struct drm_fb_helper; |
| 7 |
struct drm_fb_helper_surface_size; |
| 8 |
|
| 9 |
#ifdef CONFIG_DRM_FBDEV_EMULATION |
| 10 |
int drm_fbdev_shmem_driver_fbdev_probe(struct drm_fb_helper *fb_helper, |
| 11 |
struct drm_fb_helper_surface_size *sizes); |
| 12 |
|
| 13 |
#define DRM_FBDEV_SHMEM_DRIVER_OPS \ |
| 14 |
.fbdev_probe = drm_fbdev_shmem_driver_fbdev_probe |
| 15 |
#else |
| 16 |
#define DRM_FBDEV_SHMEM_DRIVER_OPS \ |
| 17 |
.fbdev_probe = NULL |
| 18 |
#endif |
| 19 |
|
| 20 |
#endif |