shmob_drm_drv.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * shmob_drm.h -- SH Mobile DRM driver
  3. *
  4. * Copyright (C) 2012 Renesas Electronics Corporation
  5. *
  6. * Laurent Pinchart (laurent.pinchart@ideasonboard.com)
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #ifndef __SHMOB_DRM_DRV_H__
  14. #define __SHMOB_DRM_DRV_H__
  15. #include <linux/kernel.h>
  16. #include <linux/platform_data/shmob_drm.h>
  17. #include <linux/spinlock.h>
  18. #include "shmob_drm_crtc.h"
  19. struct clk;
  20. struct device;
  21. struct drm_device;
  22. struct sh_mobile_meram_info;
  23. struct shmob_drm_device {
  24. struct device *dev;
  25. const struct shmob_drm_platform_data *pdata;
  26. void __iomem *mmio;
  27. struct clk *clock;
  28. struct sh_mobile_meram_info *meram;
  29. u32 lddckr;
  30. u32 ldmt1r;
  31. spinlock_t irq_lock; /* Protects hardware LDINTR register */
  32. struct drm_device *ddev;
  33. struct shmob_drm_crtc crtc;
  34. struct shmob_drm_encoder encoder;
  35. struct shmob_drm_connector connector;
  36. };
  37. #endif /* __SHMOB_DRM_DRV_H__ */