Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / platform / vsp1 / vsp1_brx.h
blob6abbb8c3343cbdb92ec84570d967792948835d2b
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * vsp1_brx.h -- R-Car VSP1 Blend ROP Unit (BRU and BRS)
5 * Copyright (C) 2013 Renesas Corporation
7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
8 */
9 #ifndef __VSP1_BRX_H__
10 #define __VSP1_BRX_H__
12 #include <media/media-entity.h>
13 #include <media/v4l2-ctrls.h>
14 #include <media/v4l2-subdev.h>
16 #include "vsp1_entity.h"
18 struct vsp1_device;
19 struct vsp1_rwpf;
21 #define BRX_PAD_SINK(n) (n)
23 struct vsp1_brx {
24 struct vsp1_entity entity;
25 unsigned int base;
27 struct v4l2_ctrl_handler ctrls;
29 struct {
30 struct vsp1_rwpf *rpf;
31 } inputs[VSP1_MAX_RPF];
33 u32 bgcolor;
36 static inline struct vsp1_brx *to_brx(struct v4l2_subdev *subdev)
38 return container_of(subdev, struct vsp1_brx, entity.subdev);
41 struct vsp1_brx *vsp1_brx_create(struct vsp1_device *vsp1,
42 enum vsp1_entity_type type);
44 #endif /* __VSP1_BRX_H__ */