exynos_drm_fbdev.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  3. *
  4. * Authors:
  5. * Inki Dae <inki.dae@samsung.com>
  6. * Joonyoung Shim <jy0922.shim@samsung.com>
  7. * Seung-Woo Kim <sw0312.kim@samsung.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. #ifndef _EXYNOS_DRM_FBDEV_H_
  15. #define _EXYNOS_DRM_FBDEV_H_
  16. #ifdef CONFIG_DRM_FBDEV_EMULATION
  17. int exynos_drm_fbdev_init(struct drm_device *dev);
  18. void exynos_drm_fbdev_fini(struct drm_device *dev);
  19. void exynos_drm_fbdev_restore_mode(struct drm_device *dev);
  20. void exynos_drm_output_poll_changed(struct drm_device *dev);
  21. void exynos_drm_fbdev_suspend(struct drm_device *drm);
  22. void exynos_drm_fbdev_resume(struct drm_device *drm);
  23. #else
  24. static inline int exynos_drm_fbdev_init(struct drm_device *dev)
  25. {
  26. return 0;
  27. }
  28. static inline void exynos_drm_fbdev_fini(struct drm_device *dev)
  29. {
  30. }
  31. static inline void exynos_drm_fbdev_restore_mode(struct drm_device *dev)
  32. {
  33. }
  34. #define exynos_drm_output_poll_changed (NULL)
  35. static inline void exynos_drm_fbdev_suspend(struct drm_device *drm)
  36. {
  37. }
  38. static inline void exynos_drm_fbdev_resume(struct drm_device *drm)
  39. {
  40. }
  41. #endif
  42. #endif