| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | #ifndef TEGRA_PLANE_H |
|---|
| .. | .. |
|---|
| 42 | 39 | struct tegra_plane_state { |
|---|
| 43 | 40 | struct drm_plane_state base; |
|---|
| 44 | 41 | |
|---|
| 42 | + struct sg_table *sgt[3]; |
|---|
| 43 | + dma_addr_t iova[3]; |
|---|
| 44 | + |
|---|
| 45 | 45 | struct tegra_bo_tiling tiling; |
|---|
| 46 | 46 | u32 format; |
|---|
| 47 | 47 | u32 swap; |
|---|
| 48 | 48 | |
|---|
| 49 | | - bool bottom_up; |
|---|
| 49 | + bool reflect_x; |
|---|
| 50 | + bool reflect_y; |
|---|
| 50 | 51 | |
|---|
| 51 | 52 | /* used for legacy blending support only */ |
|---|
| 52 | 53 | struct tegra_plane_legacy_blending_state blending[2]; |
|---|
| .. | .. |
|---|
| 64 | 65 | |
|---|
| 65 | 66 | extern const struct drm_plane_funcs tegra_plane_funcs; |
|---|
| 66 | 67 | |
|---|
| 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 | + |
|---|
| 67 | 73 | int tegra_plane_state_add(struct tegra_plane *plane, |
|---|
| 68 | 74 | struct drm_plane_state *state); |
|---|
| 69 | 75 | |
|---|