blob: 7174ac298ffd572a7e6efea7bc28536c1b94ba3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2023 VeriSilicon Holdings Co., Ltd.
*/
#ifndef __VS_PLANE_H__
#define __VS_PLANE_H__
#include <drm/drm_fourcc.h>
#include <drm/drm_plane_helper.h>
#include "vs_type.h"
struct vs_plane_state {
struct drm_plane_state base;
dma_addr_t dma_addr[DRM_FORMAT_MAX_PLANES];
};
struct vs_plane {
struct drm_plane base;
u8 id;
};
struct vs_plane *vs_plane_create(struct drm_device *drm_dev,
struct vs_plane_info *info,
unsigned int layer_num,
unsigned int possible_crtcs);
static inline struct vs_plane *to_vs_plane(struct drm_plane *plane)
{
return container_of(plane, struct vs_plane, base);
}
static inline struct vs_plane_state *
to_vs_plane_state(struct drm_plane_state *state)
{
return container_of(state, struct vs_plane_state, base);
}
#endif /* __VS_PLANE_H__ */
|