#ifndef IPU6_ISYS_QUEUE_H
#define IPU6_ISYS_QUEUE_H
#include <linux/container_of.h>
#include <linux/atomic.h>
#include <linux/device.h>
#include <linux/list.h>
#include <linux/spinlock_types.h>
#include <media/videobuf2-v4l2.h>
#include "ipu6-fw-isys.h"
#include "ipu6-isys-video.h"
struct ipu6_isys_stream;
struct ipu6_isys_queue { … };
struct ipu6_isys_buffer { … };
struct ipu6_isys_video_buffer { … };
#define IPU6_ISYS_BUFFER_LIST_FL_INCOMING …
#define IPU6_ISYS_BUFFER_LIST_FL_ACTIVE …
#define IPU6_ISYS_BUFFER_LIST_FL_SET_STATE …
struct ipu6_isys_buffer_list { … };
#define vb2_queue_to_isys_queue(__vb2) …
#define ipu6_isys_to_isys_video_buffer(__ib) …
#define vb2_buffer_to_ipu6_isys_video_buffer(__vvb) …
#define ipu6_isys_buffer_to_vb2_buffer(__ib) …
void ipu6_isys_buffer_list_queue(struct ipu6_isys_buffer_list *bl,
unsigned long op_flags,
enum vb2_buffer_state state);
void
ipu6_isys_buf_to_fw_frame_buf(struct ipu6_fw_isys_frame_buff_set_abi *set,
struct ipu6_isys_stream *stream,
struct ipu6_isys_buffer_list *bl);
void
ipu6_isys_buf_calc_sequence_time(struct ipu6_isys_buffer *ib,
struct ipu6_fw_isys_resp_info_abi *info);
void ipu6_isys_queue_buf_done(struct ipu6_isys_buffer *ib);
void ipu6_isys_queue_buf_ready(struct ipu6_isys_stream *stream,
struct ipu6_fw_isys_resp_info_abi *info);
int ipu6_isys_queue_init(struct ipu6_isys_queue *aq);
#endif