linux/drivers/media/pci/zoran/zoran.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * zoran - Iomega Buz driver
 *
 * Copyright (C) 1999 Rainer Johanni <[email protected]>
 *
 * based on
 *
 * zoran.0.0.3 Copyright (C) 1998 Dave Perks <[email protected]>
 *
 * and
 *
 * bttv - Bt848 frame grabber driver
 * Copyright (C) 1996,97,98 Ralph  Metzler ([email protected])
 *                        & Marcus Metzler ([email protected])
 */

#ifndef _BUZ_H_
#define _BUZ_H_

#include <linux/debugfs.h>
#include <linux/pci.h>
#include <linux/i2c-algo-bit.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/videobuf2-core.h>
#include <media/videobuf2-v4l2.h>
#include <media/videobuf2-dma-contig.h>

#define ZR_NORM_PAL
#define ZR_NORM_NTSC
#define ZR_NORM_SECAM

struct zr_buffer {};

static inline struct zr_buffer *vb2_to_zr_buffer(struct vb2_buffer *vb)
{}

#define ZORAN_NAME

#define ZR_DEVNAME(zr)

#define BUZ_MAX_WIDTH
#define BUZ_MAX_HEIGHT
#define BUZ_MIN_WIDTH
#define BUZ_MIN_HEIGHT

#define BUZ_NUM_STAT_COM
#define BUZ_MASK_STAT_COM

#define BUZ_MAX_INPUT

#include "zr36057.h"

enum card_type {};

enum zoran_codec_mode {};

enum zoran_map_mode {};

enum gpio_type {};

enum gpcs_type {};

struct zoran_format {};

/* flags */
#define ZORAN_FORMAT_COMPRESSED
#define ZORAN_FORMAT_OVERLAY
#define ZORAN_FORMAT_CAPTURE
#define ZORAN_FORMAT_PLAYBACK

/* v4l-capture settings */
struct zoran_v4l_settings {};

/* jpg-capture/-playback settings */
struct zoran_jpg_settings {};

struct zoran;

/* zoran_fh contains per-open() settings */
struct zoran_fh {};

struct card_info {};

struct zoran {};

static inline struct zoran *to_zoran(struct v4l2_device *v4l2_dev)
{}

/*
 * There was something called _ALPHA_BUZ that used the PCI address instead of
 * the kernel iomapped address for btread/btwrite.
 */
#define btwrite(dat, adr)
#define btread(adr)

#define btand(dat, adr)
#define btor(dat, adr)
#define btaor(dat, mask, adr)

#endif

/*
 * Debugging macros
 */
#define zrdev_dbg(zr, format, args...) \

#define zrdev_err(zr, format, args...) \

#define zrdev_info(zr, format, args...) \

int zoran_queue_init(struct zoran *zr, struct vb2_queue *vq, int dir);
void zoran_queue_exit(struct zoran *zr);
int zr_set_buf(struct zoran *zr);