xref: /linux/include/drm/drm_fbdev_ttm.h (revision 79d2e1919a2728ef49d938eb20ebd5903c14dfb0)
1 /* SPDX-License-Identifier: MIT */
2 
3 #ifndef DRM_FBDEV_TTM_H
4 #define DRM_FBDEV_TTM_H
5 
6 #include <linux/stddef.h>
7 
8 struct drm_fb_helper;
9 struct drm_fb_helper_surface_size;
10 
11 #ifdef CONFIG_DRM_FBDEV_EMULATION
12 int drm_fbdev_ttm_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
13 				     struct drm_fb_helper_surface_size *sizes);
14 
15 #define DRM_FBDEV_TTM_DRIVER_OPS \
16 	.fbdev_probe = drm_fbdev_ttm_driver_fbdev_probe
17 #else
18 #define DRM_FBDEV_TTM_DRIVER_OPS \
19 	.fbdev_probe = NULL
20 #endif
21 
22 #endif
23