2 * shmob_drm.h -- SH Mobile DRM driver
4 * Copyright (C) 2012 Renesas Corporation
6 * Laurent Pinchart (laurent.pinchart@ideasonboard.com)
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.
14 #ifndef __SHMOB_DRM_DRV_H__
15 #define __SHMOB_DRM_DRV_H__
17 #include <linux/kernel.h>
18 #include <linux/platform_data/shmob_drm.h>
19 #include <linux/spinlock.h>
21 #include "shmob_drm_crtc.h"
26 struct sh_mobile_meram_info
;
28 struct shmob_drm_device
{
30 const struct shmob_drm_platform_data
*pdata
;
34 struct sh_mobile_meram_info
*meram
;
38 spinlock_t irq_lock
; /* Protects hardware LDINTR register */
40 struct drm_device
*ddev
;
42 struct shmob_drm_crtc crtc
;
43 struct shmob_drm_encoder encoder
;
44 struct shmob_drm_connector connector
;
47 #endif /* __SHMOB_DRM_DRV_H__ */