WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / rockchip / rockchip_drm_fbdev.h
blob5fb7ac2371a84cdd457120db73091d0e8160ac36
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
4 * Author:Mark Yao <mark.yao@rock-chips.com>
5 */
7 #ifndef _ROCKCHIP_DRM_FBDEV_H
8 #define _ROCKCHIP_DRM_FBDEV_H
10 #ifdef CONFIG_DRM_FBDEV_EMULATION
11 int rockchip_drm_fbdev_init(struct drm_device *dev);
12 void rockchip_drm_fbdev_fini(struct drm_device *dev);
13 #else
14 static inline int rockchip_drm_fbdev_init(struct drm_device *dev)
16 return 0;
19 static inline void rockchip_drm_fbdev_fini(struct drm_device *dev)
22 #endif
24 #endif /* _ROCKCHIP_DRM_FBDEV_H */