0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __SHMOB_DRM_DRV_H__
0011 #define __SHMOB_DRM_DRV_H__
0012
0013 #include <linux/kernel.h>
0014 #include <linux/platform_data/shmob_drm.h>
0015 #include <linux/spinlock.h>
0016
0017 #include "shmob_drm_crtc.h"
0018
0019 struct clk;
0020 struct device;
0021 struct drm_device;
0022
0023 struct shmob_drm_device {
0024 struct device *dev;
0025 const struct shmob_drm_platform_data *pdata;
0026
0027 void __iomem *mmio;
0028 struct clk *clock;
0029 u32 lddckr;
0030 u32 ldmt1r;
0031
0032 unsigned int irq;
0033 spinlock_t irq_lock;
0034
0035 struct drm_device *ddev;
0036
0037 struct shmob_drm_crtc crtc;
0038 struct shmob_drm_encoder encoder;
0039 struct shmob_drm_connector connector;
0040 };
0041
0042 #endif