blob: 933611ddffd0d20412e5ba590a5f3332b259d047 [file] [log] [blame]
Shawn Guo0a886f52016-09-22 19:52:39 +08001/*
2 * Copyright 2016 Linaro Ltd.
3 * Copyright 2016 ZTE Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 */
10
11#ifndef __ZX_PLANE_H__
12#define __ZX_PLANE_H__
13
Shawn Guo98ae9862016-12-28 14:41:37 +080014struct zx_plane {
15 struct drm_plane plane;
16 struct device *dev;
Shawn Guo0a886f52016-09-22 19:52:39 +080017 void __iomem *layer;
18 void __iomem *csc;
19 void __iomem *hbsc;
20 void __iomem *rsz;
Shawn Guo7254b1f2016-12-29 08:03:03 +080021 const struct vou_layer_bits *bits;
Shawn Guo0a886f52016-09-22 19:52:39 +080022};
23
Shawn Guo98ae9862016-12-28 14:41:37 +080024#define to_zx_plane(plane) container_of(plane, struct zx_plane, plane)
25
26int zx_plane_init(struct drm_device *drm, struct zx_plane *zplane,
27 enum drm_plane_type type);
Shawn Guo0a886f52016-09-22 19:52:39 +080028void zx_plane_set_update(struct drm_plane *plane);
29
30#endif /* __ZX_PLANE_H__ */