1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * vsp1_uif.h -- R-Car VSP1 User Logic Interface
5 * Copyright (C) 2017-2018 Laurent Pinchart
10 #define __VSP1_UIF_H__
12 #include "vsp1_entity.h"
16 #define UIF_PAD_SINK 0
17 #define UIF_PAD_SOURCE 1
20 struct vsp1_entity entity;
24 static inline struct vsp1_uif *to_uif(struct v4l2_subdev *subdev)
26 return container_of(subdev, struct vsp1_uif, entity.subdev);
29 struct vsp1_uif *vsp1_uif_create(struct vsp1_device *vsp1, unsigned int index);
30 u32 vsp1_uif_get_crc(struct vsp1_uif *uif);
32 #endif /* __VSP1_UIF_H__ */