omap_fbdev.h 747 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * omap_fbdev.h -- OMAP DRM FBDEV Compatibility
  4. *
  5. * Copyright (C) 2011 Texas Instruments
  6. * Author: Rob Clark <rob@ti.com>
  7. */
  8. #ifndef __OMAPDRM_FBDEV_H__
  9. #define __OMAPDRM_FBDEV_H__
  10. struct drm_device;
  11. struct drm_fb_helper;
  12. struct drm_fb_helper_surface_size;
  13. #ifdef CONFIG_DRM_FBDEV_EMULATION
  14. int omap_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
  15. struct drm_fb_helper_surface_size *sizes);
  16. #define OMAP_FBDEV_DRIVER_OPS \
  17. .fbdev_probe = omap_fbdev_driver_fbdev_probe
  18. void omap_fbdev_setup(struct drm_device *dev);
  19. #else
  20. #define OMAP_FBDEV_DRIVER_OPS \
  21. .fbdev_probe = NULL
  22. static inline void omap_fbdev_setup(struct drm_device *dev)
  23. {
  24. }
  25. #endif
  26. #endif /* __OMAPDRM_FBDEV_H__ */