1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ 2 /* 3 * Rockchip ISP1 Driver - CSI-2 Receiver 4 * 5 * Copyright (C) 2019 Collabora, Ltd. 6 * Copyright (C) 2022 Ideas on Board 7 * 8 * Based on Rockchip ISP1 driver by Rockchip Electronics Co., Ltd. 9 * Copyright (C) 2017 Rockchip Electronics Co., Ltd. 10 */ 11 #ifndef _RKISP1_CSI_H 12 #define _RKISP1_CSI_H 13 14 struct rkisp1_csi; 15 struct rkisp1_device; 16 struct rkisp1_sensor_async; 17 18 int rkisp1_csi_init(struct rkisp1_device *rkisp1); 19 void rkisp1_csi_cleanup(struct rkisp1_device *rkisp1); 20 21 int rkisp1_csi_register(struct rkisp1_device *rkisp1); 22 void rkisp1_csi_unregister(struct rkisp1_device *rkisp1); 23 24 int rkisp1_csi_link_sensor(struct rkisp1_device *rkisp1, struct v4l2_subdev *sd, 25 struct rkisp1_sensor_async *s_asd, 26 unsigned int source_pad); 27 28 #endif /* _RKISP1_CSI_H */ 29