| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2015 MediaTek Inc. |
|---|
| 3 | 4 | * Author: CK Hu <ck.hu@mediatek.com> |
|---|
| 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 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #ifndef _MTK_DRM_PLANE_H_ |
|---|
| .. | .. |
|---|
| 28 | 20 | unsigned int y; |
|---|
| 29 | 21 | unsigned int width; |
|---|
| 30 | 22 | unsigned int height; |
|---|
| 23 | + unsigned int rotation; |
|---|
| 31 | 24 | bool dirty; |
|---|
| 25 | + bool async_dirty; |
|---|
| 26 | + bool async_config; |
|---|
| 32 | 27 | }; |
|---|
| 33 | 28 | |
|---|
| 34 | 29 | struct mtk_plane_state { |
|---|
| .. | .. |
|---|
| 43 | 38 | } |
|---|
| 44 | 39 | |
|---|
| 45 | 40 | int mtk_plane_init(struct drm_device *dev, struct drm_plane *plane, |
|---|
| 46 | | - unsigned long possible_crtcs, enum drm_plane_type type); |
|---|
| 41 | + unsigned long possible_crtcs, enum drm_plane_type type, |
|---|
| 42 | + unsigned int supported_rotations); |
|---|
| 47 | 43 | |
|---|
| 48 | 44 | #endif |
|---|