xref: /linux/include/drm/drm_fbdev_shmem.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1*150f431aSThomas Zimmermann /* SPDX-License-Identifier: MIT */
2*150f431aSThomas Zimmermann 
3*150f431aSThomas Zimmermann #ifndef DRM_FBDEV_SHMEM_H
4*150f431aSThomas Zimmermann #define DRM_FBDEV_SHMEM_H
5*150f431aSThomas Zimmermann 
6*150f431aSThomas Zimmermann struct drm_device;
7*150f431aSThomas Zimmermann 
8*150f431aSThomas Zimmermann #ifdef CONFIG_DRM_FBDEV_EMULATION
9*150f431aSThomas Zimmermann void drm_fbdev_shmem_setup(struct drm_device *dev, unsigned int preferred_bpp);
10*150f431aSThomas Zimmermann #else
drm_fbdev_shmem_setup(struct drm_device * dev,unsigned int preferred_bpp)11*150f431aSThomas Zimmermann static inline void drm_fbdev_shmem_setup(struct drm_device *dev, unsigned int preferred_bpp)
12*150f431aSThomas Zimmermann { }
13*150f431aSThomas Zimmermann #endif
14*150f431aSThomas Zimmermann 
15*150f431aSThomas Zimmermann #endif
16