xref: /linux/drivers/media/platform/renesas/vsp1/vsp1_iif.h (revision 746680ec6696585e30db3e18c93a63df9cbec39c)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * vsp1_iif.h  --  R-Car VSP1 IIF (ISP Interface)
4  *
5  * Copyright (C) 2025 Ideas On Board Oy
6  * Copyright (C) 2025 Renesas Corporation
7  */
8 #ifndef __VSP1_IIF_H__
9 #define __VSP1_IIF_H__
10 
11 #include <media/v4l2-subdev.h>
12 
13 #include "vsp1_entity.h"
14 
15 #define VSPX_IIF_SINK_PAD_IMG		0
16 #define VSPX_IIF_SINK_PAD_CONFIG	2
17 
18 struct vsp1_iif {
19 	struct vsp1_entity entity;
20 };
21 
22 static inline struct vsp1_iif *to_iif(struct v4l2_subdev *subdev)
23 {
24 	return container_of(subdev, struct vsp1_iif, entity.subdev);
25 }
26 
27 struct vsp1_iif *vsp1_iif_create(struct vsp1_device *vsp1);
28 
29 #endif /* __VSP1_IIF_H__ */
30