linux/drivers/staging/media/starfive/camss/stf-capture.c

// SPDX-License-Identifier: GPL-2.0
/*
 * stf_capture.c
 *
 * StarFive Camera Subsystem - capture device
 *
 * Copyright (C) 2021-2023 StarFive Technology Co., Ltd.
 */

#include "stf-camss.h"

static const char * const stf_cap_names[] =;

static const struct stfcamss_format_info stf_wr_fmts[] =;

static const struct stfcamss_format_info stf_isp_fmts[] =;

static inline struct stf_capture *to_stf_capture(struct stfcamss_video *video)
{}

static void stf_set_raw_addr(struct stfcamss *stfcamss, dma_addr_t addr)
{}

static void stf_set_yuv_addr(struct stfcamss *stfcamss,
			     dma_addr_t y_addr, dma_addr_t uv_addr)
{}

static void stf_init_addrs(struct stfcamss_video *video)
{}

static struct stfcamss_buffer *stf_buf_get_pending(struct stf_v_buf *output)
{}

static void stf_cap_s_cfg(struct stfcamss_video *video)
{}

static int stf_cap_s_cleanup(struct stfcamss_video *video)
{}

static void stf_wr_data_en(struct stfcamss_video *video)
{}

static void stf_wr_irq_enable(struct stfcamss_video *video)
{}

static void stf_wr_irq_disable(struct stfcamss_video *video)
{}

static void stf_channel_set(struct stfcamss_video *video)
{}

static void stf_capture_start(struct stfcamss_video *video)
{}

static void stf_capture_stop(struct stfcamss_video *video)
{}

static void stf_capture_init(struct stfcamss *stfcamss, struct stf_capture *cap)
{}

static void stf_buf_add_ready(struct stf_v_buf *output,
			      struct stfcamss_buffer *buffer)
{}

static struct stfcamss_buffer *stf_buf_get_ready(struct stf_v_buf *output)
{}

static void stf_buf_add_pending(struct stf_v_buf *output,
				struct stfcamss_buffer *buffer)
{}

static void stf_buf_update_on_last(struct stf_v_buf *output)
{}

static void stf_buf_update_on_next(struct stf_v_buf *output)
{}

static void stf_buf_update_on_new(struct stfcamss_video *video,
				  struct stfcamss_buffer *new_buf)
{}

static void stf_buf_flush(struct stf_v_buf *output, enum vb2_buffer_state state)
{}

static void stf_buf_done(struct stf_v_buf *output)
{}

static void stf_change_buffer(struct stf_v_buf *output)
{}

irqreturn_t stf_wr_irq_handler(int irq, void *priv)
{}

irqreturn_t stf_isp_irq_handler(int irq, void *priv)
{}

irqreturn_t stf_line_irq_handler(int irq, void *priv)
{}

static int stf_queue_buffer(struct stfcamss_video *video,
			    struct stfcamss_buffer *buf)
{}

static int stf_flush_buffers(struct stfcamss_video *video,
			     enum vb2_buffer_state state)
{}

static const struct stfcamss_video_ops stf_capture_ops =;

static void stf_capture_unregister_one(struct stf_capture *cap)
{}

void stf_capture_unregister(struct stfcamss *stfcamss)
{}

int stf_capture_register(struct stfcamss *stfcamss,
			 struct v4l2_device *v4l2_dev)
{}