b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * Copyright 2016 Linaro Ltd. |
| 4 | * Copyright 2016 ZTE Corporation. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __ZX_PLANE_H__ |
| 8 | #define __ZX_PLANE_H__ |
| 9 | |
| 10 | struct zx_plane { |
| 11 | struct drm_plane plane; |
| 12 | struct device *dev; |
| 13 | void __iomem *layer; |
| 14 | void __iomem *csc; |
| 15 | void __iomem *hbsc; |
| 16 | void __iomem *rsz; |
| 17 | const struct vou_layer_bits *bits; |
| 18 | }; |
| 19 | |
| 20 | #define to_zx_plane(plane) container_of(plane, struct zx_plane, plane) |
| 21 | |
| 22 | int zx_plane_init(struct drm_device *drm, struct zx_plane *zplane, |
| 23 | enum drm_plane_type type); |
| 24 | void zx_plane_set_update(struct drm_plane *plane); |
| 25 | |
| 26 | #endif /* __ZX_PLANE_H__ */ |