linux/drivers/media/pci/b2c2/flexcop-pci.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Linux driver the digital TV devices equipped with B2C2 FlexcopII(b)/III
 * flexcop-pci.c - covers the PCI part including DMA transfers
 * see flexcop.c for copyright information
 */

#define FC_LOG_PREFIX
#include "flexcop-common.h"

static int enable_pid_filtering =;
module_param(enable_pid_filtering, int, 0444);
MODULE_PARM_DESC();

static int irq_chk_intv =;
module_param(irq_chk_intv, int, 0644);
MODULE_PARM_DESC();

#ifdef CONFIG_DVB_B2C2_FLEXCOP_DEBUG
#define dprintk(level, args...)
#define DEBSTATUS
#else
#define dprintk
#define DEBSTATUS
#endif

#define deb_info(args...)
#define deb_reg(args...)
#define deb_ts(args...)
#define deb_irq(args...)
#define deb_chk(args...)

static int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC();

#define DRIVER_VERSION
#define DRIVER_NAME
#define DRIVER_AUTHOR

struct flexcop_pci {};

static int lastwreg, lastwval, lastrreg, lastrval;

static flexcop_ibi_value flexcop_pci_read_ibi_reg(struct flexcop_device *fc,
		flexcop_ibi_register r)
{}

static int flexcop_pci_write_ibi_reg(struct flexcop_device *fc,
		flexcop_ibi_register r, flexcop_ibi_value v)
{}

static void flexcop_pci_irq_check_work(struct work_struct *work)
{}

/* When PID filtering is turned on, we use the timer IRQ, because small amounts
 * of data need to be passed to the user space instantly as well. When PID
 * filtering is turned off, we use the page-change-IRQ */
static irqreturn_t flexcop_pci_isr(int irq, void *dev_id)
{}

static int flexcop_pci_stream_control(struct flexcop_device *fc, int onoff)
{}

static int flexcop_pci_dma_init(struct flexcop_pci *fc_pci)
{}

static void flexcop_pci_dma_exit(struct flexcop_pci *fc_pci)
{}

static int flexcop_pci_init(struct flexcop_pci *fc_pci)
{}

static void flexcop_pci_exit(struct flexcop_pci *fc_pci)
{}

static int flexcop_pci_probe(struct pci_dev *pdev,
		const struct pci_device_id *ent)
{}

/* in theory every _exit function should be called exactly two times,
 * here and in the bail-out-part of the _init-function
 */
static void flexcop_pci_remove(struct pci_dev *pdev)
{}

static const struct pci_device_id flexcop_pci_tbl[] =;

MODULE_DEVICE_TABLE(pci, flexcop_pci_tbl);

static struct pci_driver flexcop_pci_driver =;

module_pci_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();