rockchip_drm_fbdev.h 967 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef _ROCKCHIP_DRM_FBDEV_H
  15. #define _ROCKCHIP_DRM_FBDEV_H
  16. #ifdef CONFIG_DRM_FBDEV_EMULATION
  17. int rockchip_drm_fbdev_init(struct drm_device *dev);
  18. void rockchip_drm_fbdev_fini(struct drm_device *dev);
  19. #else
  20. static inline int rockchip_drm_fbdev_init(struct drm_device *dev)
  21. {
  22. return 0;
  23. }
  24. static inline void rockchip_drm_fbdev_fini(struct drm_device *dev)
  25. {
  26. }
  27. #endif
  28. #endif /* _ROCKCHIP_DRM_FBDEV_H */