Linux 4.19.133
[linux/fpc-iii.git] / drivers / media / platform / vsp1 / vsp1_clu.h
blobcef2f44481ba7e4bcbf0493512e6d141530d29d3
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * vsp1_clu.h -- R-Car VSP1 Cubic Look-Up Table
5 * Copyright (C) 2015 Renesas Corporation
7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 */
9 #ifndef __VSP1_CLU_H__
10 #define __VSP1_CLU_H__
12 #include <linux/spinlock.h>
14 #include <media/media-entity.h>
15 #include <media/v4l2-ctrls.h>
16 #include <media/v4l2-subdev.h>
18 #include "vsp1_entity.h"
20 struct vsp1_device;
21 struct vsp1_dl_body;
23 #define CLU_PAD_SINK 0
24 #define CLU_PAD_SOURCE 1
26 struct vsp1_clu {
27 struct vsp1_entity entity;
29 struct v4l2_ctrl_handler ctrls;
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;
38 static inline struct vsp1_clu *to_clu(struct v4l2_subdev *subdev)
40 return container_of(subdev, struct vsp1_clu, entity.subdev);
43 struct vsp1_clu *vsp1_clu_create(struct vsp1_device *vsp1);
45 #endif /* __VSP1_CLU_H__ */