• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_device;
9 struct drm_fb_helper;
10 struct drm_fb_helper_surface_size;
11 
12 #ifdef CONFIG_DRM_FBDEV_EMULATION
13 int drm_fbdev_ttm_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
14 				     struct drm_fb_helper_surface_size *sizes);
15 
16 #define DRM_FBDEV_TTM_DRIVER_OPS \
17 	.fbdev_probe = drm_fbdev_ttm_driver_fbdev_probe
18 
19 void drm_fbdev_ttm_setup(struct drm_device *dev, unsigned int preferred_bpp);
20 #else
21 #define DRM_FBDEV_TTM_DRIVER_OPS \
22 	.fbdev_probe = NULL
23 
drm_fbdev_ttm_setup(struct drm_device * dev,unsigned int preferred_bpp)24 static inline void drm_fbdev_ttm_setup(struct drm_device *dev, unsigned int preferred_bpp)
25 { }
26 #endif
27 
28 #endif
29