Linux Audio

Check our new training course

Loading...
v4.6
 
 1/*
 2 * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
 3 * Author:Mark Yao <mark.yao@rock-chips.com>
 4 *
 5 * This software is licensed under the terms of the GNU General Public
 6 * License version 2, as published by the Free Software Foundation, and
 7 * may be copied, distributed, and modified under those terms.
 8 *
 9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef _ROCKCHIP_DRM_FBDEV_H
16#define _ROCKCHIP_DRM_FBDEV_H
17
18#ifdef CONFIG_DRM_FBDEV_EMULATION
19int rockchip_drm_fbdev_init(struct drm_device *dev);
20void rockchip_drm_fbdev_fini(struct drm_device *dev);
21#else
22static inline int rockchip_drm_fbdev_init(struct drm_device *dev)
23{
24	return 0;
25}
26
27static inline void rockchip_drm_fbdev_fini(struct drm_device *dev)
28{
29}
30#endif
31
32#endif /* _ROCKCHIP_DRM_FBDEV_H */
v5.4
 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 */
 6
 7#ifndef _ROCKCHIP_DRM_FBDEV_H
 8#define _ROCKCHIP_DRM_FBDEV_H
 9
10#ifdef CONFIG_DRM_FBDEV_EMULATION
11int rockchip_drm_fbdev_init(struct drm_device *dev);
12void rockchip_drm_fbdev_fini(struct drm_device *dev);
13#else
14static inline int rockchip_drm_fbdev_init(struct drm_device *dev)
15{
16	return 0;
17}
18
19static inline void rockchip_drm_fbdev_fini(struct drm_device *dev)
20{
21}
22#endif
23
24#endif /* _ROCKCHIP_DRM_FBDEV_H */