#ifndef __ATOMISP_CSI2_H__
#define __ATOMISP_CSI2_H__
#include <linux/gpio/consumer.h>
#include <linux/property.h>
#include <media/v4l2-subdev.h>
#include <media/v4l2-ctrls.h>
#include "../../include/linux/atomisp.h"
#define CSI2_PAD_SINK …
#define CSI2_PAD_SOURCE …
#define CSI2_PADS_NUM …
#define CSI2_MAX_ACPI_GPIOS …
struct acpi_device;
struct v4l2_device;
struct atomisp_device;
struct atomisp_sub_device;
struct atomisp_csi2_acpi_gpio_map { … };
struct atomisp_csi2_acpi_gpio_parsing_data { … };
struct atomisp_mipi_csi2_device { … };
int atomisp_csi2_set_ffmt(struct v4l2_subdev *sd,
struct v4l2_subdev_state *sd_state,
unsigned int which, uint16_t pad,
struct v4l2_mbus_framefmt *ffmt);
int atomisp_mipi_csi2_init(struct atomisp_device *isp);
void atomisp_mipi_csi2_cleanup(struct atomisp_device *isp);
void atomisp_mipi_csi2_unregister_entities(
struct atomisp_mipi_csi2_device *csi2);
int atomisp_mipi_csi2_register_entities(struct atomisp_mipi_csi2_device *csi2,
struct v4l2_device *vdev);
int atomisp_csi2_bridge_init(struct atomisp_device *isp);
int atomisp_csi2_bridge_parse_firmware(struct atomisp_device *isp);
void atomisp_csi2_configure(struct atomisp_sub_device *asd);
#endif