1 /* SPDX-License-Identifier: GPL-2.0+ */
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)
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"
23 #define CLU_PAD_SINK 0
24 #define CLU_PAD_SOURCE 1
27 struct vsp1_entity entity
;
29 struct v4l2_ctrl_handler ctrls
;
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__ */