linux/drivers/media/pci/cx18/cx18-cards.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  cx18 functions to query card hardware
 *
 *  Derived from ivtv-cards.c
 *
 *  Copyright (C) 2007  Hans Verkuil <[email protected]>
 *  Copyright (C) 2008  Andy Walls <[email protected]>
 */

/* hardware flags */
#define CX18_HW_TUNER
#define CX18_HW_TVEEPROM
#define CX18_HW_CS5345
#define CX18_HW_DVB
#define CX18_HW_418_AV
#define CX18_HW_GPIO_MUX
#define CX18_HW_GPIO_RESET_CTRL
#define CX18_HW_Z8F0811_IR_HAUP

/* video inputs */
#define CX18_CARD_INPUT_VID_TUNER
#define CX18_CARD_INPUT_SVIDEO1
#define CX18_CARD_INPUT_SVIDEO2
#define CX18_CARD_INPUT_COMPOSITE1
#define CX18_CARD_INPUT_COMPOSITE2
#define CX18_CARD_INPUT_COMPONENT1

/* audio inputs */
#define CX18_CARD_INPUT_AUD_TUNER
#define CX18_CARD_INPUT_LINE_IN1
#define CX18_CARD_INPUT_LINE_IN2

#define CX18_CARD_MAX_VIDEO_INPUTS
#define CX18_CARD_MAX_AUDIO_INPUTS
#define CX18_CARD_MAX_TUNERS

/* V4L2 capability aliases */
#define CX18_CAP_ENCODER

struct cx18_card_video_input {};

struct cx18_card_audio_input {};

struct cx18_card_pci_info {};

/* GPIO definitions */

/* The mask is the set of bits used by the operation */

struct cx18_gpio_init {};

struct cx18_gpio_i2c_slave_reset {};

struct cx18_gpio_audio_input {};

struct cx18_card_tuner {};

struct cx18_card_tuner_i2c {};

struct cx18_ddr {};

/* for card information/parameters */
struct cx18_card {};

int cx18_get_input(struct cx18 *cx, u16 index, struct v4l2_input *input);
int cx18_get_audio_input(struct cx18 *cx, u16 index, struct v4l2_audio *input);
const struct cx18_card *cx18_get_card(u16 index);