#include <linux/delay.h>
#include <linux/pci.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-event.h>
#include "atomisp_cmd.h"
#include "atomisp_common.h"
#include "atomisp_fops.h"
#include "atomisp_internal.h"
#include "atomisp_ioctl.h"
#include "atomisp-regs.h"
#include "atomisp_compat.h"
#include "sh_css_hrt.h"
#include "gp_device.h"
#include "device_access.h"
#include "irq.h"
static const char *DRIVER = …;
static const char *CARD = …;
static struct v4l2_queryctrl ci_v4l2_controls[] = …;
static const u32 ctrls_num = …;
const struct atomisp_format_bridge atomisp_output_fmts[] = …;
const struct atomisp_format_bridge *
atomisp_get_format_bridge(unsigned int pixelformat)
{ … }
const struct atomisp_format_bridge *
atomisp_get_format_bridge_from_mbus(u32 mbus_code)
{ … }
int atomisp_pipe_check(struct atomisp_video_pipe *pipe, bool settings_change)
{ … }
static int atomisp_querycap(struct file *file, void *fh,
struct v4l2_capability *cap)
{ … }
static int atomisp_enum_input(struct file *file, void *fh,
struct v4l2_input *input)
{ … }
static int atomisp_g_input(struct file *file, void *fh, unsigned int *input)
{ … }
static int atomisp_s_fmt_cap(struct file *file, void *fh,
struct v4l2_format *f)
{ … }
static int atomisp_s_input(struct file *file, void *fh, unsigned int input)
{ … }
static int atomisp_enum_framesizes_crop_inner(struct atomisp_device *isp,
struct v4l2_frmsizeenum *fsize,
const struct v4l2_rect *active,
const struct v4l2_rect *native,
int *valid_sizes)
{ … }
static int atomisp_enum_framesizes_crop(struct atomisp_device *isp,
struct v4l2_frmsizeenum *fsize)
{ … }
static int atomisp_enum_framesizes(struct file *file, void *priv,
struct v4l2_frmsizeenum *fsize)
{ … }
static int atomisp_enum_frameintervals(struct file *file, void *priv,
struct v4l2_frmivalenum *fival)
{ … }
static int atomisp_enum_fmt_cap(struct file *file, void *fh,
struct v4l2_fmtdesc *f)
{ … }
static int atomisp_try_fmt_cap(struct file *file, void *fh,
struct v4l2_format *f)
{ … }
static int atomisp_g_fmt_cap(struct file *file, void *fh,
struct v4l2_format *f)
{ … }
int atomisp_alloc_css_stat_bufs(struct atomisp_sub_device *asd,
uint16_t stream_id)
{ … }
static int atomisp_qbuf_wrapper(struct file *file, void *fh, struct v4l2_buffer *buf)
{ … }
static int atomisp_dqbuf_wrapper(struct file *file, void *fh, struct v4l2_buffer *buf)
{ … }
static void atomisp_dma_burst_len_cfg(struct atomisp_sub_device *asd)
{ … }
int atomisp_start_streaming(struct vb2_queue *vq, unsigned int count)
{ … }
void atomisp_stop_streaming(struct vb2_queue *vq)
{ … }
static int atomisp_g_ctrl(struct file *file, void *fh,
struct v4l2_control *control)
{ … }
static int atomisp_s_ctrl(struct file *file, void *fh,
struct v4l2_control *control)
{ … }
static int atomisp_queryctl(struct file *file, void *fh,
struct v4l2_queryctrl *qc)
{ … }
static int atomisp_camera_g_ext_ctrls(struct file *file, void *fh,
struct v4l2_ext_controls *c)
{ … }
static int atomisp_g_ext_ctrls(struct file *file, void *fh,
struct v4l2_ext_controls *c)
{ … }
static int atomisp_camera_s_ext_ctrls(struct file *file, void *fh,
struct v4l2_ext_controls *c)
{ … }
static int atomisp_s_ext_ctrls(struct file *file, void *fh,
struct v4l2_ext_controls *c)
{ … }
static int atomisp_g_parm(struct file *file, void *fh,
struct v4l2_streamparm *parm)
{ … }
static int atomisp_s_parm(struct file *file, void *fh,
struct v4l2_streamparm *parm)
{ … }
static long atomisp_vidioc_default(struct file *file, void *fh,
bool valid_prio, unsigned int cmd, void *arg)
{ … }
const struct v4l2_ioctl_ops atomisp_ioctl_ops = …;