#include <linux/device.h>
#include <linux/gfp.h>
#include <linux/sys_soc.h>
#include <media/media-entity.h>
#include <media/v4l2-subdev.h>
#include "vsp1.h"
#include "vsp1_dl.h"
#include "vsp1_entity.h"
#include "vsp1_uif.h"
#define UIF_MIN_SIZE …
#define UIF_MAX_SIZE …
static inline u32 vsp1_uif_read(struct vsp1_uif *uif, u32 reg)
{ … }
static inline void vsp1_uif_write(struct vsp1_uif *uif,
struct vsp1_dl_body *dlb, u32 reg, u32 data)
{ … }
u32 vsp1_uif_get_crc(struct vsp1_uif *uif)
{ … }
static const unsigned int uif_codes[] = …;
static int uif_enum_mbus_code(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_mbus_code_enum *code)
{ … }
static int uif_enum_frame_size(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_frame_size_enum *fse)
{ … }
static int uif_set_format(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_format *fmt)
{ … }
static int uif_get_selection(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_selection *sel)
{ … }
static int uif_set_selection(struct v4l2_subdev *subdev,
struct v4l2_subdev_state *sd_state,
struct v4l2_subdev_selection *sel)
{ … }
static const struct v4l2_subdev_pad_ops uif_pad_ops = …;
static const struct v4l2_subdev_ops uif_ops = …;
static void uif_configure_stream(struct vsp1_entity *entity,
struct v4l2_subdev_state *state,
struct vsp1_pipeline *pipe,
struct vsp1_dl_list *dl,
struct vsp1_dl_body *dlb)
{ … }
static const struct vsp1_entity_operations uif_entity_ops = …;
static const struct soc_device_attribute vsp1_r8a7796[] = …;
struct vsp1_uif *vsp1_uif_create(struct vsp1_device *vsp1, unsigned int index)
{ … }