2018-04-22 21:33:20 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-07-10 21:03:46 +00:00
|
|
|
/*
|
2018-02-26 16:06:21 +00:00
|
|
|
* vsp1_brx.h -- R-Car VSP1 Blend ROP Unit (BRU and BRS)
|
2013-07-10 21:03:46 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Renesas Corporation
|
|
|
|
*
|
|
|
|
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
|
|
*/
|
2018-02-26 16:06:21 +00:00
|
|
|
#ifndef __VSP1_BRX_H__
|
|
|
|
#define __VSP1_BRX_H__
|
2013-07-10 21:03:46 +00:00
|
|
|
|
|
|
|
#include <media/media-entity.h>
|
2014-05-28 01:46:30 +00:00
|
|
|
#include <media/v4l2-ctrls.h>
|
2013-07-10 21:03:46 +00:00
|
|
|
#include <media/v4l2-subdev.h>
|
|
|
|
|
|
|
|
#include "vsp1_entity.h"
|
|
|
|
|
|
|
|
struct vsp1_device;
|
2014-05-27 23:35:36 +00:00
|
|
|
struct vsp1_rwpf;
|
2013-07-10 21:03:46 +00:00
|
|
|
|
2018-02-26 16:06:21 +00:00
|
|
|
#define BRX_PAD_SINK(n) (n)
|
2013-07-10 21:03:46 +00:00
|
|
|
|
2018-02-26 16:06:21 +00:00
|
|
|
struct vsp1_brx {
|
2013-07-10 21:03:46 +00:00
|
|
|
struct vsp1_entity entity;
|
2017-05-24 21:16:57 +00:00
|
|
|
unsigned int base;
|
2013-07-10 21:03:46 +00:00
|
|
|
|
2014-05-28 01:46:30 +00:00
|
|
|
struct v4l2_ctrl_handler ctrls;
|
|
|
|
|
2014-05-27 23:35:36 +00:00
|
|
|
struct {
|
|
|
|
struct vsp1_rwpf *rpf;
|
2015-08-03 12:46:26 +00:00
|
|
|
} inputs[VSP1_MAX_RPF];
|
2015-11-01 14:19:42 +00:00
|
|
|
|
|
|
|
u32 bgcolor;
|
2013-07-10 21:03:46 +00:00
|
|
|
};
|
|
|
|
|
2018-02-26 16:06:21 +00:00
|
|
|
static inline struct vsp1_brx *to_brx(struct v4l2_subdev *subdev)
|
2013-07-10 21:03:46 +00:00
|
|
|
{
|
2018-02-26 16:06:21 +00:00
|
|
|
return container_of(subdev, struct vsp1_brx, entity.subdev);
|
2013-07-10 21:03:46 +00:00
|
|
|
}
|
|
|
|
|
2018-02-26 16:06:21 +00:00
|
|
|
struct vsp1_brx *vsp1_brx_create(struct vsp1_device *vsp1,
|
2017-05-24 21:16:57 +00:00
|
|
|
enum vsp1_entity_type type);
|
2013-07-10 21:03:46 +00:00
|
|
|
|
2018-02-26 16:06:21 +00:00
|
|
|
#endif /* __VSP1_BRX_H__ */
|