Shawn Guo | 0a886f5 | 2016-09-22 19:52:39 +0800 | [diff] [blame] | 1 | /* |
| 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 Guo | 98ae986 | 2016-12-28 14:41:37 +0800 | [diff] [blame] | 14 | struct zx_plane { |
| 15 | struct drm_plane plane; |
| 16 | struct device *dev; |
Shawn Guo | 0a886f5 | 2016-09-22 19:52:39 +0800 | [diff] [blame] | 17 | void __iomem *layer; |
| 18 | void __iomem *csc; |
| 19 | void __iomem *hbsc; |
| 20 | void __iomem *rsz; |
Shawn Guo | 7254b1f | 2016-12-29 08:03:03 +0800 | [diff] [blame] | 21 | const struct vou_layer_bits *bits; |
Shawn Guo | 0a886f5 | 2016-09-22 19:52:39 +0800 | [diff] [blame] | 22 | }; |
| 23 | |
Shawn Guo | 98ae986 | 2016-12-28 14:41:37 +0800 | [diff] [blame] | 24 | #define to_zx_plane(plane) container_of(plane, struct zx_plane, plane) |
| 25 | |
| 26 | int zx_plane_init(struct drm_device *drm, struct zx_plane *zplane, |
| 27 | enum drm_plane_type type); |
Shawn Guo | 0a886f5 | 2016-09-22 19:52:39 +0800 | [diff] [blame] | 28 | void zx_plane_set_update(struct drm_plane *plane); |
| 29 | |
| 30 | #endif /* __ZX_PLANE_H__ */ |