forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/drivers/gpu/drm/tegra/plane.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2017 NVIDIA CORPORATION. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef TEGRA_PLANE_H
....@@ -42,11 +39,15 @@
4239 struct tegra_plane_state {
4340 struct drm_plane_state base;
4441
42
+ struct sg_table *sgt[3];
43
+ dma_addr_t iova[3];
44
+
4545 struct tegra_bo_tiling tiling;
4646 u32 format;
4747 u32 swap;
4848
49
- bool bottom_up;
49
+ bool reflect_x;
50
+ bool reflect_y;
5051
5152 /* used for legacy blending support only */
5253 struct tegra_plane_legacy_blending_state blending[2];
....@@ -64,6 +65,11 @@
6465
6566 extern const struct drm_plane_funcs tegra_plane_funcs;
6667
68
+int tegra_plane_prepare_fb(struct drm_plane *plane,
69
+ struct drm_plane_state *state);
70
+void tegra_plane_cleanup_fb(struct drm_plane *plane,
71
+ struct drm_plane_state *state);
72
+
6773 int tegra_plane_state_add(struct tegra_plane *plane,
6874 struct drm_plane_state *state);
6975