linux/drivers/media/pci/mgb4/mgb4_io.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2021-2022 Digiteq Automotive
 *     author: Martin Tuma <[email protected]>
 */

#ifndef __MGB4_IO_H__
#define __MGB4_IO_H__

#include <media/v4l2-dev.h>

#define MGB4_DEFAULT_WIDTH
#define MGB4_DEFAULT_HEIGHT
#define MGB4_DEFAULT_PERIOD

/* Register access error indication */
#define MGB4_ERR_NO_REG
/* Frame buffer addresses greater than 0xFFFFFFFA indicate HW errors */
#define MGB4_ERR_QUEUE_TIMEOUT
#define MGB4_ERR_QUEUE_EMPTY
#define MGB4_ERR_QUEUE_FULL

struct mgb4_frame_buffer {};

static inline struct mgb4_frame_buffer *to_frame_buffer(struct vb2_v4l2_buffer *vbuf)
{}

#endif