Merge drm-fixes into drm-next.
[deliverable/linux.git] / drivers / media / platform / vsp1 / vsp1_drm.h
1 /*
2 * vsp1_drm.h -- R-Car VSP1 DRM/KMS Interface
3 *
4 * Copyright (C) 2015 Renesas Electronics Corporation
5 *
6 * Contact: 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 __VSP1_DRM_H__
14 #define __VSP1_DRM_H__
15
16 #include "vsp1_pipe.h"
17
18 struct vsp1_dl;
19
20 /**
21 * vsp1_drm - State for the API exposed to the DRM driver
22 * @dl: display list for DRM pipeline operation
23 * @pipe: the VSP1 pipeline used for display
24 * @num_inputs: number of active pipeline inputs at the beginning of an update
25 * @update: the pipeline configuration has been updated
26 */
27 struct vsp1_drm {
28 struct vsp1_dl *dl;
29 struct vsp1_pipeline pipe;
30 unsigned int num_inputs;
31 bool update;
32 };
33
34 int vsp1_drm_init(struct vsp1_device *vsp1);
35 void vsp1_drm_cleanup(struct vsp1_device *vsp1);
36 int vsp1_drm_create_links(struct vsp1_device *vsp1);
37
38 int vsp1_du_init(struct device *dev);
39 int vsp1_du_setup_lif(struct device *dev, unsigned int width,
40 unsigned int height);
41 void vsp1_du_atomic_begin(struct device *dev);
42 int vsp1_du_atomic_update(struct device *dev, unsigned int rpf_index,
43 u32 pixelformat, unsigned int pitch,
44 dma_addr_t mem[2], const struct v4l2_rect *src,
45 const struct v4l2_rect *dst);
46 void vsp1_du_atomic_flush(struct device *dev);
47
48
49 #endif /* __VSP1_DRM_H__ */
This page took 0.043977 seconds and 5 git commands to generate.