#ifndef __MGB4_IO_H__
#define __MGB4_IO_H__
#include <linux/math64.h>
#include <media/v4l2-dev.h>
#include "mgb4_core.h"
#define MGB4_ERR_NO_REG …
#define MGB4_ERR_QUEUE_TIMEOUT …
#define MGB4_ERR_QUEUE_EMPTY …
#define MGB4_ERR_QUEUE_FULL …
#define MGB4_PERIOD(numerator, denominator) …
struct mgb4_frame_buffer { … };
static inline struct mgb4_frame_buffer *to_frame_buffer(struct vb2_v4l2_buffer *vbuf)
{ … }
static inline bool has_yuv_and_timeperframe(struct mgb4_regs *video)
{ … }
#define has_yuv(video) …
#define has_timeperframe(video) …
static inline u32 pixel_size(struct v4l2_dv_timings *timings)
{ … }
#endif