]> Git Repo - J-linux.git/blob - drivers/media/platform/renesas/vsp1/vsp1_clu.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / drivers / media / platform / renesas / vsp1 / vsp1_clu.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * vsp1_clu.h  --  R-Car VSP1 Cubic Look-Up Table
4  *
5  * Copyright (C) 2015 Renesas Corporation
6  *
7  * Contact: Laurent Pinchart ([email protected])
8  */
9 #ifndef __VSP1_CLU_H__
10 #define __VSP1_CLU_H__
11
12 #include <linux/spinlock.h>
13
14 #include <media/media-entity.h>
15 #include <media/v4l2-ctrls.h>
16 #include <media/v4l2-subdev.h>
17
18 #include "vsp1_entity.h"
19
20 struct vsp1_device;
21 struct vsp1_dl_body;
22
23 #define CLU_PAD_SINK                            0
24 #define CLU_PAD_SOURCE                          1
25
26 struct vsp1_clu {
27         struct vsp1_entity entity;
28
29         struct v4l2_ctrl_handler ctrls;
30
31         bool yuv_mode;
32         spinlock_t lock;
33         unsigned int mode;
34         struct vsp1_dl_body *clu;
35         struct vsp1_dl_body_pool *pool;
36 };
37
38 static inline struct vsp1_clu *to_clu(struct v4l2_subdev *subdev)
39 {
40         return container_of(subdev, struct vsp1_clu, entity.subdev);
41 }
42
43 struct vsp1_clu *vsp1_clu_create(struct vsp1_device *vsp1);
44
45 #endif /* __VSP1_CLU_H__ */
This page took 0.028406 seconds and 4 git commands to generate.