]>
Commit | Line | Data |
---|---|---|
9c92ab61 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2048e328 MY |
2 | /* |
3 | * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd | |
4 | * Author:Mark Yao <mark.yao@rock-chips.com> | |
2048e328 MY |
5 | */ |
6 | ||
7 | #ifndef _ROCKCHIP_DRM_FBDEV_H | |
8 | #define _ROCKCHIP_DRM_FBDEV_H | |
9 | ||
f0442df2 | 10 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
2048e328 MY |
11 | int rockchip_drm_fbdev_init(struct drm_device *dev); |
12 | void rockchip_drm_fbdev_fini(struct drm_device *dev); | |
f0442df2 JK |
13 | #else |
14 | static inline int rockchip_drm_fbdev_init(struct drm_device *dev) | |
15 | { | |
16 | return 0; | |
17 | } | |
18 | ||
19 | static inline void rockchip_drm_fbdev_fini(struct drm_device *dev) | |
20 | { | |
21 | } | |
22 | #endif | |
2048e328 MY |
23 | |
24 | #endif /* _ROCKCHIP_DRM_FBDEV_H */ |