Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
shmob_drm_crtc.h
Go to the documentation of this file.
1 /*
2  * shmob_drm_crtc.h -- SH Mobile DRM CRTCs
3  *
4  * Copyright (C) 2012 Renesas Corporation
5  *
6  * Laurent Pinchart ([email protected])
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 
14 #ifndef __SHMOB_DRM_CRTC_H__
15 #define __SHMOB_DRM_CRTC_H__
16 
17 #include <drm/drmP.h>
18 #include <drm/drm_crtc.h>
19 
20 struct backlight_device;
21 struct shmob_drm_device;
22 
24  struct drm_crtc crtc;
25 
26  struct drm_pending_vblank_event *event;
27  int dpms;
28 
30  void *cache;
31  unsigned long dma[2];
32  unsigned int line_size;
33  bool started;
34 };
35 
38  int dpms;
39 };
40 
44 
46 };
47 
48 int shmob_drm_crtc_create(struct shmob_drm_device *sdev);
51  struct drm_file *file);
53 void shmob_drm_crtc_suspend(struct shmob_drm_crtc *scrtc);
54 void shmob_drm_crtc_resume(struct shmob_drm_crtc *scrtc);
55 
58  struct drm_encoder *encoder);
59 
60 #endif /* __SHMOB_DRM_CRTC_H__ */